Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSSizeMBS class.
NSSizeMBS.Constructor
Function:
Creates an empty size.
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 NSSizeMBS
MsgBox p // shows {0 ,0}
See also:
NSSizeMBS.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:
NSSizeMBS.Constructor(s as string)
Function:
Creates a new NSSize 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 NSSizeMBS("{1,2}")
MsgBox p // shows {1, 2}
See also:
NSSizeMBS.Constructor(Width as Double, Height as Double)
Function:
Creates a new NSSize 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:
NSSizeMBS.Equal(other as NSSizeMBS) as boolean
Function:
Whether two sizes are equal.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSSizeMBS.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 NSSizeMBS(1,2)
MsgBox p // shows {1, 2}
NSSizeMBS.String as String
Function:
Returns the string representation of this size object.
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 NSSizeMBS(1,2)
MsgBox p.String // shows {1, 2}
The items on this page are in the following plugins: MBS Main Plugin.
