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

The name of the command table

inherit

Tables inherited by this table

commands

Commands in this table

menu_definition

Menu description

Methods

impl CommandTable

fn new(name: String, inherit: Vec<Rc<CommandTable>>, commands: Vec<CommandTableEntry>) -> Rc<CommandTable>

Construct a CommandTable.