____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <mouseinput.h>
Public Types | |
| enum | { EMPTY = 0, LEFT, RIGHT, MIDDLE, WHEEL_UP, WHEEL_DOWN, PRESS, RELEASE, MOTION } |
Public Member Functions | |
| MouseInput () | |
| MouseInput (int button, int type, int mousex, int mousey, int timeStamp) | |
| void | setType (int type) |
| int | getType () const |
| void | setButton (int button) |
| int | getButton () const |
| void | setTimeStamp (int timeStamp) |
| int | getTimeStamp () const |
Public Attributes | |
| int | x |
| int | y |
Protected Attributes | |
| int | mType |
| int | mButton |
| int | mTimeStamp |
Definition at line 67 of file mouseinput.h.
| anonymous enum |
Enum with mouse input values.
Definition at line 132 of file mouseinput.h.
| gcn::MouseInput::MouseInput | ( | ) | [inline] |
Constructor.
Definition at line 74 of file mouseinput.h.
| gcn::MouseInput::MouseInput | ( | int | button, | |
| int | type, | |||
| int | mousex, | |||
| int | mousey, | |||
| int | timeStamp | |||
| ) |
Constructor.
| button | the button pressed. | |
| type | the type of input. | |
| mousex | the mouse x coordinate. | |
| mousey | the mouse y coordinate. | |
| timeStamp | the mouse inputs time stamp. |
Definition at line 63 of file mouseinput.cpp.
References mButton, mTimeStamp, mType, x, and y.
| void gcn::MouseInput::setType | ( | int | type | ) |
Sets the input type.
| type | the type of input. |
Definition at line 72 of file mouseinput.cpp.
References mType.
Referenced by gcn::SDLInput::pushInput().
| int gcn::MouseInput::getType | ( | ) | const |
Gets the input type.
Definition at line 77 of file mouseinput.cpp.
References mType.
Referenced by gcn::Widget::_mouseInputMessage().
| void gcn::MouseInput::setButton | ( | int | button | ) |
Sets the button pressed.
| button | the button pressed. |
Definition at line 82 of file mouseinput.cpp.
References mButton.
Referenced by gcn::SDLInput::pushInput().
| int gcn::MouseInput::getButton | ( | ) | const |
Gets the button pressed.
Definition at line 87 of file mouseinput.cpp.
References mButton.
Referenced by gcn::Widget::_mouseInputMessage().
| void gcn::MouseInput::setTimeStamp | ( | int | timeStamp | ) |
Sets the timestamp for the input.
| timeStamp | the timestamp of the input. |
Definition at line 97 of file mouseinput.cpp.
References mTimeStamp.
Referenced by gcn::SDLInput::pushInput().
| int gcn::MouseInput::getTimeStamp | ( | ) | const |
Gets the time stamp of the input.
Definition at line 92 of file mouseinput.cpp.
References mTimeStamp.
Referenced by gcn::Widget::_mouseInputMessage().
Definition at line 145 of file mouseinput.h.
Referenced by gcn::Window::_mouseInputMessage(), gcn::Widget::_mouseInputMessage(), gcn::ScrollArea::_mouseInputMessage(), gcn::Container::_mouseInputMessage(), gcn::Gui::logic(), MouseInput(), and gcn::SDLInput::pushInput().
Definition at line 145 of file mouseinput.h.
Referenced by gcn::Window::_mouseInputMessage(), gcn::Widget::_mouseInputMessage(), gcn::ScrollArea::_mouseInputMessage(), gcn::DropDown::_mouseInputMessage(), gcn::Container::_mouseInputMessage(), gcn::Gui::logic(), MouseInput(), and gcn::SDLInput::pushInput().
int gcn::MouseInput::mType [protected] |
int gcn::MouseInput::mButton [protected] |
Definition at line 149 of file mouseinput.h.
Referenced by getButton(), MouseInput(), and setButton().
int gcn::MouseInput::mTimeStamp [protected] |
Definition at line 150 of file mouseinput.h.
Referenced by getTimeStamp(), MouseInput(), and setTimeStamp().
1.5.6