NSRectMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSRectMBS class.

NSRectMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an empty rectangle.
Example
dim p as new NSRectMBS
MsgBox p // shows {{0 ,0}, {0 ,0}}

See also:

NSRectMBS.Constructor(p as Ptr)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new instance using data at the pointer.

Make sure the pointer is valid and has the right data and size.

See also:

NSRectMBS.Constructor(s as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new NSRect object using the given string.
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)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new NSRect object using the given values.

See also:

NSRectMBS.Contains(other as NSPointMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the rectangle contains the given point.

See also:

NSRectMBS.Contains(other as NSRectMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the rectangle contains the given rectangle.

See also:

NSRectMBS.Equal(other as NSRectMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether two rectangles are equal.

NSRectMBS.Inset(dx as Double, dy as Double) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Insets the rectangle by the given delta.
Example
dim p as new NSRectMBS(1.1,2.2,3.3,4.4)
dim r as NSRectMBS = p.Inset(2,3)
MsgBox r.String // shows {{3.1, 5.2}, {-0.7, -1.6}}

NSRectMBS.Integral as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the integral of the rectangle.
Example
dim p as new NSRectMBS(1.1,2.2,3.3,4.4)
dim r as NSRectMBS = p.Integral
MsgBox r.String // shows {{1, 2}, {4, 5}}

NSRectMBS.Intersection(other as NSRectMBS) as NSRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the intersection of two rectangles.

NSRectMBS.Intersects(other as NSRectMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the intersection of the rectangle with the other rectangle.

NSRectMBS.Operator_Convert as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Converts the object to string.
Example
dim p as new NSRectMBS(1,2,3,4)
MsgBox p // shows {{1, 2}, {3, 4}}

NSRectMBS.String as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the string representation of this point.
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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS Main Plugin 9.6 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the union of two rectangles.

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


💬 Ask a question or report a problem