Package apple.uikit

Class UILayoutGuide

  • All Implemented Interfaces:
    NSCoding, NSObject
    Direct Known Subclasses:
    UIFocusGuide

    public class UILayoutGuide
    extends NSObject
    implements NSCoding
    UILayoutGuides will not show up in the view hierarchy, but may be used as items in an NSLayoutConstraint and represent a rectangle in the layout engine. Create a UILayoutGuide with -init, and add to a view with -[UIView addLayoutGuide:] before using it in a constraint.
    • Constructor Detail

      • UILayoutGuide

        protected UILayoutGuide​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • constraintsAffectingLayoutForAxis

        public NSArray<? extends NSLayoutConstraint> constraintsAffectingLayoutForAxis​(long axis)
        This returns a list of all the constraints that are affecting the current location of the receiver. The constraints do not necessarily involve the receiver, they may affect the frame indirectly. Pass UILayoutConstraintAxisHorizontal for the constraints affecting [self center].x and CGRectGetWidth([self bounds]), and UILayoutConstraintAxisVertical for the constraints affecting[self center].y and CGRectGetHeight([self bounds]).
      • hasAmbiguousLayout

        public boolean hasAmbiguousLayout()
        If there aren't enough constraints in the system to uniquely determine layout, we say the layout is ambiguous. For example, if the only constraint in the system was x = y + 100, then there are lots of different possible values for x and y. This situation is not automatically detected by UIKit, due to performance considerations and details of the algorithm used for layout. The symptom of ambiguity is that views sometimes jump from place to place, or possibly are just in the wrong place. -hasAmbiguousLayout runs a check for whether there is another center and bounds the receiver could have that could also satisfy the constraints.
      • identifier

        public java.lang.String identifier()
        For ease of debugging. 'UI' prefix is reserved for UIKit-created layout guides.
      • layoutFrame

        public CGRect layoutFrame()
        The frame of the UILayoutGuide in its owningView's coordinate system. Valid by the time the owningView receives -layoutSubviews.
      • leadingAnchor

        public NSLayoutXAxisAnchor leadingAnchor()
        Constraint creation conveniences. See NSLayoutAnchor.h for details.
      • owningView

        public UIView owningView()
        The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint. Do not use this property directly to change the owningView of a layout guide. Instead, use -[UIView addLayoutGuide:] and -[UIView removeLayoutGuide:], which will use this property to change the owningView.
      • setIdentifier

        public void setIdentifier​(java.lang.String value)
        For ease of debugging. 'UI' prefix is reserved for UIKit-created layout guides.
      • setOwningView_unsafe

        public void setOwningView_unsafe​(UIView value)
        The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint. Do not use this property directly to change the owningView of a layout guide. Instead, use -[UIView addLayoutGuide:] and -[UIView removeLayoutGuide:], which will use this property to change the owningView.
      • setOwningView

        public void setOwningView​(UIView value)
        The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint. Do not use this property directly to change the owningView of a layout guide. Instead, use -[UIView addLayoutGuide:] and -[UIView removeLayoutGuide:], which will use this property to change the owningView.