Platforms to show: All Mac Windows Linux Cross-Platform
CGRectMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreGraphics | MBS MacCG Plugin | 2.7 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- 6 properties
- 26 methods
- method ApplyAffineTransform(a as CGAffineTransformMBS) as CGRectMBS
- method Binary as MemoryBlock
- method Constructor
- method Constructor(p as Ptr)
- method Constructor(source as CGRectMBS)
- method Constructor(x as Double, y as Double, width as Double, height as Double)
- method ContainsPoint(r as CGPointMBS) as boolean
- method ContainsRect(r as CGRectMBS) as boolean
- method Divide(byref slice as CGRectMBS, byref remainder as CGRectMBS, amount as Double, edge as Integer)
- method Equal(r as CGRectMBS) as boolean
- method Inset(dx as Double, dy as Double) as CGRectMBS
- method Integral as CGRectMBS
- method Intersection(r as CGRectMBS) as CGRectMBS
- method IntersectsRect(r as CGRectMBS) as boolean
- method IsEmpty as boolean
- method IsInfinite as boolean
- method IsNull as boolean
- method MaxX as Double
- method MaxY as Double
- method MidX as Double
- method MidY as Double
- method MinX as Double
- method MinY as Double
- method Offset(dx as Double, dy as Double) as CGRectMBS
- method Standardize as CGRectMBS
- method Union(r as CGRectMBS) as CGRectMBS
- 4 shared methods
This class has no sub classes.
Some useful global functions for this class:
- CGMakeRectMBS(left as Double, top as Double, width as Double, height as Double) as CGRectMBS
- CGNewPDFDocumentMBS(consumer as CGDataConsumerMBS, MediaBox as CGRectMBS, title as string, author as string, creator as string) as CGPDFContextMBS
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string) as CGPDFContextMBS
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean) as CGPDFContextMBS
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean, KeyLength as Integer) as CGPDFContextMBS
Some methods using this class:
- CALayerMBS.setNeedsDisplayInRect(r as CGRectMBS)
- CGContextMBS.FillEllipseInRect(rect as CGRectMBS)
- CGDisplayStreamUpdateMBS.getRects(type as Integer) as CGRectMBS()
- CIContextMBS.DrawImageRect(ciImage as CIImageMBS, DestRect as CGRectMBS, SourceRect as CGRectMBS = nil)
- CIImageMBS.CreateCGImage(r as CGRectMBS, ColorSpace as CGColorSpaceMBS) as CGImageMBS
- CTFontMBS.BoundingRectsForGlyphs(orientation as Integer, glyphs() as Integer, boundingRects() as CGRectMBS) as CGRectMBS
- FolderItem.NewCGPDFDocumentMBS(MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean, KeyLength as Integer) as CGPDFContextMBS
- FolderItem.NewCGPDFDocumentWithInfoMBS(MediaBox as CGRectMBS, info as object) as CGPDFContextMBS
- MKOverlayRendererMBS.RectForMapRect(mapRect as MKMapRectMBS) as CGRectMBS
- VNDetectedObjectObservationMBS.Constructor(boundingBox as CGRectMBS)
Some properties using for this class:
- AVCaptureMetadataOutputMBS.rectOfInterest as CGRectMBS
- AVMetadataObjectMBS.Bounds as CGRectMBS
- CALayerMBS.anchorPoint as CGRectMBS
- CALayerMBS.bounds as CGRectMBS
- CALayerMBS.contentsCenter as CGRectMBS
- CALayerMBS.frame as CGRectMBS
- CIFilterShapeMBS.extent as CGRectMBS
- CIImageMBS.Extent as CGRectMBS
- CISamplerMBS.Extent as CGRectMBS
- AVCaptureScreenInputMBS.cropRect as CGRectMBS
Some events using this class:
- CGScreenRefreshEventMBS.ScreenRefresh(rectCount as Integer, rects() as CGRectMBS)
- CGScreenUpdateMoveEventMBS.ScreenMove(deltaX as Integer, deltaY as Integer, rectCount as Integer, rects() as CGRectMBS)
Some examples using this class:
- /MacCG/Attributed String print
- /MacCG/Carbon Print Manager/sample
- /MacCG/CGGradient test
- /MacCG/CoreGraphics DirectDisplay/CGDisplayStreamEvent test
- /MacCG/CoreGraphics DirectDisplay/CGScreenRefreshEvent Test
- /MacCG/CoreGraphics PDF/Getpicture PDF
- /MacCG/CoreText/CoreText Dynamic Text Height
- /MacCG/FaceDetection
- /MacCG/Print PDF with CoreGraphics/Print PDF with CoreGraphics
- /Overlay/Overlay with Draw Event
Blog Entries
- Several ways for picture to PDF in MBS Plugins
- Automated video editing with Xojo
- MBS Real Studio Plugins, version 12.0pr6
- MBS REALbasic plug-ins version 9.5
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MacCG Plugin.
CGPSConverterMBS - CGSConnectionMBS