public class NSLayoutDimension extends NSLayoutAnchor
Modifier and Type | Method and Description |
---|---|
NSLayoutConstraint |
constraintEqualToAnchor(NSLayoutAnchor anchor)
Returns a constraint that is equal to the constraint of the given anchor.
|
NSLayoutConstraint |
constraintEqualToAnchor(NSLayoutAnchor anchor,
double constant)
Returns a constraint that is equal to the constraint of the given anchor
plus a constant.
|
NSLayoutConstraint |
constraintEqualToAnchor(NSLayoutDimension anchor,
double multiplier)
Returns a NSLayoutConstraint that defines the anchor's size to be as
equal to the specified anchor's size multiplied by the specified
multiplier.
|
NSLayoutConstraint |
constraintEqualToAnchor(NSLayoutDimension anchor,
double multiplier,
double constant)
Returns a NSLayoutConstraint that defines the anchor's size to be as
equal to the specified anchor's size multiplied by the specified
multiplier plus an offset.
|
NSLayoutConstraint |
constraintEqualToConstant(double constant)
Returns a NSLayoutConstraint that defines the anchor's size to be as
equal to the specified constant.
|
NSLayoutConstraint |
constraintGreaterThanOrEqualToAnchor(NSLayoutAnchor anchor)
Returns a constraint that is greater than or equal to the constraint of
the given anchor.
|
NSLayoutConstraint |
constraintGreaterThanOrEqualToAnchor(NSLayoutAnchor anchor,
double constant)
Returns a constraint that is greater than or equal to the constraint of
the given anchor plus a constant.
|
NSLayoutConstraint |
constraintGreaterThanOrEqualToAnchor(NSLayoutDimension anchor,
double multiplier)
Returns a NSLayoutConstraint that defines the anchor's size to be greater
than or equal to the specified anchor's size multiplied by the specified
multiplier.
|
NSLayoutConstraint |
constraintGreaterThanOrEqualToAnchor(NSLayoutDimension anchor,
double multiplier,
double constant)
Returns a NSLayoutConstraint that defines the anchor's size to be greater
than or equal to the specified anchor's size multiplied by the specified
multiplier plus an offset.
|
NSLayoutConstraint |
constraintGreaterThanOrEqualToConstant(double constant)
Returns a NSLayoutConstraint that defines the minimum anchor's size equal
to specified constant.
|
NSLayoutConstraint |
constraintLessThanOrEqualToAnchor(NSLayoutAnchor anchor)
Returns a constraint that is less than or equal to the constraint of the
given anchor.
|
NSLayoutConstraint |
constraintLessThanOrEqualToAnchor(NSLayoutAnchor anchor,
double constant)
Returns a constraint that is less than or equal to the constraint of the
given anchor plus a constant.
|
NSLayoutConstraint |
constraintLessThanOrEqualToAnchor(NSLayoutDimension anchor,
double multiplier)
Returns a NSLayoutConstraint that defines the anchor's size to be less
than or equal to the specified anchor's size multiplied by the specified
multiplier.
|
NSLayoutConstraint |
constraintLessThanOrEqualToAnchor(NSLayoutDimension anchor,
double multiplier,
double constant)
Returns a NSLayoutConstraint that defines the anchor's size to be greater
than or equal to the specified anchor's size multiplied by the specified
multiplier plus an offset.
|
NSLayoutConstraint |
constraintLessThanOrEqualToConstant(double constant)
Returns a NSLayoutConstraint that defines the maximum anchor's size equal
to specified constant.
|
toString
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public NSLayoutConstraint constraintLessThanOrEqualToAnchor(NSLayoutAnchor anchor, double constant)
NSLayoutAnchor
constraintLessThanOrEqualToAnchor
in class NSLayoutAnchor
anchor
- The layout anchor of an object.constant
- The constant added to the given anchor.public NSLayoutConstraint constraintLessThanOrEqualToAnchor(NSLayoutAnchor anchor)
NSLayoutAnchor
constraintLessThanOrEqualToAnchor
in class NSLayoutAnchor
anchor
- The layout anchor of an object.public NSLayoutConstraint constraintGreaterThanOrEqualToAnchor(NSLayoutAnchor anchor, double constant)
NSLayoutAnchor
constraintGreaterThanOrEqualToAnchor
in class NSLayoutAnchor
anchor
- The layout anchor of an object.constant
- The constant added to the given anchor.public NSLayoutConstraint constraintGreaterThanOrEqualToAnchor(NSLayoutAnchor anchor)
NSLayoutAnchor
constraintGreaterThanOrEqualToAnchor
in class NSLayoutAnchor
anchor
- The layout anchor of an object.public NSLayoutConstraint constraintEqualToAnchor(NSLayoutAnchor anchor, double constant)
NSLayoutAnchor
constraintEqualToAnchor
in class NSLayoutAnchor
anchor
- The layout anchor of an object.constant
- The constant added to the given anchor.public NSLayoutConstraint constraintEqualToAnchor(NSLayoutAnchor anchor)
NSLayoutAnchor
constraintEqualToAnchor
in class NSLayoutAnchor
anchor
- The layout anchor of an object.public NSLayoutConstraint constraintEqualToAnchor(NSLayoutDimension anchor, double multiplier)
anchor
- The NSLayoutDimension that is used from a UIView, NSView,
or UILayoutGuide object.multiplier
- The multiplier used.public NSLayoutConstraint constraintEqualToAnchor(NSLayoutDimension anchor, double multiplier, double constant)
anchor
- The NSLayoutDimension that is used from a UIView, NSView,
or UILayoutGuide object.multiplier
- The multiplier used.constant
- The constant used as offset.public NSLayoutConstraint constraintEqualToConstant(double constant)
constant
- The size of the anchor.public NSLayoutConstraint constraintGreaterThanOrEqualToAnchor(NSLayoutDimension anchor, double multiplier)
anchor
- The NSLayoutDimension that is used from a UIView, NSView,
or UILayoutGuide object.multiplier
- The multiplier used.public NSLayoutConstraint constraintGreaterThanOrEqualToAnchor(NSLayoutDimension anchor, double multiplier, double constant)
anchor
- The NSLayoutDimension that is used from a UIView, NSView,
or UILayoutGuide object.multiplier
- The multiplier used.constant
- The constant used as offset.public NSLayoutConstraint constraintGreaterThanOrEqualToConstant(double constant)
constant
- The minimum anchor's size.public NSLayoutConstraint constraintLessThanOrEqualToAnchor(NSLayoutDimension anchor, double multiplier)
anchor
- The NSLayoutDimension that is used from a UIView, NSView,
or UILayoutGuide object.multiplier
- The multiplier used.public NSLayoutConstraint constraintLessThanOrEqualToAnchor(NSLayoutDimension anchor, double multiplier, double constant)
anchor
- The NSLayoutDimension that is used from a UIView, NSView,
or UILayoutGuide object.multiplier
- The multiplier used.constant
- The constant used as an offset.public NSLayoutConstraint constraintLessThanOrEqualToConstant(double constant)
constant
- The maximum size of the anchor.Copyright © 2020. All rights reserved.