Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.
Platforms to show: All Mac Windows Linux Cross-Platform
CGRectMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
class | CoreGraphics | MBS MacCG Plugin | 2.7 | Yes | No | No | Yes, macOS only | No |
- 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:
- AVFoundationMBS.AVMakeRectWithAspectRatioInsideRect(aspectRatio as CGSizeMBS, boundingRect as CGRectMBS) as CGRectMBS
- AVMutableVideoCompositionLayerInstructionMBS.setCropRectangle(cropRectangle as CGRectMBS, time as CMTimeMBS)
- AVMutableVideoCompositionLayerInstructionMBS.setCropRectangleRampFromStartCropRectangle(startCropRectangle as CGRectMBS, endCropRectangle as CGRectMBS, timeRange as CMTimeRangeMBS)
- AVPlayerLayerMBS.videoRect as CGRectMBS
- AVVideoCompositionLayerInstructionMBS.getCropRectangleRampForTime(time as CMTimeMBS, byref startCropRectangle as CGRectMBS, byref endCropRectangle as CGRectMBS, byref timeRange as CMTimeRangeMBS) as Boolean
- CALayerMBS.setNeedsDisplayInRect(r as CGRectMBS)
- CGContextMBS.AddEllipseInRect(r as CGRectMBS)
- CGContextMBS.AddRect(r as CGRectMBS)
- CGContextMBS.AddRects(r() as CGRectMBS)
- CGContextMBS.BeginPage(mediabox as CGRectMBS)
- CGContextMBS.BeginTransparencyLayerWithRect(r as CGRectMBS, auxiliaryInfo as Dictionary = nil)
- CGContextMBS.clearRect(rect as CGRectMBS)
- CGContextMBS.ClipToMask(rect as CGRectMBS, mask as CGImageMBS)
- CGContextMBS.clipToRect(rect as CGRectMBS)
- CGContextMBS.DrawCGPDFDocument(pdf as Variant, rect as CGRectMBS, page as Integer)
- CGContextMBS.DrawLayerInRect(rect as CGRectMBS, layer as CGLayerMBS)
- CGContextMBS.DrawPicture(pic as CGImageMBS, rect as CGRectMBS)
- CGContextMBS.DrawTiledImage(pic as CGImageMBS, rect as CGRectMBS)
- CGContextMBS.FillEllipseInRect(rect as CGRectMBS)
- CGContextMBS.FillRect(rect as CGRectMBS)
- CGContextMBS.GetClipBoundingBox as CGRectMBS
Some properties using for this class:
- CALayerMBS.anchorPoint as CGRectMBS
- CALayerMBS.bounds as CGRectMBS
- CALayerMBS.contentsCenter as CGRectMBS
- CALayerMBS.contentsRect as CGRectMBS
- CALayerMBS.frame as CGRectMBS
- CALayerMBS.position as CGRectMBS
- CGDisplayMBS.Bounds as CGRectMBS
- CGFontMBS.FontBBox as CGRectMBS
- CIFeatureMBS.bounds as CGRectMBS
- CIFilterShapeMBS.extent as CGRectMBS
- CIImageMBS.Extent as CGRectMBS
- CISamplerMBS.Extent as CGRectMBS
- CTFontMBS.BoundingBox as CGRectMBS
- AVCaptureScreenInputMBS.cropRect as CGRectMBS
Some events for 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 which use this class:
- /AVFoundation/AVVideoWall
- /AVFoundation/Merge and Crop Videos
- /AVFoundation/Screen Input
- /AVFoundation/Still Photos
- /DynaPDF/Raster/PDF Benchmark
- /DynaPDF/Raster/PDF Diff
- /MacCF/ATS/ATSUI Text Rendering Japanese and Cirillic
- /MacCG/Attributed String print
- /MacCG/Carbon Print Manager/Carbon Print Hello
- /MacCG/Carbon Print Manager/sample
- /MacCG/Carbon Print Manager/sample with sheets
- /MacCG/CG Ovals with PDF in memory
- /MacCG/CGGradient test
- /MacCG/CGImage with different color spaces
- /MacCG/CoreGraphics Bitmap
- /MacCG/CoreGraphics DirectDisplay/CGDisplayStreamEvent test
- /MacCG/CoreGraphics DirectDisplay/CGScreenRefreshEvent Test
- /MacCG/CoreGraphics Overlay Window/EasyOverlay/EasyOverlay
- /MacCG/CoreGraphics Overlay Window/EasyOverlay/Magnify
- /MacCG/CoreGraphics Overlay Window/EasyOverlay/My First EasyOverlay
- /MacCG/CoreGraphics Overlay Window/Mac and Win Transparent Splash/SplashScreen
The items on this page are in the following plugins: MBS MacCG Plugin.
CGPSConverterMBS - CGSConnectionMBS
Links
MBS Xojo tutorial videos