Event received.
More...
#include <gempyre.h>
|
static bool | has_true (const std::optional< std::unordered_map< std::string, std::string > > &map, std::string_view key) |
| Utility to find if subsctibed event is true.
|
|
static bool | has_true (const std::unordered_map< std::string, std::string > &map, std::string_view key) |
| Utility to find if subsctibed event is true.
|
|
|
Element | element |
| element that has emitted the event, the same that did subscription.
|
|
std::unordered_map< std::string, std::string > | properties |
| List of requested properties.
|
|
|
static constexpr auto | MOUSE_MOVE = "mousemove" |
| Mouse moving.
|
|
static constexpr auto | MOUSE_UP = "mouseup" |
| Mouse button up.
|
|
static constexpr auto | MOUSE_DOWN = "mousedown" |
| Mouse button down.
|
|
static constexpr auto | MOUSE_CLICK = "click" |
| Click event.
|
|
static constexpr auto | MOUSE_DBLCLICK = "dblclick" |
| Mouse button double click.
|
|
static constexpr auto | KEY_UP = "keyup" |
| Key up.
|
|
static constexpr auto | KEY_PRESS = "keypress" |
| Key pressed.
|
|
static constexpr auto | KEY_DOWN = "keydown" |
| Key down.
|
|
static constexpr auto | SCROLL = "scroll" |
| Scroll.
|
|
static constexpr auto | CLICK = "click" |
| Generic click.
|
|
static constexpr auto | CHANGE = "change" |
| Generic change.
|
|
static constexpr auto | SELECT = "select" |
| Generic select.
|
|
static constexpr auto | FOCUS = "focus" |
| On focus.
|
|
static constexpr auto | BLUR = "blur" |
| Off focus.
|
|
static constexpr auto | FOCUS_IN = "focusin" |
| In Focus.
|
|
static constexpr auto | FOCUS_OUT = "focusout" |
| Focus Out.
|
|
static constexpr auto | LOAD = "load" |
| Load.
|
|
static constexpr auto | RESIZE = "resize" |
| Resize - use ui.root().subscribe(Event::RESIZE, [... for window resize.
|
|
static constexpr auto | REMOVED = "element_removed" |
| Remove - Element is removed.
|
|
◆ has_true() [1/2]
static bool Gempyre::Event::has_true |
( |
const std::optional< std::unordered_map< std::string, std::string > > & |
map, |
|
|
std::string_view |
key |
|
) |
| |
|
static |
Utility to find if subsctibed event is true.
- Parameters
-
- Returns
◆ has_true() [2/2]
static bool Gempyre::Event::has_true |
( |
const std::unordered_map< std::string, std::string > & |
map, |
|
|
std::string_view |
key |
|
) |
| |
|
static |
Utility to find if subsctibed event is true.
- Parameters
-
- Returns
◆ properties
std::unordered_map<std::string, std::string> Gempyre::Event::properties |
◆ REMOVED
constexpr auto Gempyre::Event::REMOVED = "element_removed" |
|
staticconstexpr |
Remove - Element is removed.
Note that this event may/is not received if Element::remove is called directly to that element as that removes the handler
The documentation for this struct was generated from the following file: