Other Functions
The following functions are available globally.
-
Checks if two DiagramItem-s are equal.
Declaration
Swift
public func == (lhs: DiagramItem, rhs: DiagramItem) -> Bool
Return Value
true if the DiagramItem-s are equal; otherwise false.
-
Attaches and detaches event handlers.
Declaration
Swift
@discardableResult 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.
-
Compares two MeasureUnit-s.
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.
-
Undocumented
Declaration
Swift
public func == (lhs: TreeViewItem, rhs: TreeViewItem) -> Bool