Btk
Btk::Event Class Reference

A base event of all events. More...

#include <event.hpp>

Inheritance diagram for Btk::Event:

Public Types

enum  Type : Uint32 {
  SetRect = 0, KeyBoard = 1, Enter = 2, Leave = 3,
  Motion = 4, Click = 5, DragBegin = 6, Drag = 7,
  DragEnd = 8, TextInput = 9, TakeFocus = 10, LostFocus = 11,
  Enable = 12, Disable = 13, Wheel = 14, User = 1000,
  UserMax = UINT32_MAX - 1, Error = UINT32_MAX
}
 

Public Member Functions

Type type () const noexcept
 
 Event (Type t)
 
 Event (const Event &ev)
 
bool is_accepted () const noexcept
 is accepted More...
 
void accept () noexcept
 
void reject () noexcept
 
void set_type (Type t) noexcept
 Chaneg the event type. More...
 

Static Public Member Functions

static Type Register ()
 Register a event type. More...
 

Friends

class Window
 

Detailed Description

A base event of all events.

Member Function Documentation

◆ is_accepted()

bool Btk::Event::is_accepted ( ) const
inlinenoexcept

is accepted

Returns
true
false

◆ Register()

Event::Type Btk::Event::Register ( )
static

Register a event type.

Note
This function is thread safe
Returns
Type::ERROR if failed

◆ set_type()

void Btk::Event::set_type ( Type  t)
inlinenoexcept

Chaneg the event type.

Warning
It is very dangerous to use
Parameters
tThe new type

The documentation for this class was generated from the following files: