Annotation Creation Toolbar
A toolbar used for creating annotations.
Types
A mapper that allows you to map the IDs of AnnotationCreationToolbar menu items with the annotation tool (and variant) you want it to activate/deactivate. The annotation creation toolbar will automatically handle all the logic.
Properties
Hooked controller for managing annotation creation (if any).
Default item ID -> annotation tool/variant mappings.
Holds which menu item IDs need to display the circular style indicators.
Functions
Binds controller for managing annotation creation mode.
Returns the lifecycle owner for coroutine scope. For Fragment-based toolbars, return fragment?.viewLifecycleOwner. For View-based toolbars, return ViewTreeLifecycleOwner.get(view).
Returns true if the controller is bound.
Called when the settings changed in the active annotation creation mode. You can then get the new values from the provided {@link AnnotationCreationController}.
Called then annotation editing mode changes, meaning another annotation is being selected for editing.
Called when annotation editing mode has been entered.
Called when annotation editing mode has been exited.
Called when the menu items are being grouped. This allows us to set default selected tool and initialize style indicator icons.
Mapper for mapping annotation creation tool menu items with the tool/variant they want to activate.
Whether to show the stylus button on the annotation toolbar when a stylus is detected as connected.
Unbinds controller for managing annotation creation mode.