_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <mouselistener.h>
Public Member Functions | |
virtual | ~MouseListener () |
virtual void | mouseIn () |
virtual void | mouseOut () |
virtual void | mousePress (int, int, int) |
virtual void | mouseRelease (int, int, int) |
virtual void | mouseClick (int, int, int, int) |
virtual void | mouseWheelUp (int, int) |
virtual void | mouseWheelDown (int, int) |
virtual void | mouseMotion (int, int) |
Protected Member Functions | |
MouseListener () | |
Mouse listeners base class. Inorder to use this class you must inherit from it and implements it's functions. MouseListeners listen for mouse events on a Widgets. When a Widget recives a mouse event, the corresponding function in all it's mouse listeners will be
|
inlinevirtual |
Destructor.
|
inlineprotected |
Constructor.
You should not be able to make an instance of MouseListener, therefore its constructor is protected. To use MouseListener you must inherit from this class and implement it's functions.
|
inlinevirtual |
Called when a mouse button is pressed and released (clicked) when the mouse is in the Widget area or if the Widget has focus.
x | the x coordinate of the mouse relative to the Widget itself. |
y | the y coordinate of the mouse relative to the Widget itself. |
button | the button clicked. |
count | the number of clicks. |
Reimplemented in LuaActionListener, gcn::RadioButton, ImageCheckBox, gcn::CheckBox, gcn::Button, and ImageRadioButton.
|
inlinevirtual |
Called when the mouse enters into the widget area.
Reimplemented in LuaActionListener.
|
inlinevirtual |
Called when the mouse moves and the mouse is in the Widget area or if the Widget has focus.
x | the x coordinate of the mouse relative to the Widget itself. |
y | the y coordinate of the mouse relative to the Widget itself. |
Reimplemented in LuaActionListener, gcn::ScrollArea, gcn::Window, gcn::Slider, and gcn::TextField.
|
inlinevirtual |
Called when the mouse leaves the Widget area.
Reimplemented in LuaActionListener.
|
inlinevirtual |
Called when a mouse button is pressed when the mouse is in the Widget area or if the Widget has focus.
NOTE: A mouse press is NOT equal to a mouse click. Use mouseClickMessage to check for mouse clicks.
x | the x coordinate of the mouse relative to the Widget itself. |
y | the y coordinate of the mouse relative to the Widget itself. |
button | the button pressed. |
Reimplemented in LuaActionListener, ImageListBox, gcn::ScrollArea, gcn::Window, gcn::TextBox, gcn::DropDown, gcn::Slider, ImageCheckBox, gcn::TextField, gcn::Button, gcn::ListBox, and ImageRadioButton.
|
inlinevirtual |
Called when a mouse button is released when the mouse is in the Widget area or if the Widget has focus.
x | the x coordinate of the mouse relative to the Widget itself. |
y | the y coordinate of the mouse relative to the Widget itself. |
button | the button released. |
Reimplemented in LuaActionListener, gcn::ScrollArea, gcn::Window, gcn::DropDown, gcn::Slider, ImageCheckBox, gcn::Button, and ImageRadioButton.
|
inlinevirtual |
Called on a mouse wheel down when the mouse is in the Widget area or if the Widget has focus.
x | the x coordinate of the mouse relative to the Widget itself. |
y | the y coordinate of the mouse relative to the Widget itself. |
Reimplemented in LuaActionListener, and gcn::ScrollArea.
|
inlinevirtual |
Called on a mouse wheel up when the mouse is in the Widget area or if the Widget has focus.
x | the x coordinate of the mouse relative to the Widget itself. |
y | the y coordinate of the mouse relative to the Widget itself. |
Reimplemented in LuaActionListener, and gcn::ScrollArea.