Skip to main content

Module categories

Module categories 

Source
Expand description

Toolbar groupings for drawing tools.

CATEGORY_ORDER and get_category_sections define the toolbar’s grouped menus. DrawingToolType::categories and DrawingToolType::by_category provide finer groups for command lists. They group the same tools differently, and DrawingToolType::Measure is a standalone toolbar button outside the toolbar groups.

Constants§

CATEGORY_ORDER
Category display order in the toolbar

Functions§

get_all_tools
Get all tools in a flat list
get_category_default_tool
Get the default tool for a category
get_category_sections
Get sections and tools for a category
get_tool_category
Get the category that a tool belongs to
tool_cnt
Count of all tools