29ApplicationCommandInfo::ApplicationCommandInfo (
const CommandID cid) noexcept
30 : commandID (cid), flags (0)
35 const String& description_,
36 const String& categoryName_,
37 const int flags_)
noexcept
39 shortName = shortName_;
40 description = description_;
41 categoryName = categoryName_;
63 defaultKeypresses.add (
KeyPress (keyCode, modifiers, 0));
Represents a key press, including any modifier keys that are needed.
Represents the state of the mouse buttons and modifier keys.
int CommandID
A type used to hold the unique ID for an application command.
void addDefaultKeypress(int keyCode, ModifierKeys modifiers) noexcept
Handy method for adding a keypress to the defaultKeypresses array.
void setActive(bool isActive) noexcept
An easy way to set or remove the isDisabled bit in the structure's flags field.
void setTicked(bool isTicked) noexcept
An easy way to set or remove the isTicked bit in the structure's flags field.
void setInfo(const String &shortName, const String &description, const String &categoryName, int flags) noexcept
Sets a number of the structures values at once.