Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSRectMBS class.
NSRectMBS.Constructor
Function:
Creates an empty rectangle.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim p as new NSRectMBS
MsgBox p // shows {{0 ,0}, {0 ,0}}
See also:
NSRectMBS.Constructor(p as Ptr)
Function:
Creates a new instance using data at the pointer.
Notes: Make sure the pointer is valid and has the right data and size.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: Make sure the pointer is valid and has the right data and size.
See also:
NSRectMBS.Constructor(s as string)
Function:
Creates a new NSRect object using the given string.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim p as new NSRectMBS("{{1,2},{3,4}}")
MsgBox p // shows {{1, 2}, {3, 4}}
See also:
NSRectMBS.Constructor(X as Double, Y as Double, W as Double, H as Double)
Function:
Creates a new NSRect object using the given values.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSRectMBS.Contains(other as NSPointMBS) as boolean
Function:
Whether the rectangle contains the given point.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSRectMBS.Contains(other as NSRectMBS) as boolean
Function:
Whether the rectangle contains the given rectangle.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSRectMBS.Equal(other as NSRectMBS) as boolean
Function:
Whether two rectangles are equal.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSRectMBS.Inset(dx as Double, dy as Double) as NSRectMBS
Function:
Insets the rectangle by the given delta.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
NSRectMBS.Integral as NSRectMBS
Function:
Returns the integral of the rectangle.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
NSRectMBS.Intersection(other as NSRectMBS) as NSRectMBS
Function:
Returns the intersection of two rectangles.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSRectMBS.Intersects(other as NSRectMBS) as boolean
Function:
Returns the intersection of the rectangle with the other rectangle.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSRectMBS.Operator_Convert as String
Function:
Converts the object to string.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim p as new NSRectMBS(1,2,3,4)
MsgBox p // shows {{1, 2}, {3, 4}}
NSRectMBS.String as String
Function:
Returns the string representation of this point.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Example:
dim p as new NSRectMBS(1,2,3,4)
MsgBox p.String // shows {{1, 2}, {3, 4}}
NSRectMBS.Union(other as NSRectMBS) as NSRectMBS
Function:
Returns the union of two rectangles.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS Main Plugin.
