11#include "../utility/utility.hpp"
12#include "../macros.hpp"
19hi_export
namespace hi {
inline namespace v1 {
31 keyboard_partial_grapheme,
61 text_cursor_left_char,
62 text_cursor_right_char,
63 text_cursor_down_char,
65 text_cursor_left_word,
66 text_cursor_right_word,
67 text_cursor_begin_line,
69 text_cursor_begin_sentence,
70 text_cursor_end_sentence,
71 text_cursor_begin_document,
72 text_cursor_end_document,
73 text_select_left_char,
74 text_select_right_char,
75 text_select_down_char,
78 text_select_left_word,
79 text_select_right_word,
80 text_select_begin_line,
82 text_select_begin_sentence,
83 text_select_end_sentence,
85 text_select_begin_document,
86 text_select_end_document,
87 text_delete_char_prev,
88 text_delete_char_next,
89 text_delete_word_prev,
90 text_delete_word_next,
99 text_insert_line_down,
117constexpr auto gui_event_type_metadata = enum_metadata{
118 gui_event_type::none,
"none",
119 gui_event_type::keyboard_down,
"keyboard_down",
120 gui_event_type::keyboard_grapheme,
"keyboard_grapheme",
121 gui_event_type::keyboard_partial_grapheme,
"keyboard_partial_grapheme",
122 gui_event_type::keyboard_enter,
"keyboard_enter",
123 gui_event_type::keyboard_exit,
"keyboard_exit",
124 gui_event_type::mouse_move,
"mouse_move",
125 gui_event_type::mouse_drag,
"mouse_drag",
126 gui_event_type::mouse_down,
"mouse_down",
127 gui_event_type::mouse_up,
"mouse_up",
128 gui_event_type::mouse_wheel,
"mouse_wheel",
129 gui_event_type::mouse_enter,
"mouse_enter",
130 gui_event_type::mouse_exit,
"mouse_exit",
131 gui_event_type::mouse_exit_window,
"mouse_exit_window",
145 gui_event_type::text_cursor_left_char,
"text_cursor_left_char",
146 gui_event_type::text_cursor_right_char,
"text_cursor_right_char",
147 gui_event_type::text_cursor_down_char,
"text_cursor_down_char",
148 gui_event_type::text_cursor_up_char,
"text_cursor_up_char",
149 gui_event_type::text_cursor_left_word,
"text_cursor_left_word",
150 gui_event_type::text_cursor_right_word,
"text_cursor_right_word",
151 gui_event_type::text_cursor_begin_line,
"text_cursor_begin_line",
152 gui_event_type::text_cursor_end_line,
"text_cursor_end_line",
153 gui_event_type::text_cursor_begin_sentence,
"text_cursor_begin_sentence",
154 gui_event_type::text_cursor_end_sentence,
"text_cursor_end_sentence",
155 gui_event_type::text_cursor_begin_document,
"text_cursor_begin_document",
156 gui_event_type::text_cursor_end_document,
"text_cursor_end_document",
157 gui_event_type::text_select_left_char,
"text_select_left_char",
158 gui_event_type::text_select_right_char,
"text_select_right_char",
159 gui_event_type::text_select_down_char,
"text_select_down_char",
160 gui_event_type::text_select_up_char,
"text_select_up_char",
161 gui_event_type::text_select_word,
"text_select_word",
162 gui_event_type::text_select_left_word,
"text_select_left_word",
163 gui_event_type::text_select_right_word,
"text_select_right_word",
164 gui_event_type::text_select_begin_line,
"text_select_begin_line",
165 gui_event_type::text_select_end_line,
"text_select_end_line",
166 gui_event_type::text_select_begin_sentence,
"text_select_begin_sentence",
167 gui_event_type::text_select_end_sentence,
"text_select_end_sentence",
168 gui_event_type::text_select_begin_document,
"text_select_begin_document",
169 gui_event_type::text_select_end_document,
"text_select_end_document",
170 gui_event_type::text_select_document,
"text_select_document",
171 gui_event_type::text_delete_char_prev,
"text_delete_char_prev",
172 gui_event_type::text_delete_char_next,
"text_delete_char_next",
173 gui_event_type::text_delete_word_prev,
"text_delete_word_prev",
174 gui_event_type::text_delete_word_next,
"text_delete_word_next",
175 gui_event_type::text_insert_line,
"text_insert_line",
176 gui_event_type::text_insert_line_up,
"text_insert_line_up",
177 gui_event_type::text_insert_line_down,
"text_insert_line_down",
178 gui_event_type::text_swap_chars,
"text_swap_chars",
179 gui_event_type::text_edit_paste,
"text_edit_paste",
180 gui_event_type::text_edit_copy,
"text_edit_copy",
181 gui_event_type::text_edit_cut,
"text_edit_cut",
182 gui_event_type::text_undo,
"text_undo",
183 gui_event_type::text_redo,
"text_redo",
184 gui_event_type::text_mode_insert,
"text_mode_insert",
185 gui_event_type::gui_widget_next,
"gui_widget_next",
186 gui_event_type::gui_widget_prev,
"gui_widget_prev",
187 gui_event_type::gui_menu_next,
"gui_menu_next",
188 gui_event_type::gui_menu_prev,
"gui_menu_prev",
189 gui_event_type::gui_toolbar_open,
"gui_toolbar_open",
190 gui_event_type::gui_toolbar_next,
"gui_toolbar_next",
191 gui_event_type::gui_toolbar_prev,
"gui_toolbar_prev",
192 gui_event_type::gui_activate,
"gui_activate",
193 gui_event_type::gui_activate_stay,
"gui_activate_stay",
194 gui_event_type::gui_activate_next,
"gui_activate_next",
195 gui_event_type::gui_cancel,
"gui_cancel"
203 return gui_event_type_metadata[rhs];
210 return gui_event_type_metadata.at(name, gui_event_type::none);
gui_event_type
GUI event type.
Definition gui_event_type.hpp:24
@ window_redraw
Request that part of the window gets redrawn on the next frame.
@ window_normalize
Request the window to be restored to the original size after a minimize and maximize commands.
@ window_open_sysmenu
Open the operating system provided menu for the window.
@ window_minimize
Request the window to minimize.
@ window_deactivate
The window is not longer the top-window.
@ window_close
Request the window to be closed.
@ window_activate
The window becomes the top-window.
@ window_set_keyboard_target
Change the keyboard target widget for this window.
@ window_maximize
Request the window to maximize.
@ window_relayout
Request that widgets get laid out on the next frame.
@ window_reconstrain
Request that widget get constraint on the next frame.
@ window_set_clipboard
Place data on the clipboard.
@ window_resize
Request that the window resizes to desired constraints on the next frame.
The HikoGUI namespace.
Definition array_generic.hpp:20
constexpr gui_event_type to_gui_event_type(std::string_view name) noexcept
Convert a name to a GUI event type.
Definition gui_event_type.hpp:208
DOXYGEN BUG.
Definition algorithm_misc.hpp:20