Class PKToolPicker

  • All Implemented Interfaces:
    NSObject

    public class PKToolPicker
    extends NSObject
    A user interface for selecting a PKTool.
    • Constructor Detail

      • PKToolPicker

        protected PKToolPicker​(org.moe.natj.general.Pointer peer)
    • 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.
      • 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.
        Overrides:
        init in class NSObject
      • 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.