gempyre  1.7.1
Gempyre::Event Struct Reference

Event received. More...

#include <gempyre.h>

Collaboration diagram for Gempyre::Event:
[legend]

Public Attributes

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. More...
 

Static Public Attributes

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. More...
 

Detailed Description

Event received.

Member Data Documentation

◆ properties

std::unordered_map<std::string, std::string> Gempyre::Event::properties

List of requested properties.

See also
Element::subscribe()

◆ 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: