#include <gui.h>
Public Methods | |
| gui_c () | |
| key modifiers | |
| uiobject_c * | get_focus () |
| get focus object | |
| void | set_focus (uiobject_c *f) |
| set focus object | |
| uiobject_c * | get_desktop () |
| get desktop object | |
| void | draw () |
| draw gui | |
| void | update () |
| update gui | |
| color_t | get_color (ulong nr) |
| get color | |
| animation_c * | get_image (ulong nr) |
| get gui image | |
| font_s * | get_font (ulong font) |
| get gui font | |
| void | send_generic_event (uiobject_c *obj, ushort event) |
| send a generic event | |
| void | send_mouse_event (uiobject_c *obj, ushort event) |
| send a mouse event | |
| void | send_keyboard_event (uiobject_c *obj, ushort event, ushort key) |
| send keyboard event | |
| ushort | get_key_ascii (uchar key) |
| convert "scancode" to ascii | |
| sshort | get_cursor_x () |
| get current cursor position (x) | |
| sshort | get_cursor_y () |
| get current cursor position (y) | |
| sshort | get_cursor_dx () |
| get current cursor movement (x) | |
| sshort | get_cursor_dy () |
| get current cursor movement (y) | |
| void | load (const char *fname) |
| load gui-objects from file | |
Protected Attributes | |
| uiobject_c * | focus |
| desktop object | |
| uiobject_c * | mouseobj |
| object with focus | |
| uiobject_c * | lmouseobj |
| object under mouse | |
| ushort | cursor |
| last frame mouseobj | |
| sshort | cursorx |
| current cursor shape | |
| sshort | cursory |
| cursor pos | |
| sshort | cursorly |
| last frame cursor pos | |
| sshort | cursordy |
| cursor movement | |
| color_t | colors [UIC_COUNT] |
| font(s) | |
| ushort | lastkeydown |
| gui images | |
| ulong | keydownstarttime |
| last pressed key | |
| ulong | keylastrepeattime |
| time when key was pressed | |
| ushort | currentkeymod |
| time key was repeated last time | |
Definition at line 966 of file gui.h.
1.2.18