Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

NSRectMBS.Constructor
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Creates an empty rectangle.
Example:
dim p as new NSRectMBS
MsgBox p // shows {{0 ,0}, {0 ,0}}

See also:

Feedback, Comments & Corrections

NSRectMBS.Constructor(p as Ptr)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 17.1 Yes Yes Yes Yes No
Function: Creates a new instance using data at the pointer.
Notes: Make sure the pointer is valid and has the right data and size.

See also:

Feedback, Comments & Corrections

NSRectMBS.Constructor(s as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: 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:

Feedback, Comments & Corrections

NSRectMBS.Constructor(X as Double, Y as Double, W as Double, H as Double)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Creates a new NSRect object using the given values.

See also:

Feedback, Comments & Corrections

NSRectMBS.Contains(other as NSPointMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether the rectangle contains the given point.

See also:

Feedback, Comments & Corrections

NSRectMBS.Contains(other as NSRectMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether the rectangle contains the given rectangle.

See also:

Feedback, Comments & Corrections

NSRectMBS.Equal(other as NSRectMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether two rectangles are equal.

Feedback, Comments & Corrections

NSRectMBS.Inset(dx as Double, dy as Double) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: 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}}

Feedback, Comments & Corrections

NSRectMBS.Integral as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: 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}}

Feedback, Comments & Corrections

NSRectMBS.Intersection(other as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the intersection of two rectangles.

Feedback, Comments & Corrections

NSRectMBS.Intersects(other as NSRectMBS) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the intersection of the rectangle with the other rectangle.

Feedback, Comments & Corrections

NSRectMBS.Operator_Convert as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Converts the object to string.
Example:
dim p as new NSRectMBS(1,2,3,4)
MsgBox p // shows {{1, 2}, {3, 4}}

Feedback, Comments & Corrections

NSRectMBS.String as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: 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}}

Feedback, Comments & Corrections

NSRectMBS.Union(other as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa MBS Main Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the union of two rectangles.

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins