Struct commands::command_table::CommandTable
[−]
[src]
pub struct CommandTable { pub name: String, pub inherit: Vec<Rc<CommandTable>>, pub commands: Vec<CommandTableEntry>, pub menu_definition: Option<MenuDefinition>, }
A group of related commands
Command tables are a way of grouping a set of related command objects and providing user interfaces to the commands.
Command tables can be interacted with via menus, toolbars, keystrokes, gestures, and more.
Fields
name: String
The name of the command table
inherit: Vec<Rc<CommandTable>>
Tables inherited by this table
commands: Vec<CommandTableEntry>
Commands in this table
Menu description
Methods
impl CommandTable
[src]
fn new(
name: String,
inherit: Vec<Rc<CommandTable>>,
commands: Vec<CommandTableEntry>
) -> Rc<CommandTable>
name: String,
inherit: Vec<Rc<CommandTable>>,
commands: Vec<CommandTableEntry>
) -> Rc<CommandTable>
Construct a CommandTable
.