NSLayoutConstraint class

NSLayoutConstraint

Available extensions

Constructors

NSLayoutConstraint.new()
Returns a new instance of NSLayoutConstraint constructed with the default new method.
factory
NSLayoutConstraint.castFrom(ObjCObjectBase other)
Constructs a NSLayoutConstraint that points to the same underlying object as other.
NSLayoutConstraint.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a NSLayoutConstraint that wraps the given raw object pointer.

Properties

active bool

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

isActive
getter/setter pair
constant double

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

constant
getter/setter pair
firstAnchor NSLayoutAnchor

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

firstAnchor
no setter
firstAttribute NSLayoutAttribute

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

firstAttribute
no setter
firstItem → ObjCObjectBase?

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

firstItem
no setter
hashCode int
The hash code for this object.
no setterinherited
identifier ↔ NSString?

Available on NSLayoutConstraint, provided by the NSIdentifier extension

identifier
getter/setter pair
multiplier double

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

multiplier
no setter
priority double

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

priority
getter/setter pair
ref → ObjCObjectRef
finalinherited
relation NSLayoutRelation

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

relation
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondAnchor NSLayoutAnchor?

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

secondAnchor
no setter
secondAttribute NSLayoutAttribute

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

secondAttribute
no setter
secondItem → ObjCObjectBase?

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

secondItem
no setter
shouldBeArchived bool

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

shouldBeArchived
getter/setter pair

Methods

init() NSLayoutConstraint

Available on NSLayoutConstraint, provided by the NSLayoutConstraint$Methods extension

init
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

activateConstraints(NSArray constraints) → void
activateConstraints:
alloc() NSLayoutConstraint
alloc
allocWithZone(Pointer<NSZone> zone) NSLayoutConstraint
allocWithZone:
constraintsWithVisualFormat(NSString format, {required NSLayoutFormatOptions options, NSDictionary? metrics, required NSDictionary views}) → NSArray
constraintsWithVisualFormat:options:metrics:views:
constraintWithItem(ObjCObjectBase view1, {required NSLayoutAttribute attribute, required NSLayoutRelation relatedBy, ObjCObjectBase? toItem, required NSLayoutAttribute attribute$1, required double multiplier, required double constant}) NSLayoutConstraint
constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:
deactivateConstraints(NSArray constraints) → void
deactivateConstraints:
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of NSLayoutConstraint.
new$() NSLayoutConstraint
new