g4tools  5.4.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
tools::sg::key_down_event Class Reference
Inheritance diagram for tools::sg::key_down_event:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::key_down_event:
Collaboration graph
[legend]

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 key_down_event (key_code a_key)
 
virtual ~key_down_event ()
 
 key_down_event (const key_down_event &a_from)
 
key_down_eventoperator= (const key_down_event &a_from)
 
key_code key () const
 
- Public Member Functions inherited from tools::sg::event
 event ()
 
virtual ~event ()
 
 event (const event &)
 
eventoperator= (const event &)
 

Static Public Member Functions

static cid id_class ()
 
- Static Public Member Functions inherited from tools::sg::event
static cid id_class ()
 

Protected Attributes

key_code m_key
 

Detailed Description

Definition at line 312 of file event.

Constructor & Destructor Documentation

◆ key_down_event() [1/2]

tools::sg::key_down_event::key_down_event ( key_code  a_key)
inline

Definition at line 330 of file event.

331  :m_key(a_key)
332  {}

◆ ~key_down_event()

virtual tools::sg::key_down_event::~key_down_event ( )
inlinevirtual

Definition at line 333 of file event.

333 {}

◆ key_down_event() [2/2]

tools::sg::key_down_event::key_down_event ( const key_down_event a_from)
inline

Definition at line 335 of file event.

336  :event(a_from)
337  ,m_key(a_from.m_key)
338  {}

Member Function Documentation

◆ cast()

virtual void* tools::sg::key_down_event::cast ( cid  a_class) const
inlinevirtual

Implements tools::sg::event.

Definition at line 317 of file event.

317  {
318  if(void* p = cmp_cast<key_down_event>(this,a_class)) return p;
319  return 0;
320  }

◆ copy()

virtual event* tools::sg::key_down_event::copy ( ) const
inlinevirtual

Implements tools::sg::event.

Definition at line 328 of file event.

328 {return new key_down_event(*this);}

◆ id_class()

static cid tools::sg::key_down_event::id_class ( )
inlinestatic

Definition at line 316 of file event.

316 {return parent::id_class()+6;}

◆ key()

key_code tools::sg::key_down_event::key ( ) const
inline

Definition at line 345 of file event.

345 {return m_key;}

◆ operator=()

key_down_event& tools::sg::key_down_event::operator= ( const key_down_event a_from)
inline

Definition at line 339 of file event.

339  {
340  event::operator=(a_from);
341  m_key = a_from.m_key;
342  return *this;
343  }

Member Data Documentation

◆ m_key

key_code tools::sg::key_down_event::m_key
protected

Definition at line 347 of file event.


The documentation for this class was generated from the following file:
tools::sg::key_down_event::key_down_event
key_down_event(key_code a_key)
Definition: event:330
tools::sg::event::operator=
event & operator=(const event &)
Definition: event:50
tools::sg::event::event
event()
Definition: event:34
tools::sg::key_down_event::m_key
key_code m_key
Definition: event:347
tools::sg::event::id_class
static cid id_class()
Definition: event:23