Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

gui_c Class Reference

Main GUI controller class. More...

#include <gui.h>


Public Methods

 gui_c ()
 key modifiers

uiobject_cget_focus ()
 get focus object

void set_focus (uiobject_c *f)
 set focus object

uiobject_cget_desktop ()
 get desktop object

void draw ()
 draw gui

void update ()
 update gui

color_t get_color (ulong nr)
 get color

animation_cget_image (ulong nr)
 get gui image

font_sget_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_cfocus
 desktop object

uiobject_cmouseobj
 object with focus

uiobject_clmouseobj
 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


Detailed Description

This one controls all the GUI in the Omicron Engine. If you wish to use the GUI you have to do a "new gui_c".

Definition at line 966 of file gui.h.


The documentation for this class was generated from the following files:
Generated on Wed Dec 18 15:48:49 2002 for omicron engine by doxygen1.2.18