70 std::vector<FileDrop>
TakeFileDrops() {
return std::exchange(m_fileDrops, {}); }
76 if (h) m_globalHandlers.push_back(std::move(h));
82 if (m_globalHandlers.empty())
return false;
83 m_globalHandlers.pop_back();
91 const std::vector<RecordedInputEvent>&
GetRecordedEvents()
const {
return m_recordedEvents; }
93 void ConsumeEvent(
size_t index) {
if (index < m_recordedEvents.size()) m_recordedEvents[index].consumed =
true; }
124 static bool IsMouseEvent(
EventType type);
125 static bool IsKeyboardEvent(
EventType type);
135 uint32_t beforeEvent = 0;
141 std::string composition;
146 void HandOverHeldTextInput(
size_t upTo,
size_t& next,
GUIStateManager& guiStateManager);
153 int2 m_prevScreenPos {};
158 ITextSystem* m_textSystem =
nullptr;
159 bool m_holdTextInput =
false;
161 std::vector<RecordedInputEvent> m_recordedEvents;
162 std::vector<HeldTextInput> m_heldTextInput;
163 std::vector<EventHandler> m_globalHandlers;
167 std::vector<FileDrop> m_fileDrops;
The frame's element tree.
Definition gui_element_storage.h:96
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:189
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:134
tachyon::ID windowID
Definition gui_input_state.h:135
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
The pen, as it was at a pointer event.
Definition gui_input_state.h:40
Definition gui_base_types.h:120
Integer 2D vector.
Definition gui_base_types.h:18