Dragonfly 4.20
A text-based game engine
Public Member Functions | Private Attributes | List of all members
df::EventMouse Class Reference
Inheritance diagram for df::EventMouse:
Inheritance graph

Public Member Functions

void setMouseAction (EventMouseAction new_mouse_action)
 
EventMouseAction getMouseAction () const
 
void setMouseButton (Mouse::Button new_mouse_button)
 
Mouse::Button getMouseButton () const
 
void setMousePosition (Vector new_mouse_xy)
 
Vector getMousePosition () const
 
- Public Member Functions inherited from df::Event
 Event ()
 
virtual ~Event ()
 
void setType (std::string new_type)
 
std::string getType () const
 

Private Attributes

EventMouseAction m_mouse_action
 
Mouse::Button m_mouse_button
 
Vector m_mouse_xy
 

Member Function Documentation

◆ getMouseAction()

EventMouseAction df::EventMouse::getMouseAction ( ) const

Get mouse event's action.

◆ getMouseButton()

Mouse::Button df::EventMouse::getMouseButton ( ) const

Get mouse event's button.

◆ getMousePosition()

Vector df::EventMouse::getMousePosition ( ) const

Get mouse event's position.

◆ setMouseAction()

void df::EventMouse::setMouseAction ( EventMouseAction  new_mouse_action)

Set mouse event's action.

◆ setMouseButton()

void df::EventMouse::setMouseButton ( Mouse::Button  new_mouse_button)

Set mouse event's button.

◆ setMousePosition()

void df::EventMouse::setMousePosition ( Vector  new_mouse_xy)

Set mouse event's position.

Member Data Documentation

◆ m_mouse_action

EventMouseAction df::EventMouse::m_mouse_action
private

Mouse action.

◆ m_mouse_button

Mouse::Button df::EventMouse::m_mouse_button
private

Mouse button.

◆ m_mouse_xy

Vector df::EventMouse::m_mouse_xy
private

Mouse (x,y) coordinates.