$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <keylistener.h>
Public Member Functions | |
virtual | ~KeyListener () |
virtual bool | keyPress (const Key &) |
virtual bool | keyRelease (const Key &) |
virtual void | hotKeyPress (const Key &) |
virtual void | hotKeyRelease (const Key &) |
Protected Member Functions | |
KeyListener () |
virtual gcn::KeyListener::~KeyListener | ( | ) | [inline, virtual] |
Destructor
gcn::KeyListener::KeyListener | ( | ) | [inline, protected] |
Constructor.
You should not be able to make an instance of KeyListener, therefore its constructor is protected. To use KeyListener you must inherit from this class and implement it's functions.
virtual bool gcn::KeyListener::keyPress | ( | const Key & | ) | [inline, virtual] |
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.
key | the key pressed. |
Reimplemented in gcn::Button, gcn::CheckBox, gcn::DropDown, gcn::ListBox, gcn::RadioButton, gcn::Slider, gcn::TextBox, and gcn::TextField.
virtual bool gcn::KeyListener::keyRelease | ( | const Key & | ) | [inline, virtual] |
Called if a key is released when the widget has keyboard focus.
key | the key released. |
Reimplemented in gcn::Button.
virtual void gcn::KeyListener::hotKeyPress | ( | const Key & | ) | [inline, virtual] |
virtual void gcn::KeyListener::hotKeyRelease | ( | const Key & | ) | [inline, virtual] |