Package apple.pencilkit
Class PKToolPicker
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.pencilkit.PKToolPicker
-
-
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 protectedPKToolPicker(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidaddObserver(PKToolPickerObserver observer)Add an observer for a tool picker changes.static PKToolPickeralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()longcolorUserInterfaceStyle()Set `colorUserInterfaceStyle` to cause this tool picker to create colors for a canvas view of the specified user interface style.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()CGRectframeObscuredInView(UIView view)The frame within a specific view that the tool picker covers.static longhash_static()PKToolPickerinit()Returns a new `PKToolPicker` instance.static 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)booleanisRulerActive()Is the ruler toggled such that it should be active on canvases.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisVisible()Is the tool picker visible.static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()longoverrideUserInterfaceStyle()Set `overrideUserInterfaceStyle` to cause this tool picker UI to have a specific user interface style.voidremoveObserver(PKToolPickerObserver observer)Remove an observer for a tool picker changes.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)PKToolselectedTool()The currently selected tool.voidsetColorUserInterfaceStyle(long value)Set `colorUserInterfaceStyle` to cause this tool picker to create colors for a canvas view of the specified user interface style.voidsetOverrideUserInterfaceStyle(long value)Set `overrideUserInterfaceStyle` to cause this tool picker UI to have a specific user interface style.voidsetRulerActive(boolean value)Is the ruler toggled such that it should be active on canvases.voidsetSelectedTool(PKTool value)The currently selected tool.voidsetShowsDrawingPolicyControls(boolean value)If this is true the tool picker will show UI that allows the default drawing policy to be changed.voidsetStateAutosaveName(java.lang.String value)The name used to automatically save the tool picker's state in the defaults system.static voidsetVersion_static(long aVersion)voidsetVisibleForFirstResponder(boolean visible, UIResponder responder)Sets when this tool picker should be visible.static PKToolPickersharedToolPickerForWindow(UIWindow window)Returns the shared `PKToolPicker` instance for a window.booleanshowsDrawingPolicyControls()If this is true the tool picker will show UI that allows the default drawing policy to be changed.java.lang.StringstateAutosaveName()The name used to automatically save the tool picker's state in the defaults system.static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
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()
-
addObserver
public void addObserver(PKToolPickerObserver observer)
Add an observer for a tool picker changes. Adding a `PKCanvasView` as an observer, will also set its initial state. Observers are held weakly.
-
alloc
public static PKToolPicker 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()
-
colorUserInterfaceStyle
public long colorUserInterfaceStyle()
Set `colorUserInterfaceStyle` to cause this tool picker to create colors for a canvas view of the specified user interface style. If this tool picker is used for selecting tools for canvas views that have different user interface styles, `colorUserInterfaceStyle` should be set to the canvas's user interface style. By default this is `UIUserInterfaceStyleUnspecified`.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
frameObscuredInView
public CGRect frameObscuredInView(UIView view)
The frame within a specific view that the tool picker covers.- Parameters:
view- The view in which to return the frame to avoid.- Returns:
- The rect in `view` that the tool picker obscures. Will return `CGRectNull` if no rect is obscured, or the tool picker is movable.
-
hash_static
public static long hash_static()
-
init
public PKToolPicker init()
Returns a new `PKToolPicker` instance. If two tool pickers are visible for the same first responder, or the same tool picker is visible in two windows the result is deterministic, but undefined.
-
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)
-
isRulerActive
public boolean isRulerActive()
Is the ruler toggled such that it should be active on canvases.
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
isVisible
public boolean isVisible()
Is the tool picker visible.
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
overrideUserInterfaceStyle
public long overrideUserInterfaceStyle()
Set `overrideUserInterfaceStyle` to cause this tool picker UI to have a specific user interface style. Consider if you need to set `colorUserInterfaceStyle` if you set this property. By default this is `UIUserInterfaceStyleUnspecified`.
-
removeObserver
public void removeObserver(PKToolPickerObserver observer)
Remove an observer for a tool picker changes.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
selectedTool
public PKTool selectedTool()
The currently selected tool.
-
setColorUserInterfaceStyle
public void setColorUserInterfaceStyle(long value)
Set `colorUserInterfaceStyle` to cause this tool picker to create colors for a canvas view of the specified user interface style. If this tool picker is used for selecting tools for canvas views that have different user interface styles, `colorUserInterfaceStyle` should be set to the canvas's user interface style. By default this is `UIUserInterfaceStyleUnspecified`.
-
setOverrideUserInterfaceStyle
public void setOverrideUserInterfaceStyle(long value)
Set `overrideUserInterfaceStyle` to cause this tool picker UI to have a specific user interface style. Consider if you need to set `colorUserInterfaceStyle` if you set this property. By default this is `UIUserInterfaceStyleUnspecified`.
-
setRulerActive
public void setRulerActive(boolean value)
Is the ruler toggled such that it should be active on canvases.
-
setSelectedTool
public void setSelectedTool(PKTool value)
The currently selected tool.
-
setVersion_static
public static void setVersion_static(long aVersion)
-
setVisibleForFirstResponder
public void setVisibleForFirstResponder(boolean visible, UIResponder responder)Sets when this tool picker should be visible.- Parameters:
visible- The visible state of this tool picker.responder- The first responder for which this visible state applies.
-
sharedToolPickerForWindow
public static PKToolPicker sharedToolPickerForWindow(UIWindow window)
Returns the shared `PKToolPicker` instance for a window. The returned tool picker object is typically shared between windows in the same UIWindowScene.
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
setShowsDrawingPolicyControls
public void setShowsDrawingPolicyControls(boolean value)
If this is true the tool picker will show UI that allows the default drawing policy to be changed. By default this is true.
-
setStateAutosaveName
public void setStateAutosaveName(java.lang.String value)
The name used to automatically save the tool picker's state in the defaults system.
-
showsDrawingPolicyControls
public boolean showsDrawingPolicyControls()
If this is true the tool picker will show UI that allows the default drawing policy to be changed. By default this is true.
-
stateAutosaveName
public java.lang.String stateAutosaveName()
The name used to automatically save the tool picker's state in the defaults system.
-
-