|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <keylistener.hpp>
Public Member Functions | |
| KeyListener (KeyListener &&)=default | |
| KeyListener (KeyListener const &)=default | |
| virtual void | keyPressed (KeyEvent &keyEvent) |
| virtual void | keyReleased (KeyEvent &keyEvent) |
| KeyListener & | operator= (KeyListener &&)=default |
| KeyListener & | operator= (KeyListener const &)=default |
Protected Member Functions | |
| KeyListener ()=default | |
Interface for listening to keyboard events.
Definition at line 22 of file keylistener.hpp.
|
protecteddefault |
Constructor.
Instances should not be created directly, therefore the constructor is declared protected.
|
inlinevirtual |
Called if a key is pressed when the widget has keyboard focus.
If a key is held down the widget will generate multiple key presses.
| keyEvent | Describes the event. |
Reimplemented in fcn::Button, fcn::CheckBox, fcn::DropDown, fcn::ListBox, fcn::PasswordField, fcn::Slider, fcn::TabbedArea, fcn::TextBox, and fcn::TextField.
Definition at line 39 of file keylistener.hpp.
|
inlinevirtual |
Called if a key is released when the widget has keyboard focus.
| keyEvent | Describes the event. |
Reimplemented in fcn::Button, fcn::CheckBox, and fcn::ToggleButton.
Definition at line 46 of file keylistener.hpp.