SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM::EventType Class Reference

#include <SDOM_EventType.hpp>

Public Member Functions

 EventType (const std::string &name)
 
 EventType (const std::string &name, bool captures, bool bubbles, bool targetOnly, bool global)
 
const std::string & getName () const
 
bool operator== (const EventType &other) const
 
bool operator!= (const EventType &other) const
 
bool operator< (const EventType &other) const
 
bool getCaptures () const
 
bool getBubbles () const
 
bool getTargetOnly () const
 
bool getGlobal () const
 
EventTypesetCaptures (bool captures)
 
EventTypesetBubbles (bool bubbles)
 
EventTypesetTargetOnly (bool targetOnly)
 
EventTypesetGlobal (bool global)
 

Static Public Member Functions

static void registerEventType (const std::string &name, EventType *ptr)
 
static bool isRegistered (const std::string &name)
 
static const std::unordered_map< std::string, EventType * > & getRegistry ()
 
static void registerLua (sol::state_view lua)
 

Static Public Attributes

static EventType None
 
static EventType SDL_Event
 
static EventType Quit
 
static EventType EnterFrame
 
static EventType MouseButtonUp
 
static EventType MouseButtonDown
 
static EventType MouseWheel
 
static EventType MouseMove
 
static EventType MouseClick
 
static EventType MouseDoubleClick
 
static EventType MouseEnter
 
static EventType MouseLeave
 
static EventType StageClosed
 
static EventType KeyDown
 
static EventType KeyUp
 
static EventType Timer
 
static EventType Tick
 
static EventType Timeout
 
static EventType FocusGained
 
static EventType FocusLost
 
static EventType Resize
 
static EventType Move
 
static EventType Show
 
static EventType Hide
 
static EventType EnterFullscreen
 
static EventType LeaveFullscreen
 
static EventType ValueChanged
 
static EventType StateChanged
 
static EventType SelectionChanged
 
static EventType Enabled
 
static EventType Disabled
 
static EventType Active
 
static EventType Inactive
 
static EventType Visible
 
static EventType Hidden
 
static EventType Drag
 
static EventType Dragging
 
static EventType Drop
 
static EventType ClipboardCopy
 
static EventType ClipboardPaste
 
static EventType Added
 
static EventType Removed
 
static EventType AddedToStage
 
static EventType RemovedFromStage
 
static EventType OnInit
 
static EventType OnQuit
 
static EventType OnEvent
 
static EventType OnUpdate
 
static EventType OnRender
 
static EventType OnPreRender
 
static EventType User
 

Constructor & Destructor Documentation

◆ EventType() [1/2]

SDOM::EventType::EventType ( const std::string &  name)
inlineexplicit

◆ EventType() [2/2]

SDOM::EventType::EventType ( const std::string &  name,
bool  captures,
bool  bubbles,
bool  targetOnly,
bool  global 
)
inlineexplicit

Member Function Documentation

◆ getBubbles()

bool SDOM::EventType::getBubbles ( ) const

◆ getCaptures()

bool SDOM::EventType::getCaptures ( ) const

◆ getGlobal()

bool SDOM::EventType::getGlobal ( ) const

◆ getName()

const std::string & SDOM::EventType::getName ( ) const
inline

◆ getRegistry()

static const std::unordered_map< std::string, EventType * > & SDOM::EventType::getRegistry ( )
inlinestatic

◆ getTargetOnly()

bool SDOM::EventType::getTargetOnly ( ) const

◆ isRegistered()

static bool SDOM::EventType::isRegistered ( const std::string &  name)
inlinestatic

◆ operator!=()

bool SDOM::EventType::operator!= ( const EventType other) const
inline

◆ operator<()

bool SDOM::EventType::operator< ( const EventType other) const
inline

◆ operator==()

bool SDOM::EventType::operator== ( const EventType other) const
inline

◆ registerEventType()

static void SDOM::EventType::registerEventType ( const std::string &  name,
EventType ptr 
)
inlinestatic

◆ registerLua()

void SDOM::EventType::registerLua ( sol::state_view  lua)
static

◆ setBubbles()

