|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <mouselistener.hpp>
Public Member Functions | |
| virtual void | mouseClicked (MouseEvent &mouseEvent) |
| virtual void | mouseDragged (MouseEvent &mouseEvent) |
| virtual void | mouseEntered (MouseEvent &mouseEvent) |
| virtual void | mouseExited (MouseEvent &mouseEvent) |
| MouseListener (MouseListener &&)=default | |
| MouseListener (MouseListener const &)=default | |
| virtual void | mouseMoved (MouseEvent &mouseEvent) |
| virtual void | mousePressed (MouseEvent &mouseEvent) |
| virtual void | mouseReleased (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedDown (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedLeft (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedRight (MouseEvent &mouseEvent) |
| virtual void | mouseWheelMovedUp (MouseEvent &mouseEvent) |
| MouseListener & | operator= (MouseListener &&)=default |
| MouseListener & | operator= (MouseListener const &)=default |
Protected Member Functions | |
| MouseListener ()=default | |
Interface for listening to mouse events.
Definition at line 20 of file mouselistener.hpp.
|
protecteddefault |
Constructor.
Instances should not be created directly, therefore the constructor is declared protected.
|
inlinevirtual |
Called when a mouse button is pressed and released (clicked) on the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::CheckBox.
Definition at line 67 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse has moved and the mouse has previously been pressed on the widget.
| mouseEvent | Describes the event. |
Reimplemented in fcn::Button, fcn::DropDown, fcn::ListBox, fcn::ScrollArea, fcn::Slider, fcn::TextBox, fcn::TextField, and fcn::Window.
Definition at line 111 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse has entered into the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::Button, and fcn::Tab.
Definition at line 35 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse has exited the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::Button, and fcn::Tab.
Definition at line 42 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse has moved in the widget area and no mouse button has been pressed (i.e no widget is being dragged).
| mouseEvent | Describes the event. |
Definition at line 103 of file mouselistener.hpp.
|
inlinevirtual |
Called when a mouse button has been pressed on the widget area.
NOTE: A mouse press is NOT equal to a mouse click. Use mouseClickMessage to check for mouse clicks.
| mouseEvent | Describes the event. |
Reimplemented in fcn::Button, fcn::CheckBox, fcn::DropDown, fcn::ListBox, fcn::ScrollArea, fcn::Slider, fcn::TabbedArea, fcn::TextBox, fcn::TextField, and fcn::Window.
Definition at line 52 of file mouselistener.hpp.
|
inlinevirtual |
Called when a mouse button has been released on the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::Button, fcn::CheckBox, fcn::DropDown, fcn::ScrollArea, fcn::ToggleButton, and fcn::Window.
Definition at line 59 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse wheel has moved down on the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::DropDown, fcn::ListBox, fcn::ScrollArea, and fcn::Slider.
Definition at line 81 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse wheel has moved left on the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::ScrollArea, and fcn::Slider.
Definition at line 95 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse wheel has moved right on the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::ScrollArea, and fcn::Slider.
Definition at line 88 of file mouselistener.hpp.
|
inlinevirtual |
Called when the mouse wheel has moved up on the widget area.
| mouseEvent | Describes the event. |
Reimplemented in fcn::DropDown, fcn::ListBox, fcn::ScrollArea, and fcn::Slider.
Definition at line 74 of file mouselistener.hpp.