____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <keylistener.h>

Public Member Functions | |
| virtual | ~KeyListener () |
| virtual bool | keyPress (const Key &key) |
| virtual bool | keyRelease (const Key &key) |
| virtual void | hotKeyPress (const Key &key) |
| virtual void | hotKeyRelease (const Key &key) |
Protected Member Functions | |
| KeyListener () | |
Definition at line 74 of file keylistener.h.
| virtual gcn::KeyListener::~KeyListener | ( | ) | [inline, virtual] |
Destructor
Definition at line 81 of file keylistener.h.
| 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.
Definition at line 111 of file keylistener.h.
| virtual bool gcn::KeyListener::keyPress | ( | const Key & | 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.
Definition at line 90 of file keylistener.h.
| virtual bool gcn::KeyListener::keyRelease | ( | const Key & | key | ) | [inline, virtual] |
Called if a key is released when the widget has keyboard focus.
| key | the key released. |
Reimplemented in gcn::Button.
Definition at line 97 of file keylistener.h.
| virtual void gcn::KeyListener::hotKeyPress | ( | const Key & | key | ) | [inline, virtual] |
Definition at line 99 of file keylistener.h.
| virtual void gcn::KeyListener::hotKeyRelease | ( | const Key & | key | ) | [inline, virtual] |
Definition at line 100 of file keylistener.h.
1.5.6