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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 mouse_up_event (int a_x, int a_y)
 
virtual ~mouse_up_event ()
 
 mouse_up_event (const mouse_up_event &a_from)
 
mouse_up_eventoperator= (const mouse_up_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 150 of file event.

Constructor & Destructor Documentation

◆ mouse_up_event() [1/2]

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

Definition at line 168 of file event.

169  :m_x(a_x)
170  ,m_y(a_y)
171  {}

◆ ~mouse_up_event()

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

Definition at line 172 of file event.

172 {}

◆ mouse_up_event() [2/2]

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

Definition at line 174 of file event.

175  :event(a_from)
176  ,m_x(a_from.m_x)
177  ,m_y(a_from.m_y)
178  {}

Member Function Documentation

◆ cast()

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

Implements tools::sg::event.

Definition at line 155 of file event.

155  {
156  if(void* p = cmp_cast<mouse_up_event>(this,a_class)) return p;
157  return 0;
158  }

◆ copy()

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

Implements tools::sg::event.

Definition at line 166 of file event.

166 {return new mouse_up_event(*this);}

◆ id_class()

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

Definition at line 154 of file event.

154 {return parent::id_class()+3;}

◆ operator=()

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

Definition at line 179 of file event.

179  {
180  event::operator=(a_from);
181  m_x = a_from.m_x;
182  m_y = a_from.m_y;
183  return *this;
184  }

◆ x()

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

Definition at line 186 of file event.

186 {return m_x;}

◆ y()

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

Definition at line 187 of file event.

187 {return m_y;}

Member Data Documentation

◆ m_x

int tools::sg::mouse_up_event::m_x
protected

Definition at line 189 of file event.

◆ m_y

int tools::sg::mouse_up_event::m_y
protected

Definition at line 190 of file event.


The documentation for this class was generated from the following file:
tools::sg::mouse_up_event::m_x
int m_x
Definition: event:189
tools::sg::mouse_up_event::m_y
int m_y
Definition: event:190
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
tools::sg::mouse_up_event::mouse_up_event
mouse_up_event(int a_x, int a_y)
Definition: event:168