Blender V5.3
BKE_wm_runtime.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <optional>
12
13#include "BKE_report.hh"
14
16
17#include "BLI_set.hh"
18
19namespace blender {
20
21struct UndoStack;
22struct wmMsgBus;
23struct wmKeyConfig;
24struct wmEvent;
25struct wmWindow;
26struct wmIMEData;
27struct wmGesture;
28struct wmJob;
29struct wmDrag;
30struct wmPaintCursor;
31struct WindowDrawCB;
32
33namespace bke {
34
36 uint64_t operator()(const wmNotifier *note) const;
37};
39 bool operator()(const wmNotifier *a, const wmNotifier *b) const;
40};
42 4,
46
56 wmWindow *winactive = nullptr;
57
59 bool is_interface_locked = false;
60
63
72
75
82 ListBaseT<wmNotifier> notifier_queue = {nullptr, nullptr};
88
90 const wmNotifier *notifier_current = nullptr;
91
93 ListBaseT<wmOperator> operators = {nullptr, nullptr};
94
96 ListBaseT<wmPaintCursor> paintcursors = {nullptr, nullptr};
97
102 ListBaseT<wmKeyConfig> keyconfigs = {nullptr, nullptr};
103
105 ListBaseT<wmTimer> timers = {nullptr, nullptr};
106
108 ListBaseT<wmJob> jobs = {nullptr, nullptr};
109
111 ListBaseT<wmDrag> drags = {nullptr, nullptr};
112
115
118
121
128
130
133};
134
150
153 ListBaseT<wmEvent> event_queue = {nullptr, nullptr};
154
159 wmIMEData *ime_data = nullptr;
164 std::optional<wmIMEOwnerType> ime_owner;
187
188 /* Optionally store the size and position using this key in the user's recents file. */
189 std::string recents_storage_key = {};
190
192 void *ghostwin = nullptr;
193
195 void *gpuctx = nullptr;
196
198 ListBaseT<wmEventHandler> handlers = {nullptr, nullptr};
199
201 ListBaseT<wmEventHandler> modalhandlers = {nullptr, nullptr};
202
204 ListBaseT<WindowDrawCB> drawcalls = {nullptr, nullptr};
205
207 ListBaseT<wmGesture> gesture = {nullptr, nullptr};
208
216
233 wmEvent *eventstate = nullptr;
234
240
242 void *cursor_keymap_status = nullptr;
243
244 WindowRuntime() = default;
246};
247
248} // namespace bke
249} // namespace blender
Set< const wmNotifier *, 4, DefaultProbingStrategy, wmNotifierHashForQueue, wmNotifierEqForQueue > wmNotifierQueueSet
BMesh Iterators.
unsigned __int64 uint64_t
Definition BKE_text.h:91
PythonProbingStrategy<> DefaultProbingStrategy
signed char int8_t
Definition BKE_text.h:76
ListBaseT< wmPaintCursor > paintcursors
ListBaseT< wmKeyConfig > keyconfigs
ListBaseT< wmNotifier > notifier_queue
ListBaseT< wmOperator > operators
ListBaseT< wmEventHandler > handlers
ListBaseT< wmEvent > event_queue
ListBaseT< wmGesture > gesture
ListBaseT< wmEventHandler > modalhandlers
ListBaseT< WindowDrawCB > drawcalls
std::optional< wmIMEOwnerType > ime_owner
bool operator()(const wmNotifier *a, const wmNotifier *b) const
uint64_t operator()(const wmNotifier *note) const