Skip to main content

Module drawing_toolbar

Module drawing_toolbar 

Source
Expand description

Categorized drawing tool picker and drawing utility controls.

Place DrawingToolbar beside a chart and apply its returned DrawingToolbarAction values to the chart or host state.

Re-exports§

pub use actions::DrawingToolbarAction;
pub use components::PairButton;
pub use components::draw_icon_btn;
pub use components::draw_separator;
pub use components::draw_toggle_btn;
pub use config::DrawingToolbarConfig;
pub use shortcuts::DrawingToolShortcuts;
pub use state::MagnetType;
pub use state::ToolbarState;
pub use submenu_builder::SubmenuBuilder;
pub use submenu_builder::SubmenuItem;
pub use submenu_builder::ToggleConfig;
pub use categories::ToolCategory;

Modules§

actions
Actions that can be returned from drawing toolbar interactions.
categories
Drawing tool categories for left toolbar.
components
Buttons, separators and SVG helpers for composing drawing toolbars.
config
Drawing toolbar dimensions and retained configuration values.
data
Drawing toolbar categories shared with drawing search and repositories.
icons
Icon lookup for drawing tools and toolbar categories.
shortcuts
Keyboard shortcuts for drawing tools.
state
Selection, recent tools, favorites and drawing utility state for the toolbar.
submenu_builder
Builder framework for dropdown submenus, and the flyout every drawing toolbar menu shares.
utilities
Bottom toolbar utility btns.

Structs§

DrawingTemplate
Drawing template metadata displayed by toolbar controls.
DrawingToolbar
Drawing toolbar - main UI component
DrawingToolbarDomainState
Drawing and cursor choices shared by the host and drawing toolbar.
GlyphPicker
Session state for the drawing glyph picker.