Package apple.uikit
Class UILayoutGuide
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UILayoutGuide
-
- 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUILayoutGuide(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UILayoutGuidealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)NSLayoutYAxisAnchorbottomAnchor()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)NSLayoutXAxisAnchorcenterXAnchor()NSLayoutYAxisAnchorcenterYAnchor()static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()NSArray<? extends NSLayoutConstraint>constraintsAffectingLayoutForAxis(long axis)This returns a list of all the constraints that are affecting the current location of the receiver.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)booleanhasAmbiguousLayout()If there aren't enough constraints in the system to uniquely determine layout, we say the layout is ambiguous.static longhash_static()NSLayoutDimensionheightAnchor()java.lang.Stringidentifier()For ease of debugging.UILayoutGuideinit()UILayoutGuideinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)CGRectlayoutFrame()The frame of the UILayoutGuide in its owningView's coordinate system.NSLayoutXAxisAnchorleadingAnchor()Constraint creation conveniences.NSLayoutXAxisAnchorleftAnchor()static java.lang.Objectnew_objc()UIViewowningView()The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)NSLayoutXAxisAnchorrightAnchor()voidsetIdentifier(java.lang.String value)For ease of debugging.voidsetOwningView(UIView value)The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint.voidsetOwningView_unsafe(UIView value)The guide must be added to a view with -[UIView addLayoutGuide:] before being used in a constraint.static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()NSLayoutYAxisAnchortopAnchor()NSLayoutXAxisAnchortrailingAnchor()static longversion_static()NSLayoutDimensionwidthAnchor()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UILayoutGuide alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
bottomAnchor
public NSLayoutYAxisAnchor bottomAnchor()
-
centerXAnchor
public NSLayoutXAxisAnchor centerXAnchor()
-
centerYAnchor
public NSLayoutYAxisAnchor centerYAnchor()
-
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]).
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
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.
-
heightAnchor
public NSLayoutDimension heightAnchor()
-
identifier
public java.lang.String identifier()
For ease of debugging. 'UI' prefix is reserved for UIKit-created layout guides.
-
init
public UILayoutGuide init()
-
initWithCoder
public UILayoutGuide initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
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.
-
leftAnchor
public NSLayoutXAxisAnchor leftAnchor()
-
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.
-
rightAnchor
public NSLayoutXAxisAnchor rightAnchor()
-
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.
-
topAnchor
public NSLayoutYAxisAnchor topAnchor()
-
trailingAnchor
public NSLayoutXAxisAnchor trailingAnchor()
-
widthAnchor
public NSLayoutDimension widthAnchor()
-
-