|
JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins
« « « Anklang Documentation |
Contains contextual details about the invocation of a command. More...
#include "juce_ApplicationCommandTarget.h"
Public Types | |
| enum | InvocationMethod { direct , fromKeyPress , fromMenu , fromButton } |
| The types of context in which the command might be called. More... | |
Public Member Functions | |
| InvocationInfo (CommandID commandID) | |
Public Attributes | |
| CommandID | commandID |
| The UID of the command that should be performed. | |
| int | commandFlags |
| The command's flags. | |
| InvocationMethod | invocationMethod |
| The type of event that triggered this command. | |
| Component * | originatingComponent |
| If triggered by a keypress or menu, this will be the component that had the keyboard focus at the time. | |
| KeyPress | keyPress |
| The keypress that was used to invoke it. | |
| bool | isKeyDown |
| True if the callback is being invoked when the key is pressed, false if the key is being released. | |
| int | millisecsSinceKeyPressed |
| If the key is being released, this indicates how long it had been held down for. | |
Contains contextual details about the invocation of a command.
Definition at line 60 of file juce_ApplicationCommandTarget.h.
The types of context in which the command might be called.
Definition at line 76 of file juce_ApplicationCommandTarget.h.
| juce::ApplicationCommandTarget::InvocationInfo::InvocationInfo | ( | CommandID | commandID | ) |
Definition at line 176 of file juce_ApplicationCommandTarget.cpp.
| int juce::ApplicationCommandTarget::InvocationInfo::commandFlags |
The command's flags.
See ApplicationCommandInfo for a description of these flag values.
Definition at line 72 of file juce_ApplicationCommandTarget.h.
| CommandID juce::ApplicationCommandTarget::InvocationInfo::commandID |
The UID of the command that should be performed.
Definition at line 67 of file juce_ApplicationCommandTarget.h.
| InvocationMethod juce::ApplicationCommandTarget::InvocationInfo::invocationMethod |
The type of event that triggered this command.
Definition at line 85 of file juce_ApplicationCommandTarget.h.
| bool juce::ApplicationCommandTarget::InvocationInfo::isKeyDown |
True if the callback is being invoked when the key is pressed, false if the key is being released.
Definition at line 108 of file juce_ApplicationCommandTarget.h.
| 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.
Definition at line 101 of file juce_ApplicationCommandTarget.h.
| 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.)
Definition at line 115 of file juce_ApplicationCommandTarget.h.
| 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.
Definition at line 93 of file juce_ApplicationCommandTarget.h.