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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 mouse_down_event (int a_x, int a_y)
 
virtual ~mouse_down_event ()
 
 mouse_down_event (const mouse_down_event &a_from)
 
mouse_down_eventoperator= (const mouse_down_event &a_from)
 
int x () const
 
int y () 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

int m_x
 
int m_y
 

Detailed Description

Definition at line 107 of file event.

Constructor & Destructor Documentation

◆ mouse_down_event() [1/2]

tools::sg::mouse_down_event::mouse_down_event ( int  a_x,
int  a_y 
)
inline

Definition at line 125 of file event.

126  :m_x(a_x)
127  ,m_y(a_y)
128  {}

◆ ~mouse_down_event()

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

Definition at line 129 of file event.

129 {}

◆ mouse_down_event() [2/2]

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

Definition at line 131 of file event.

132  :event(a_from)
133  ,m_x(a_from.m_x)
134  ,m_y(a_from.m_y)
135  {}

Member Function Documentation

◆ cast()

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

Implements tools::sg::event.

Definition at line 112 of file event.

112  {
113  if(void* p = cmp_cast<mouse_down_event>(this,a_class)) return p;
114  return 0;
115  }

◆ copy()

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

Implements tools::sg::event.

Definition at line 123 of file event.

123 {return new mouse_down_event(*this);}

◆ id_class()

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

Definition at line 111 of file event.

111 {return parent::id_class()+2;}

◆ operator=()

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

Definition at line 136 of file event.

136  {
137  event::operator=(a_from);
138  m_x = a_from.m_x;
139  m_y = a_from.m_y;
140  return *this;
141  }

◆ x()

int tools::sg::mouse_down_event::x ( ) const
inline

Definition at line 143 of file event.

143 {return m_x;}

◆ y()

int tools::sg::mouse_down_event::y ( ) const
inline

Definition at line 144 of file event.

144 {return m_y;}

Member Data Documentation

◆ m_x

int tools::sg::mouse_down_event::m_x
protected

Definition at line 146 of file event.

◆ m_y

int tools::sg::mouse_down_event::m_y
protected

Definition at line 147 of file event.


The documentation for this class was generated from the following file:
tools::sg::mouse_down_event::m_x
int m_x
Definition: event:146
tools::sg::mouse_down_event::m_y
int m_y
Definition: event:147
tools::sg::event::operator=
event & operator=(const event &)
Definition: event:50
tools::sg::event::event
event()
Definition: event:34
tools::sg::mouse_down_event::mouse_down_event
mouse_down_event(int a_x, int a_y)
Definition: event:125
tools::sg::event::id_class
static cid id_class()
Definition: event:23