#include <focus.h>
Public Member Functions | |
bool | release (Widget *w) |
Attempt to release keyboard focus on the Widget w . | |
bool | grab (Widget *w) |
Attempt to bless keyboard focus upon the Widget w . | |
bool | haveFocus () const |
true if any widgets have keyboard focus | |
Widget * | currentFocus () const |
returns a pointer to the widget with current focus | |
Widget * | nextFocus () |
Pointer to the next widget capable of handling text focus. | |
Widget * | prevFocus () |
Pointer to the previous widget capable of handling text focus. | |
void | addFocusable (Widget *) |
Make Focus object aware of a new text / keyboard focus region (append to the end of the list). | |
void | removeFocusable (Widget *) |
Remove the passed widget from the list of possible focus targets. | |
bool | handleEvent (const SDL_Event *) |
Handle a keyboard event, called from the mainloop. | |
Static Public Member Functions | |
Focus * | instance () |
Fetch the singleton instance. | |
Public Attributes | |
SigC::Signal2< bool, const SDL_keysym &, bool, BoolMarshal > | keystroke |
Keypress Signal object. | |
SigC::Signal0< bool, BoolMarshal > | lostFocus |
application has lost window focus | |
SigC::Signal0< bool, BoolMarshal > | gotFocus |
application has gained window focus | |
Timer | CursorSparkle |
CursorSparkle keeps our cursor blinking. |
|
Keypress Signal object. Emitted whenever a key is pressed. Slots connected to this signal may swallow the event by returning true, or pass the event to other listeners by returning false. bool value is true for pressed, false for released |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.