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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 key_up_event (key_code a_key)
 
virtual ~key_up_event ()
 
 key_up_event (const key_up_event &a_from)
 
key_up_eventoperator= (const key_up_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 350 of file event.

Constructor & Destructor Documentation

◆ key_up_event() [1/2]

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

Definition at line 368 of file event.

369  :m_key(a_key)
370  {}

◆ ~key_up_event()

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

Definition at line 371 of file event.

371 {}

◆ key_up_event() [2/2]

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

Definition at line 373 of file event.

374  :event(a_from)
375  ,m_key(a_from.m_key)
376  {}

Member Function Documentation

◆ cast()

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

Implements tools::sg::event.

Definition at line 355 of file event.

355  {
356  if(void* p = cmp_cast<key_up_event>(this,a_class)) return p;
357  return 0;
358  }

◆ copy()

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

Implements tools::sg::event.

Definition at line 366 of file event.

366 {return new key_up_event(*this);}

◆ id_class()

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

Definition at line 354 of file event.

354 {return parent::id_class()+7;}

◆ key()

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

Definition at line 383 of file event.

383 {return m_key;}

◆ operator=()

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

Definition at line 377 of file event.

377  {
378  event::operator=(a_from);
379  m_key = a_from.m_key;
380  return *this;
381  }

Member Data Documentation

◆ m_key

key_code tools::sg::key_up_event::m_key
protected

Definition at line 385 of file event.


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