52 std::vector<FileDrop>
TakeFileDrops() {
return std::exchange(m_fileDrops, {}); }
58 if (h) m_globalHandlers.push_back(std::move(h));
64 if (m_globalHandlers.empty())
return false;
65 m_globalHandlers.pop_back();
73 const std::vector<RecordedInputEvent>&
GetRecordedEvents()
const {
return m_recordedEvents; }
75 void ConsumeEvent(
size_t index) {
if (index < m_recordedEvents.size()) m_recordedEvents[index].consumed =
true; }
106 static bool IsMouseEvent(
EventType type);
107 static bool IsKeyboardEvent(
EventType type);
112 int2 m_prevScreenPos {};
116 std::vector<RecordedInputEvent> m_recordedEvents;
117 std::vector<EventHandler> m_globalHandlers;
121 std::vector<FileDrop> m_fileDrops;
The frame's element tree.
Definition gui_element_storage.h:100
Owns the per-frame state objects and runs their BeginFrame / EndFrame in order.
Definition gui_state_manager.h:65
Text and icon registration, measurement, rendering and editing.
Definition gui_text_system.h:178
Tracks the next/prev tab targets around the focused element, rebuilt each frame during construction a...
Definition gui_tab_chain_manager.h:18
Definition gui_logging.h:24
A drag from another application, of files or text, over one of the app's windows.
Definition gui_input_state.h:62
tachyon::ID windowID
Definition gui_input_state.h:63
A 64-bit element ID whose bit layout depends on its IDMode.
Definition gui_id.h:23
static constexpr ID Invalid()
The "no element" ID (all bits zero); also the default for optional ID parameters.
Definition gui_id.h:66
Definition gui_base_types.h:121
Integer 2D vector.
Definition gui_base_types.h:19