sculpto
Public Member Functions | List of all members
scl::mouse_move_event Class Reference

#include <mouse_event.h>

Inheritance diagram for scl::mouse_move_event:
scl::event

Public Member Functions

 mouse_move_event (int X, int Y, bool RButton, bool LButton, bool MButton, bool Shift, bool Control)
 
int GetX ()
 
int GetY ()
 
bool GetRButton ()
 
bool GetLButton ()
 
bool GetMButton ()
 
bool GetShift ()
 
bool GetControl ()
 
std::string ToString () const override
 
- Public Member Functions inherited from scl::event
virtual ~event ()=default
 
virtual u32 GetType () const =0
 
virtual const char * GetName () const =0
 
virtual std::string ToString () const
 

Additional Inherited Members

- Public Attributes inherited from scl::event
bool Handled { false }
 

Detailed Description

Mouse move event class.

Definition at line 111 of file mouse_event.h.

Constructor & Destructor Documentation

◆ mouse_move_event()

scl::mouse_move_event::mouse_move_event ( int  X,
int  Y,
bool  RButton,
bool  LButton,
bool  MButton,
bool  Shift,
bool  Control 
)
inline
  • Mouse move event deault constructor..
Parameters
X- mouse x possition.
Y- mouse y possition.
RButton- mouse right button state.
LButton- mouse left button state.
MButton- mouse middle button state.
Shift- shift key state.
Control- contrl key state.

Definition at line 132 of file mouse_event.h.

133 :
134 X(X), Y(Y), RButton(RButton), LButton(LButton), MButton(MButton),
135 Shift(Shift), Control(Control) {}

Member Function Documentation

◆ GetControl()

bool scl::mouse_move_event::GetControl ( )
inline

Constrol state getter function.

Definition at line 150 of file mouse_event.h.

150{ return Control; }

◆ GetLButton()

bool scl::mouse_move_event::GetLButton ( )
inline

Mouse left button state getter function.

Definition at line 144 of file mouse_event.h.

144{ return LButton; }

◆ GetMButton()

bool scl::mouse_move_event::GetMButton ( )
inline

Mouse middle button state getter function.

Definition at line 146 of file mouse_event.h.

146{ return MButton; }

◆ GetRButton()

bool scl::mouse_move_event::GetRButton ( )
inline

Mouse right button state getter function.

Definition at line 142 of file mouse_event.h.

142{ return RButton; }

◆ GetShift()

bool scl::mouse_move_event::GetShift ( )
inline

Shift key state getter function.

Definition at line 148 of file mouse_event.h.

148{ return Shift; }

◆ GetX()

int scl::mouse_move_event::GetX ( )
inline

Mouse x position getter function.

Definition at line 138 of file mouse_event.h.

138{ return X; }

◆ GetY()

int scl::mouse_move_event::GetY ( )
inline

Mouse y position getter function.

Definition at line 140 of file mouse_event.h.

140{ return Y; }

◆ ToString()

std::string scl::mouse_move_event::ToString ( ) const
inlineoverridevirtual
  • Convert event to string (for debug).
Parameters
None.
Returns
string representation of event.

Reimplemented from scl::event.

Definition at line 158 of file mouse_event.h.

159 {
160 std::stringstream ss;
161 ss << GetName() << ": (X, Y) - (" << X << ", " << Y
162 << "), RButton - " << RButton << ", LButton - " << LButton << ", MButton - " << MButton;
163 return ss.str();
164 }
virtual const char * GetName() const =0

The documentation for this class was generated from the following file: