VCV Rack API v2
Loading...
Searching...
No Matches
context.hpp
Go to the documentation of this file.
1#pragma once
2#include <common.hpp>
3
4
5namespace rack {
6
7
8namespace history {
9struct State;
10} // namespace history
11
12
13namespace engine {
14struct Engine;
15} // namespace engine
16
17
18namespace window {
19struct Window;
20} // namespace window
21
22
23namespace patch {
24struct Manager;
25} // namespace patch
26
27
28namespace widget {
29struct EventState;
30} // namespace widget
31
32
33namespace app {
34struct Scene;
35} // namespace app
36
37
38namespace midiloopback {
39struct Context;
40} // namespace midiloopback
41
42
56
57
63void contextSet(Context* context);
64
67 return contextGet();
68}
69
71#define APP rack::contextGet()
72
73
74} // namespace rack
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:24
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Context * contextGet()
Returns the global Context pointer.
DEPRECATED Context * appGet()
Deprecated.
Definition context.hpp:66
void contextSet(Context *context)
Sets the context for this thread.
Rack instance state.
Definition context.hpp:45
midiloopback::Context * midiLoopbackContext
Definition context.hpp:52
patch::Manager * patch
Definition context.hpp:51
engine::Engine * engine
Definition context.hpp:48
window::Window * window
Definition context.hpp:49
app::Scene * scene
Definition context.hpp:47
history::State * history
Definition context.hpp:50
Definition Scene.hpp:12
Manages Modules and Cables and steps them in time.
Definition Engine.hpp:22
Definition history.hpp:173
Definition midiloopback.hpp:14
Handles the Rack patch file state.
Definition patch.hpp:13
Definition event.hpp:105
OS window with OpenGL context.
Definition Window.hpp:55