#include <GlutIOModule.h>
Inherits fsf::CNode.
Public Member Functions | |
Creators | |
CMouseEvent () | |
Default constructor. | |
CMouseEvent (fsf::CNode *pParent, fsf::Time tTime=0) | |
2-parameter constructor: parent and time stamp | |
CMouseEvent (std::string &strName, fsf::CNode *pParent=NULL, fsf::Time tTime=0) | |
3-parameter constructor: noide name, parent and time stamp | |
CMouseEvent (int button, int state, int x, int y, fsf::CNode *pParent=NULL, fsf::Time tTime=0) | |
6-parameter initialization constructor | |
CMouseEvent (std::string &strName, int button, int state, int x, int y, fsf::CNode *pParent=NULL, fsf::Time tTime=0) | |
7-parameter initialization constructor | |
CMouseEvent (const CMouseEvent &rhs) | |
Copy constructor. | |
Manipulators | |
CMouseEvent & | operator= (const CMouseEvent &) |
Assignment operator. | |
void | setButton (int button) |
Sets button ID value. | |
void | setState (int state) |
Sets button state. | |
void | setX (int x) |
Sets X coordinate of mouse pointer position (in window coordinates). | |
void | setY (int y) |
Sets Y coordinate of mouse pointer position (in window coordinates). | |
Accessors | |
virtual fsf::CNode * | clone () const |
Cloning: necessary for run-time polymorphism. | |
virtual void | getTypeID (std::string &str) const |
Gets this node's factory mapping key. | |
int | getButton () const |
Gets button ID value. | |
int | getState () const |
Gets button state. | |
int | getX () const |
Gets X coordinate of mouse pointer position (in window coordinates). | |
int | getY () const |
Gets Y coordinate of mouse pointer position (in window coordinates). |
glutio::CMouseEvent::CMouseEvent | ( | ) | [inline] |
Default constructor.
glutio::CMouseEvent::CMouseEvent | ( | fsf::CNode * | pParent, | |
fsf::Time | tTime = 0 | |||
) | [inline] |
2-parameter constructor: parent and time stamp
glutio::CMouseEvent::CMouseEvent | ( | std::string & | strName, | |
fsf::CNode * | pParent = NULL , |
|||
fsf::Time | tTime = 0 | |||
) | [inline] |
3-parameter constructor: noide name, parent and time stamp
glutio::CMouseEvent::CMouseEvent | ( | int | button, | |
int | state, | |||
int | x, | |||
int | y, | |||
fsf::CNode * | pParent = NULL , |
|||
fsf::Time | tTime = 0 | |||
) | [inline] |
6-parameter initialization constructor
glutio::CMouseEvent::CMouseEvent | ( | std::string & | strName, | |
int | button, | |||
int | state, | |||
int | x, | |||
int | y, | |||
fsf::CNode * | pParent = NULL , |
|||
fsf::Time | tTime = 0 | |||
) | [inline] |
7-parameter initialization constructor
glutio::CMouseEvent::CMouseEvent | ( | const CMouseEvent & | rhs | ) | [inline] |
Copy constructor.
virtual fsf::CNode* glutio::CMouseEvent::clone | ( | ) | const [inline, virtual] |
int glutio::CMouseEvent::getButton | ( | ) | const [inline] |
Gets button ID value.
int glutio::CMouseEvent::getState | ( | ) | const [inline] |
Gets button state.
virtual void glutio::CMouseEvent::getTypeID | ( | std::string & | str | ) | const [inline, virtual] |
int glutio::CMouseEvent::getX | ( | ) | const [inline] |
Gets X coordinate of mouse pointer position (in window coordinates).
int glutio::CMouseEvent::getY | ( | ) | const [inline] |
Gets Y coordinate of mouse pointer position (in window coordinates).
CMouseEvent & CMouseEvent::operator= | ( | const CMouseEvent & | rhs | ) |
Assignment operator.
void glutio::CMouseEvent::setButton | ( | int | button | ) | [inline] |
Sets button ID value.
void glutio::CMouseEvent::setState | ( | int | state | ) | [inline] |
Sets button state.
void glutio::CMouseEvent::setX | ( | int | x | ) | [inline] |
Sets X coordinate of mouse pointer position (in window coordinates).
void glutio::CMouseEvent::setY | ( | int | y | ) | [inline] |
Sets Y coordinate of mouse pointer position (in window coordinates).