#include <mouselistener.hpp>
Inheritance diagram for gcn::MouseListener:

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
Definition at line 70 of file mouselistener.hpp.
Public Member Functions | |
| virtual | ~MouseListener () |
| Destructor. | |
| virtual void | mouseIn () |
| Called when the mouse enters into the widget area. | |
| virtual void | mouseOut () |
| Called when the mouse leaves the Widget area. | |
| virtual void | mousePress (int x, int y, int button) |
| Called when a mouse button is pressed when the mouse is in the Widget area or if the Widget has focus. | |
| virtual void | mouseRelease (int x, int y, int button) |
| Called when a mouse button is released when the mouse is in the Widget area or if the Widget has focus. | |
| virtual void | mouseClick (int x, int y, int button, int count) |
| Called when a mouse button is pressed and released (clicked) when the mouse is in the Widget area or if the Widget has focus. | |
| virtual void | mouseWheelUp (int x, int y) |
| Called on a mouse wheel up when the mouse is in the Widget area or if the Widget has focus. | |
| virtual void | mouseWheelDown (int x, int y) |
| Called on a mouse wheel down when the mouse is in the Widget area or if the Widget has focus. | |
| virtual void | mouseMotion (int x, int y) |
| Called when the mouse moves and the mouse is in the Widget area or if the Widget has focus. | |
Protected Member Functions | |
| MouseListener () | |
| Constructor. | |
|
|
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. Definition at line 174 of file mouselistener.hpp. |
|
||||||||||||||||||||
|
Called when a mouse button is pressed and released (clicked) when the mouse is in the Widget area or if the Widget has focus.
Reimplemented in gcn::Button, gcn::CheckBox, and gcn::RadioButton. Definition at line 130 of file mouselistener.hpp. |
|
||||||||||||
|
Called when the mouse moves and the mouse is in the Widget area or if the Widget has focus.
Reimplemented in gcn::ScrollArea, gcn::Slider, and gcn::Window. Definition at line 163 of file mouselistener.hpp. |
|
||||||||||||||||
|
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.
Reimplemented in gcn::Button, gcn::DropDown, gcn::ListBox, gcn::ScrollArea, gcn::Slider, gcn::TextBox, gcn::TextField, and gcn::Window. Definition at line 102 of file mouselistener.hpp. |
|
||||||||||||||||
|
Called when a mouse button is released when the mouse is in the Widget area or if the Widget has focus.
Reimplemented in gcn::Button, gcn::DropDown, gcn::ScrollArea, gcn::Slider, and gcn::Window. Definition at line 115 of file mouselistener.hpp. |
|
||||||||||||
|
Called on a mouse wheel down when the mouse is in the Widget area or if the Widget has focus.
Reimplemented in gcn::ScrollArea. Definition at line 152 of file mouselistener.hpp. |
|
||||||||||||
|
Called on a mouse wheel up when the mouse is in the Widget area or if the Widget has focus.
Reimplemented in gcn::ScrollArea. Definition at line 141 of file mouselistener.hpp. |
1.3.8