Functions
The following functions are available globally.
-
Checks if two Rect objects are equal.
Parameter
Parameter lhs: The first Rect to compare.Parameter
Parameter rhs: The second Rect to compare.
Returns
true if the two Rect objects have the same location and size; otherwise false.
Return Value
true if the two Rect objects have the same location and size; otherwise false.
-
Checks if two DiagramItem-s are equal.
Returns
true if the DiagramItem-s are equal; otherwise false.Declaration
Swift
public func ==(lhs: DiagramItem, rhs: DiagramItem) -> Bool
Return Value
true if the DiagramItem-s are equal; otherwise false.
-
Compares two Metatype objects.
Parameter
Parameter left: The first Metatype object to compare.Parameter
Parameter second: The second Metatype object to compare.
Returns
true if the Metatype objects are equal; otherwise false.
Return Value
true if the Metatype objects are equal; otherwise false.
-
Compares two MeasureUnit-s.
Parameter
Parameter left: The first MeasureUnit to compare.Parameter
Parameter right: The second MeasureUnit to compare.
Returns
true if the MeasureUnit-s are euqal; otherwise false.
Declaration
Swift
public func ==(left:MeasureUnit, right:MeasureUnit) -> Bool
Parameters
left
The first MeasureUnit to compare.
right
The second MeasureUnit to compare.
Return Value
true if the MeasureUnit-s are euqal; otherwise false.
-
Multiplies the specified Vector by the specified scalar.
Parameter
Parameter vector: The Vector to multiply.Parameter
Parameter scalar: The scalar by which the Vector is multiplied.
Returns
The result of the multiplication of the Vector with the scalar.
Return Value
The result of the multiplication of the Vector with the scalar.
-
Multiplies the specified scalar by the specified Vector.
Parameter
Parameter scalar: The scalar to multiply.Parameter
Parameter vector: The Vector by which the scalar is multiplied.
Returns
The result of the multiplication of the scalar with the Vector.
Parameters
scalar
The scalar to multiply.
vector
The Vector by which the scalar is multiplied.
Return Value
The result of the multiplication of the scalar with the Vector.
-
Divides the specified Vector by the specified scalar.
Parameter
Parameter vector: The Vector to divide.Parameter
Parameter scalar: The scalar by which the Vector is divided.
Returns
The result of the division of the Vector with the scalar.
Return Value
The result of the division of the Vector with the scalar.
-
Attaches and detaches event handlers.
Parameter
Parameter event: An event that uses event arguments of type T.Parameter
Parameter handler: The handler for this event, which can be sent by any object and uses event arguments of type T.
Returns
An integer, which represents a unique id number for this event.
Declaration
Swift
public func +=<T>(event: Event<T>, handler: @escaping (AnyObject, T) -> Void) -> Int
Parameters
event
An event that uses event arguments of type T.
handler
The handler for this event, which can be sent by any object and uses event arguments of type T.
Return Value
An integer, which represents a unique id number for this event.