mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-15 14:49:18 +00:00
28 lines
880 B
Rust
28 lines
880 B
Rust
//! The module defines VectorCraft's built-in add-on menus and panels. Object › Plug-ins lists their tools and commands.
|
||
|
||
pub mod arrange;
|
||
pub mod cleanup;
|
||
pub mod color;
|
||
pub mod document;
|
||
pub mod enclosing_lasso;
|
||
pub mod pathtools;
|
||
pub mod pen;
|
||
pub mod typetools;
|
||
|
||
use crate::menus::Item;
|
||
|
||
/// The add-ons' submenus, then a separator: the head of Object › Plug-ins.
|
||
pub fn plugin_menu() -> Vec<Item> {
|
||
vec![
|
||
Item::Sub("Arrange Tools", arrange::menu()),
|
||
Item::Sub("Artwork Cleanup", cleanup::menu()),
|
||
Item::Sub("Color Effects", color::menu()),
|
||
Item::Sub("Document Tools", document::menu()),
|
||
Item::Sub("Enclosing Lasso", enclosing_lasso::menu()),
|
||
Item::Sub("Path Precision Tools", pathtools::menu()),
|
||
Item::Sub("Smart Pen", pen::menu()),
|
||
Item::Sub("Type Tools", typetools::menu()),
|
||
Item::Sep,
|
||
]
|
||
}
|