Om
1.0.0
A universal framework for multimedia simulation
|
A class representing a button press or release event. More...
#include <omGUIInputMouseButtonEvent.h>
Public Member Functions | |
MouseButtonEvent (MouseButtonCode newButtonCode, Bool newIsPressed, const Vector2f &newPosition) | |
Construct a new mouse button event with button, it's state, and position. More... | |
MouseButtonCode | getButtonCode () const |
Return the mouse button code that this event relates to. More... | |
void | setButtonCode (MouseButtonCode newButtonCode) |
Set the mouse button code that this event relates to. More... | |
Bool | isPressed () const |
Return whether or not the button was pressed. More... | |
Bool | isReleased () const |
Return whether or not the button was released. More... | |
const Vector2f & | getPosition () const |
Return the position of the mouse when the mouse button event occurred. More... | |
void | setPosition (const Vector2f &newPosition) |
Set the position of the mouse when the mouse button event occurred. More... | |
const Time & | getTime () const |
Return the absolute time since the epoch when the mouse button event occurred. More... | |
void | setTime (const Time &newTime) |
Set the absolute time since the epoch when the mouse button event occurred. More... | |
const Modifiers & | getModifiers () const |
Return the modifier flags that were set when the event occurred. More... | |
void | setModifiers (const Modifiers &newModifiers) |
Set the modifier flags that were set when the event occurred. More... | |
Bool | operator== (const MouseButton &mouseButton) const |
Return whether or not this mouse button event corresponds to the specified mouse button. More... | |
Bool | operator!= (const MouseButton &mouseButton) const |
Return whether or not this mouse button event corresponds to the specified mouse button. More... | |
A class representing a button press or release event.
A mouse button event contains information regarding a particular mouse button press or release event, such as the mouse button for the event, the new state of the mouse button, and the position of the mouse when the event occurred.
|
inline |
Construct a new mouse button event with button, it's state, and position.
|
inline |
Return the mouse button code that this event relates to.
|
inline |
Set the mouse button code that this event relates to.
|
inline |
Return whether or not the button was pressed.
|
inline |
Return whether or not the button was released.
|
inline |
Return the position of the mouse when the mouse button event occurred.
|
inline |
Set the position of the mouse when the mouse button event occurred.
|
inline |
Return the absolute time since the epoch when the mouse button event occurred.
|
inline |
Set the absolute time since the epoch when the mouse button event occurred.
|
inline |
Return the modifier flags that were set when the event occurred.
|
inline |
Set the modifier flags that were set when the event occurred.
|
inline |
Return whether or not this mouse button event corresponds to the specified mouse button.
|
inline |
Return whether or not this mouse button event corresponds to the specified mouse button.