LMMS
Loading...
Searching...
No Matches
juce_ApplicationCommandTarget.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
47{
48public:
49 //==============================================================================
52
55
56 //==============================================================================
61 {
62 //==============================================================================
64
65 //==============================================================================
68
73
74 //==============================================================================
83
86
87 //==============================================================================
94
95 //==============================================================================
102
109
116 };
117
118 //==============================================================================
133
139 virtual void getAllCommands (Array<CommandID>& commands) = 0;
140
166
177 virtual bool perform (const InvocationInfo& info) = 0;
178
179 //==============================================================================
197 bool invoke (const InvocationInfo& invocationInfo,
198 const bool asynchronously);
199
205 bool invokeDirectly (const CommandID commandID,
206 const bool asynchronously);
207
208 //==============================================================================
216
222 bool isCommandActive (const CommandID commandID);
223
232
233private:
234 //==============================================================================
235 class CommandMessage;
236 friend class CommandMessage;
237
238 bool tryToInvoke (const InvocationInfo&, bool async);
239
242};
243
244} // namespace juce
Definition juce_ApplicationCommandTarget.cpp:30
bool tryToInvoke(const InvocationInfo &, bool async)
Definition juce_ApplicationCommandTarget.cpp:55
ApplicationCommandTarget()
Definition juce_ApplicationCommandTarget.cpp:51
bool invokeDirectly(const CommandID commandID, const bool asynchronously)
Definition juce_ApplicationCommandTarget.cpp:167
virtual ApplicationCommandTarget * getNextCommandTarget()=0
virtual void getCommandInfo(CommandID commandID, ApplicationCommandInfo &result)=0
virtual void getAllCommands(Array< CommandID > &commands)=0
bool invoke(const InvocationInfo &invocationInfo, const bool asynchronously)
Definition juce_ApplicationCommandTarget.cpp:136
virtual bool perform(const InvocationInfo &info)=0
bool isCommandActive(const CommandID commandID)
Definition juce_ApplicationCommandTarget.cpp:125
ApplicationCommandTarget * findFirstTargetParentComponent()
Definition juce_ApplicationCommandTarget.cpp:77
ApplicationCommandTarget * getTargetForCommand(const CommandID commandID)
Definition juce_ApplicationCommandTarget.cpp:85
Definition juce_Array.h:56
Definition juce_Component.h:36
Definition juce_KeyPress.h:40
struct backing_store_struct * info
Definition jmemsys.h:183
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
#define JUCE_API
Definition juce_StandardHeader.h:152
#define JUCE_DECLARE_WEAK_REFERENCEABLE(Class)
Definition juce_WeakReference.h:234
Definition carla_juce.cpp:31
int CommandID
Definition juce_ApplicationCommandID.h:37
Definition juce_ApplicationCommandInfo.h:45
Definition juce_ApplicationCommandTarget.h:61
KeyPress keyPress
Definition juce_ApplicationCommandTarget.h:101
InvocationMethod invocationMethod
Definition juce_ApplicationCommandTarget.h:85
InvocationInfo(const CommandID commandID)
Definition juce_ApplicationCommandTarget.cpp:176
Component * originatingComponent
Definition juce_ApplicationCommandTarget.h:93
bool isKeyDown
Definition juce_ApplicationCommandTarget.h:108
InvocationMethod
Definition juce_ApplicationCommandTarget.h:77
@ direct
Definition juce_ApplicationCommandTarget.h:78
@ fromButton
Definition juce_ApplicationCommandTarget.h:81
@ fromKeyPress
Definition juce_ApplicationCommandTarget.h:79
@ fromMenu
Definition juce_ApplicationCommandTarget.h:80
int commandFlags
Definition juce_ApplicationCommandTarget.h:72
CommandID commandID
Definition juce_ApplicationCommandTarget.h:67
int millisecsSinceKeyPressed
Definition juce_ApplicationCommandTarget.h:115
int result
Definition process.c:1455