Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
Event.hpp File Reference
#include <string>
#include <vector>
#include <jau/enum_util.hpp>
#include <jau/int_math_ct.hpp>
#include <jau/fraction_type.hpp>
Include dependency graph for Event.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gamp::wt::event::InputEvent
 
class  gamp::wt::event::WTEvent
 

Namespaces

namespace  gamp
 Gamp: Graphics, Audio, Multimedia and Processing Framework (Native C++, WebAssembly, ...)
 
namespace  gamp::wt
 
namespace  gamp::wt::event
 

Typedefs

typedef std::shared_ptr< Windowgamp::wt::WindowRef
 
typedef std::weak_ptr< Windowgamp::wt::WindowWeakPtr
 

Enumerations

enum class  gamp::wt::event::InputButton : uint16_t {
  gamp::wt::event::InputButton::none = 0 , gamp::wt::event::InputButton::button1 = 1 , gamp::wt::event::InputButton::button2 = 2 , gamp::wt::event::InputButton::button3 = 3 ,
  gamp::wt::event::InputButton::button4 = 4 , gamp::wt::event::InputButton::button5 = 5 , gamp::wt::event::InputButton::button6 = 6 , gamp::wt::event::InputButton::button7 = 7 ,
  gamp::wt::event::InputButton::button8 = 8 , gamp::wt::event::InputButton::button9 = 9 , gamp::wt::event::InputButton::button10 = 10 , gamp::wt::event::InputButton::button11 = 11 ,
  gamp::wt::event::InputButton::button12 = 12 , gamp::wt::event::InputButton::button13 = 13 , gamp::wt::event::InputButton::button14 = 14 , gamp::wt::event::InputButton::button15 = 15 ,
  gamp::wt::event::InputButton::button16 = 16 , gamp::wt::event::InputButton::button_count = 16
}
 
enum class  gamp::wt::event::InputModifier : uint32_t {
  gamp::wt::event::InputModifier::none = 0 , gamp::wt::event::InputModifier::lshift = 1U << 0 , gamp::wt::event::InputModifier::rshift = 1U << 1 , gamp::wt::event::InputModifier::lctrl = 1U << 2 ,
  gamp::wt::event::InputModifier::rctrl = 1U << 3 , gamp::wt::event::InputModifier::lalt = 1U << 4 , gamp::wt::event::InputModifier::ralt = 1U << 5 , gamp::wt::event::InputModifier::lmeta = 1U << 6 ,
  gamp::wt::event::InputModifier::rmeta = 1U << 7 , gamp::wt::event::InputModifier::shift = lshift | rshift , gamp::wt::event::InputModifier::ctrl = lctrl | rctrl , gamp::wt::event::InputModifier::alt = lalt | ralt ,
  gamp::wt::event::InputModifier::meta = lmeta | rmeta , gamp::wt::event::InputModifier::modifier = shift | ctrl | alt | meta , gamp::wt::event::InputModifier::button1_bit = 8 , gamp::wt::event::InputModifier::button1 = 1U << button1_bit ,
  gamp::wt::event::InputModifier::button2 = 1U << 9 , gamp::wt::event::InputModifier::button3 = 1U << 10 , gamp::wt::event::InputModifier::button4 = 1U << 11 , gamp::wt::event::InputModifier::button5 = 1U << 12 ,
  gamp::wt::event::InputModifier::button6 = 1U << 13 , gamp::wt::event::InputModifier::button7 = 1U << 14 , gamp::wt::event::InputModifier::button8 = 1U << 15 , gamp::wt::event::InputModifier::button9 = 1U << 16 ,
  gamp::wt::event::InputModifier::button10 = 1U << 17 , gamp::wt::event::InputModifier::button11 = 1U << 18 , gamp::wt::event::InputModifier::button12 = 1U << 19 , gamp::wt::event::InputModifier::button13 = 1U << 20 ,
  gamp::wt::event::InputModifier::button14 = 1U << 21 , gamp::wt::event::InputModifier::button15 = 1U << 22 , gamp::wt::event::InputModifier::button16 = 1U << 23 , gamp::wt::event::InputModifier::button_last = button16 ,
  gamp::wt::event::InputModifier::button_all = 0xffffU << 8 , gamp::wt::event::InputModifier::repeat = 1U << 29 , gamp::wt::event::InputModifier::confined = 1U << 30 , gamp::wt::event::InputModifier::invisible = 1U << 31
}
 

Functions

 gamp::wt::event::JAU_MAKE_BITFIELD_ENUM_STRING (InputModifier, lshift, rshift, lctrl, rctrl, lalt, ralt, lmeta, rmeta, button1, button2, button3, button4, button5, button6, button7, button8, button9, button10, button11, button12, button13, button14, button15, button16, repeat, confined, invisible)
 
 gamp::wt::event::JAU_MAKE_ENUM_INFO (InputButton, button1, button2, button3, button4, button5, button6, button7, button8, button9, button10, button11, button12, button13, button14, button15, button16)
 
 gamp::wt::event::JAU_MAKE_ENUM_STRING (InputButton, button1, button2, button3, button4, button5, button6, button7, button8, button9, button10, button11, button12, button13, button14, button15, button16)
 
std::ostream & gamp::wt::event::operator<< (std::ostream &out, const InputEvent &v)
 
std::ostream & gamp::wt::event::operator<< (std::ostream &out, const WTEvent &v)
 

Variables

static constexpr uint16_t gamp::wt::event::EVENT_KEY_PRESSED = 300
 A key has been pressed, excluding auto-repeat-modifier keys.
 
static constexpr uint16_t gamp::wt::event::EVENT_KEY_RELEASED = 301
 A key has been released, excluding auto-repeat-modifier keys.
 
static constexpr short gamp::wt::event::EVENT_POINTER_CLICKED = 200
 
static constexpr short gamp::wt::event::EVENT_POINTER_DRAGGED = 206
 
static constexpr short gamp::wt::event::EVENT_POINTER_ENTERED = 201
 Only generated for PointerType::mouse.
 
static constexpr short gamp::wt::event::EVENT_POINTER_EXITED = 202
 Only generated for PointerType::mouse.
 
static constexpr short gamp::wt::event::EVENT_POINTER_MOVED = 205
 
static constexpr short gamp::wt::event::EVENT_POINTER_PRESSED = 203
 
static constexpr short gamp::wt::event::EVENT_POINTER_RELEASED = 204
 
static constexpr short gamp::wt::event::EVENT_POINTER_WHEEL = 207
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_DESTROY_NOTIFY = 102
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_DESTROYED = 105
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_FOCUS_CHANGED = 103
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_MOVED = 101
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_REPAINT = 104
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_RESIZED = 100
 
static constexpr uint16_t gamp::wt::event::EVENT_WINDOW_VISIBILITY_CHANGED = 106