Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EventDispatch Class Reference

#include <EventDispatch.h>

List of all members.

Public Member Functions

 EventDispatch ()
virtual ~EventDispatch ()
virtual void Dispatch ()
virtual void Register (EventTarget *tgt)
virtual void Unregister (EventTarget *tgt)
virtual EventTargetGetCapture ()
virtual int CaptureMouse (EventTarget *tgt)
virtual int ReleaseMouse (EventTarget *tgt)
virtual EventTargetGetFocus ()
virtual void SetFocus (EventTarget *tgt)
virtual void KillFocus (EventTarget *tgt)
virtual void MouseEnter (EventTarget *tgt)

Static Public Member Functions

static const char * TYPENAME ()
static void Create ()
static void Close ()
static EventDispatchGetInstance ()

Protected Attributes

int mouse_x
int mouse_y
int mouse_l
int mouse_r
List< EventTargetclients
EventTargetcapture
EventTargetcurrent
EventTargetfocus
EventTargetclick_tgt

Static Protected Attributes

static EventDispatchdispatcher = 0

Detailed Description

Definition at line 24 of file EventDispatch.h.


Constructor & Destructor Documentation

EventDispatch::EventDispatch ( )

Definition at line 26 of file EventDispatch.cpp.

EventDispatch::~EventDispatch ( )
virtual

Definition at line 31 of file EventDispatch.cpp.


Member Function Documentation

int EventDispatch::CaptureMouse ( EventTarget tgt)
virtual

Definition at line 225 of file EventDispatch.cpp.

void EventDispatch::Close ( )
static

Definition at line 45 of file EventDispatch.cpp.

void EventDispatch::Create ( )
static

Definition at line 37 of file EventDispatch.cpp.

void EventDispatch::Dispatch ( )
virtual

Definition at line 54 of file EventDispatch.cpp.

EventTarget * EventDispatch::GetCapture ( )
virtual

Definition at line 219 of file EventDispatch.cpp.

EventTarget * EventDispatch::GetFocus ( )
virtual

Definition at line 249 of file EventDispatch.cpp.

static EventDispatch* EventDispatch::GetInstance ( )
inlinestatic

Definition at line 34 of file EventDispatch.h.

void EventDispatch::KillFocus ( EventTarget tgt)
virtual

Definition at line 269 of file EventDispatch.cpp.

void EventDispatch::MouseEnter ( EventTarget tgt)
virtual

Definition at line 185 of file EventDispatch.cpp.

void EventDispatch::Register ( EventTarget tgt)
virtual

Definition at line 197 of file EventDispatch.cpp.

int EventDispatch::ReleaseMouse ( EventTarget tgt)
virtual

Definition at line 236 of file EventDispatch.cpp.

void EventDispatch::SetFocus ( EventTarget tgt)
virtual

Definition at line 255 of file EventDispatch.cpp.

static const char* EventDispatch::TYPENAME ( )
inlinestatic

Definition at line 27 of file EventDispatch.h.

void EventDispatch::Unregister ( EventTarget tgt)
virtual

Definition at line 206 of file EventDispatch.cpp.


Member Data Documentation

EventTarget* EventDispatch::capture
protected

Definition at line 53 of file EventDispatch.h.

EventTarget* EventDispatch::click_tgt
protected

Definition at line 56 of file EventDispatch.h.

List<EventTarget> EventDispatch::clients
protected

Definition at line 52 of file EventDispatch.h.

EventTarget* EventDispatch::current
protected

Definition at line 54 of file EventDispatch.h.

EventDispatch * EventDispatch::dispatcher = 0
staticprotected

Definition at line 58 of file EventDispatch.h.

EventTarget* EventDispatch::focus
protected

Definition at line 55 of file EventDispatch.h.

int EventDispatch::mouse_l
protected

Definition at line 51 of file EventDispatch.h.

int EventDispatch::mouse_r
protected

Definition at line 51 of file EventDispatch.h.

int EventDispatch::mouse_x
protected

Definition at line 51 of file EventDispatch.h.

int EventDispatch::mouse_y
protected

Definition at line 51 of file EventDispatch.h.


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