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

Public Member Functions

virtual void * cast (cid a_class) const
 
virtual eventcopy () const
 
 mouse_move_event (int a_x, int a_y, int a_ox, int a_oy, bool a_touch)
 
virtual ~mouse_move_event ()
 
 mouse_move_event (const mouse_move_event &a_from)
 
mouse_move_eventoperator= (const mouse_move_event &a_from)
 
int x () const
 
int y () const
 
int ox () const
 
int oy () const
 
bool is_touch () 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
 
int m_ox
 
int m_oy
 
bool m_touch
 

Detailed Description

Definition at line 193 of file event.

Constructor & Destructor Documentation

◆ mouse_move_event() [1/2]

tools::sg::mouse_move_event::mouse_move_event ( int  a_x,
int  a_y,
int  a_ox,
int  a_oy,
bool  a_touch 
)
inline

Definition at line 211 of file event.

214  :m_x(a_x)
215  ,m_y(a_y)
216  ,m_ox(a_ox)
217  ,m_oy(a_oy)
218  ,m_touch(a_touch)
219  {}

◆ ~mouse_move_event()

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

Definition at line 220 of file event.

220 {}

◆ mouse_move_event() [2/2]

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

Definition at line 222 of file event.

223  :event(a_from)
224  ,m_x(a_from.m_x)
225  ,m_y(a_from.m_y)
226  ,m_ox(a_from.m_ox)
227  ,m_oy(a_from.m_oy)
228  ,m_touch(a_from.m_touch)
229  {}

Member Function Documentation

◆ cast()

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

Implements tools::sg::event.

Definition at line 198 of file event.

198  {
199  if(void* p = cmp_cast<mouse_move_event>(this,a_class)) return p;
200  return 0;
201  }

◆ copy()

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

Implements tools::sg::event.

Definition at line 209 of file event.

209 {return new mouse_move_event(*this);}

◆ id_class()

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

Definition at line 197 of file event.

197 {return parent::id_class()+4;}

◆ is_touch()

bool tools::sg::mouse_move_event::is_touch ( ) const
inline

Definition at line 246 of file event.

246 {return m_touch;}

◆ operator=()

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

Definition at line 230 of file event.

230  {
231  event::operator=(a_from);
232  m_x = a_from.m_x;
233  m_y = a_from.m_y;
234 
235  m_ox = a_from.m_ox;
236  m_oy = a_from.m_oy;
237 
238  m_touch = a_from.m_touch;
239  return *this;
240  }

◆ ox()

int tools::sg::mouse_move_event::ox ( ) const
inline

Definition at line 244 of file event.

244 {return m_ox;}

◆ oy()

int tools::sg::mouse_move_event::oy ( ) const
inline

Definition at line 245 of file event.

245 {return m_oy;}

◆ x()

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

Definition at line 242 of file event.

242 {return m_x;}

◆ y()

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

Definition at line 243 of file event.

243 {return m_y;}

Member Data Documentation

◆ m_ox

int tools::sg::mouse_move_event::m_ox
protected

Definition at line 250 of file event.

◆ m_oy

int tools::sg::mouse_move_event::m_oy
protected

Definition at line 251 of file event.

◆ m_touch

bool tools::sg::mouse_move_event::m_touch
protected

Definition at line 253 of file event.

◆ m_x

int tools::sg::mouse_move_event::m_x
protected

Definition at line 248 of file event.

◆ m_y

int tools::sg::mouse_move_event::m_y
protected

Definition at line 249 of file event.


The documentation for this class was generated from the following file:
tools::sg::mouse_move_event::m_oy
int m_oy
Definition: event:251
tools::sg::mouse_move_event::mouse_move_event
mouse_move_event(int a_x, int a_y, int a_ox, int a_oy, bool a_touch)
Definition: event:211
tools::sg::mouse_move_event::m_touch
bool m_touch
Definition: event:253
tools::sg::event::operator=
event & operator=(const event &)
Definition: event:50
tools::sg::event::event
event()
Definition: event:34
tools::sg::mouse_move_event::m_y
int m_y
Definition: event:249
tools::sg::event::id_class
static cid id_class()
Definition: event:23
tools::sg::mouse_move_event::m_ox
int m_ox
Definition: event:250
tools::sg::mouse_move_event::m_x
int m_x
Definition: event:248