EventType & SDOM::EventType::setBubbles ( bool  bubbles)

◆ setCaptures()

EventType & SDOM::EventType::setCaptures ( bool  captures)

◆ setGlobal()

EventType & SDOM::EventType::setGlobal ( bool  global)

◆ setTargetOnly()

EventType & SDOM::EventType::setTargetOnly ( bool  targetOnly)

Member Data Documentation

◆ Active

EventType SDOM::EventType::Active
static

◆ Added

EventType SDOM::EventType::Added
static

◆ AddedToStage

EventType SDOM::EventType::AddedToStage
static

◆ ClipboardCopy

EventType SDOM::EventType::ClipboardCopy
static

◆ ClipboardPaste

EventType SDOM::EventType::ClipboardPaste
static

◆ Disabled

EventType SDOM::EventType::Disabled
static

◆ Drag

EventType SDOM::EventType::Drag
static

◆ Dragging

EventType SDOM::EventType::Dragging
static

◆ Drop

EventType SDOM::EventType::Drop
static

◆ Enabled

EventType SDOM::EventType::Enabled
static

◆ EnterFrame

EventType SDOM::EventType::EnterFrame
static

◆ EnterFullscreen

EventType SDOM::EventType::EnterFullscreen
static

◆ FocusGained

EventType SDOM::EventType::FocusGained
static

◆ FocusLost

EventType SDOM::EventType::FocusLost
static

◆ Hidden

EventType SDOM::EventType::Hidden
static

◆ Hide

EventType SDOM::EventType::Hide
static

◆ Inactive

EventType SDOM::EventType::Inactive
static

◆ KeyDown

EventType SDOM::EventType::KeyDown
static

◆ KeyUp

EventType SDOM::EventType::KeyUp
static

◆ LeaveFullscreen

EventType SDOM::EventType::LeaveFullscreen
static

◆ MouseButtonDown

EventType SDOM::EventType::MouseButtonDown
static

◆ MouseButtonUp

EventType SDOM::EventType::MouseButtonUp
static

◆ MouseClick

EventType SDOM::EventType::MouseClick
static

◆ MouseDoubleClick

EventType SDOM::EventType::MouseDoubleClick
static

◆ MouseEnter

EventType SDOM::EventType::MouseEnter
static

◆ MouseLeave

EventType SDOM::EventType::MouseLeave
static

◆ MouseMove

EventType SDOM::EventType::MouseMove
static

◆ MouseWheel

EventType SDOM::EventType::MouseWheel
static

◆ Move

EventType SDOM::EventType::Move
static

◆ None

EventType SDOM::EventType::None
static

◆ OnEvent

EventType SDOM::EventType::OnEvent
static

◆ OnInit

EventType SDOM::EventType::OnInit
static

◆ OnPreRender

EventType SDOM::EventType::OnPreRender
static

◆ OnQuit

EventType SDOM::EventType::OnQuit
static

◆ OnRender

EventType SDOM::EventType::OnRender
static

◆ OnUpdate

EventType SDOM::EventType::OnUpdate
static

◆ Quit

EventType SDOM::EventType::Quit
static

◆ Removed

EventType SDOM::EventType::Removed
static

◆ RemovedFromStage

EventType SDOM::EventType::RemovedFromStage
static

◆ Resize

EventType SDOM::EventType::Resize
static

◆ SDL_Event

EventType SDOM::EventType::SDL_Event
static

◆ SelectionChanged

EventType SDOM::EventType::SelectionChanged
static

◆ Show

EventType SDOM::EventType::Show
static

◆ StageClosed

EventType SDOM::EventType::StageClosed
static

◆ StateChanged

EventType SDOM::EventType::StateChanged
static

◆ Tick

EventType SDOM::EventType::Tick
static

◆ Timeout

EventType SDOM::EventType::Timeout
static

◆ Timer

EventType SDOM::EventType::Timer
static

◆ User

EventType SDOM::EventType::User
static

◆ ValueChanged

EventType SDOM::EventType::ValueChanged
static

◆ Visible

EventType SDOM::EventType::Visible
static

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