openshot-audio
0.1.4
|
#include <juce_gui_basics.h>
Public Types | |
enum | InvocationMethod { direct = 0, fromKeyPress, fromMenu, fromButton } |
Public Member Functions | |
InvocationInfo (const CommandID commandID) | |
Public Attributes | |
CommandID | commandID |
int | commandFlags |
InvocationMethod | invocationMethod |
Component * | originatingComponent |
KeyPress | keyPress |
bool | isKeyDown |
int | millisecsSinceKeyPressed |
Contains contextual details about the invocation of a command.
The types of context in which the command might be called.
ApplicationCommandTarget::InvocationInfo::InvocationInfo | ( | const CommandID | commandID | ) |
int juce::ApplicationCommandTarget::InvocationInfo::commandFlags |
The command's flags. See ApplicationCommandInfo for a description of these flag values.
CommandID juce::ApplicationCommandTarget::InvocationInfo::commandID |
The UID of the command that should be performed.
InvocationMethod juce::ApplicationCommandTarget::InvocationInfo::invocationMethod |
The type of event that triggered this command.
bool juce::ApplicationCommandTarget::InvocationInfo::isKeyDown |
True if the callback is being invoked when the key is pressed, false if the key is being released.
KeyPress juce::ApplicationCommandTarget::InvocationInfo::keyPress |
The keypress that was used to invoke it.
Note that this will be an invalid keypress if the command was invoked by some other means than a keyboard shortcut.
int juce::ApplicationCommandTarget::InvocationInfo::millisecsSinceKeyPressed |
If the key is being released, this indicates how long it had been held down for.
(Only relevant if isKeyDown is false.)
Component* juce::ApplicationCommandTarget::InvocationInfo::originatingComponent |
If triggered by a keypress or menu, this will be the component that had the keyboard focus at the time.
If triggered by a button, it may be set to that component, or it may be null.