Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGRectMBS class.

CGRectMBS.Infinite as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A rectangle that has infinite extent.
Example
dim r as CGRectMBS = CGRectMBS.Infinite
MsgBox str(r.Left)+" "+str(R.Top)+" "+str(R.Width)+" "+str(r.Height)

Available in Mac OS X v10.4 and later.

CGRectMBS.Make(x as Double, y as Double, width as Double, height as Double) as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a new CGRectMBS object with the given values.
Example
dim r as CGRectMBS = CGRectMBS.Make(1,2,3,4)
MsgBox str(r.Left)+" "+str(R.Top)+" "+str(R.Width)+" "+str(r.Height)

CGRectMBS.Null as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the null rect.
Example
dim r as CGRectMBS = CGRectMBS.Null
MsgBox str(r.Left)+" "+str(R.Top)+" "+str(R.Width)+" "+str(r.Height)

The "empty" rect. This is the rectangle returned when, for example, we intersect two disjoint rectangles.
Note that the null rect is not the same as the zero rect.

CGRectMBS.Zero as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
A rectangle constant with location (0,0), and width and height of 0.
Example
dim r as CGRectMBS = CGRectMBS.Zero
MsgBox str(r.Left)+" "+str(R.Top)+" "+str(R.Width)+" "+str(r.Height)

The zero rectangle is equivalent to CGRectMBS.Make(0,0,0,0).

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...