Dragonfly  4.3
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
[legend]
Collaboration diagram for df::EventMouse:
Collaboration graph
[legend]

Public Member Functions

void setMouseAction (EventMouseAction new_mouse_action)
 
EventMouseAction getMouseAction () const
 
void setMouseButton (Mouse::EventMouseButton new_mouse_button)
 
Mouse::EventMouseButton 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::EventMouseButton m_mouse_button
 
Vector m_mouse_xy
 

Member Function Documentation

EventMouseAction df::EventMouse::getMouseAction ( ) const

Get mouse event's action.

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

Get mouse event's button.

Vector df::EventMouse::getMousePosition ( ) const

Get mouse event's position.

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

Set mouse event's action.

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

Set mouse event's button.

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

Set mouse event's position.

Member Data Documentation

EventMouseAction df::EventMouse::m_mouse_action
private

Mouse action.

Mouse::EventMouseButton df::EventMouse::m_mouse_button
private

Mouse button.

Vector df::EventMouse::m_mouse_xy
private

Mouse (x,y) coordinates.