Platforms to show: All Mac Windows Linux Cross-Platform

CGRectMBS.Infinite as CGRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: 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)
Notes: Available in Mac OS X v10.4 and later.

Feedback, Comments & Corrections

CGRectMBS.Make(x as Double, y as Double, width as Double, height as Double) as CGRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: 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)

Feedback, Comments & Corrections

CGRectMBS.Null as CGRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: Returns the null rect.
Example:
dim r as CGRectMBS = CGRectMBS.Null
MsgBox str(r.Left)+" "+str(R.Top)+" "+str(R.Width)+" "+str(r.Height)
Notes:
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.

Feedback, Comments & Corrections

CGRectMBS.Zero as CGRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method CoreGraphics MBS MacCG Plugin 9.5 Yes No No Yes, macOS only No
Function: 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)
Notes: The zero rectangle is equivalent to CGRectMBS.Make(0,0,0,0).

Feedback, Comments & Corrections

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

The biggest plugin in space...




Links
MBS Xojo tutorial videos