|
Classes |
| struct | UI_KEYPAD |
| struct | UI_EVENT |
| struct | _gadget |
| struct | UI_GADGET_KEYTRAP |
| struct | UI_GADGET_USERBOX |
| struct | UI_GADGET_BUTTON |
| struct | UI_GADGET_INPUTBOX |
| struct | UI_GADGET_RADIO |
| struct | UI_GADGET_ICON |
| struct | UI_GADGET_CHECKBOX |
| struct | UI_GADGET_SCROLLBAR |
| struct | UI_GADGET_LISTBOX |
| struct | _ui_window |
| struct | UI_MOUSE |
Defines |
| #define | BASE_GADGET |
| #define | BUTTON_PRESSED 1 |
| #define | BUTTON_RELEASED 2 |
| #define | BUTTON_JUST_PRESSED 4 |
| #define | BUTTON_JUST_RELEASED 8 |
| #define | BUTTON_DOUBLE_CLICKED 16 |
| #define | B1_PRESSED (Mouse.b1_status & BUTTON_PRESSED) |
| #define | B1_RELEASED (Mouse.b1_status & BUTTON_RELEASED) |
| #define | B1_JUST_PRESSED (Mouse.b1_status & BUTTON_JUST_PRESSED) |
| #define | B1_JUST_RELEASED (Mouse.b1_status & BUTTON_JUST_RELEASED) |
| #define | B1_DOUBLE_CLICKED (Mouse.b1_status & BUTTON_DOUBLE_CLICKED) |
| #define | WIN_BORDER 1 |
| #define | WIN_FILLED 2 |
| #define | WIN_SAVE_BG 4 |
| #define | WIN_DIALOG (4+2+1) |
| #define | UI_RECORD_MOUSE 1 |
| #define | UI_RECORD_KEYS 2 |
| #define | UI_STATUS_NORMAL 0 |
| #define | UI_STATUS_RECORDING 1 |
| #define | UI_STATUS_PLAYING 2 |
| #define | UI_STATUS_FASTPLAY 3 |
Typedefs |
| typedef _gadget | UI_GADGET |
| typedef _ui_window | UI_WINDOW |
Functions |
| void | Hline (short x1, short x2, short y) |
| void | Vline (short y1, short y2, short x) |
| void | ui_string_centered (short x, short y, char *s) |
| void | ui_draw_box_out (short x1, short y1, short x2, short y2) |
| void | ui_draw_box_in (short x1, short y1, short x2, short y2) |
| void | ui_draw_line_in (short x1, short y1, short x2, short y2) |
| void | ui_init () |
| void | ui_close () |
| int | MessageBox (short x, short y, int NumButtons, char *text,...) |
| int | PopupMenu (int NumItems, char *text[]) |
| void | ui_mouse_init () |
| grs_bitmap * | ui_mouse_set_pointer (grs_bitmap *new) |
| void | ui_mouse_process () |
| void | ui_mouse_hide () |
| void | ui_mouse_show () |
| UI_WINDOW * | ui_open_window (short x, short y, short w, short h, int flags) |
| void | ui_close_window (UI_WINDOW *wnd) |
| UI_GADGET * | ui_gadget_add (UI_WINDOW *wnd, short kind, short x1, short y1, short x2, short y2) |
| UI_GADGET_BUTTON * | ui_add_gadget_button (UI_WINDOW *wnd, short x, short y, short w, short h, char *text, int(*function_to_call)(void)) |
| void | ui_gadget_delete_all (UI_WINDOW *wnd) |
| void | ui_window_do_gadgets (UI_WINDOW *wnd) |
| void | ui_draw_button (UI_GADGET_BUTTON *button) |
| int | ui_mouse_on_gadget (UI_GADGET *gadget) |
| void | ui_button_do (UI_GADGET_BUTTON *button, int keypress) |
| void | ui_listbox_do (UI_GADGET_LISTBOX *listbox, int keypress) |
| void | ui_draw_listbox (UI_GADGET_LISTBOX *listbox) |
| UI_GADGET_LISTBOX * | ui_add_gadget_listbox (UI_WINDOW *wnd, short x, short y, short w, short h, short numitems, char *list, int text_width) |
| void | ui_mega_process () |
| void | ui_get_button_size (char *text, int *width, int *height) |
| UI_GADGET_SCROLLBAR * | ui_add_gadget_scrollbar (UI_WINDOW *wnd, short x, short y, short w, short h, int start, int stop, int position, int window_size) |
| void | ui_scrollbar_do (UI_GADGET_SCROLLBAR *scrollbar, int keypress) |
| void | ui_draw_scrollbar (UI_GADGET_SCROLLBAR *scrollbar) |
| void | ui_wprintf (UI_WINDOW *wnd, char *format,...) |
| void | ui_wprintf_at (UI_WINDOW *wnd, short x, short y, char *format,...) |
| void | ui_draw_radio (UI_GADGET_RADIO *radio) |
| UI_GADGET_RADIO * | ui_add_gadget_radio (UI_WINDOW *wnd, short x, short y, short w, short h, short group, char *text) |
| void | ui_radio_do (UI_GADGET_RADIO *radio, int keypress) |
| void | ui_draw_checkbox (UI_GADGET_CHECKBOX *checkbox) |
| UI_GADGET_CHECKBOX * | ui_add_gadget_checkbox (UI_WINDOW *wnd, short x, short y, short w, short h, short group, char *text) |
| void | ui_checkbox_do (UI_GADGET_CHECKBOX *checkbox, int keypress) |
| UI_GADGET * | ui_gadget_get_prev (UI_GADGET *gadget) |
| UI_GADGET * | ui_gadget_get_next (UI_GADGET *gadget) |
| void | ui_gadget_calc_keys (UI_WINDOW *wnd) |
| void | ui_listbox_change (UI_WINDOW *wnd, UI_GADGET_LISTBOX *listbox, short numitems, char *list, int text_width) |
| void | ui_draw_inputbox (UI_GADGET_INPUTBOX *inputbox) |
| UI_GADGET_INPUTBOX * | ui_add_gadget_inputbox (UI_WINDOW *wnd, short x, short y, short w, short h, char *text) |
| void | ui_inputbox_do (UI_GADGET_INPUTBOX *inputbox, int keypress) |
| void | ui_userbox_do (UI_GADGET_USERBOX *userbox, int keypress) |
| UI_GADGET_USERBOX * | ui_add_gadget_userbox (UI_WINDOW *wnd, short x, short y, short w, short h) |
| void | ui_draw_userbox (UI_GADGET_USERBOX *userbox) |
| int | MenuX (int x, int y, int NumButtons, char *text[]) |
| int | file_chdrive (int DriveNum, int flag) |
| int | file_chdir (char *dir) |
| int | file_getdirlist (int MaxNum, char list[][13]) |
| int | file_getfilelist (int MaxNum, char list[][13], char *filespec) |
| int | ui_get_filename (char *filename, char *Filespec, char *message) |
| void * | ui_malloc (int size) |
| void | ui_free (void *buffer) |
| UI_GADGET_KEYTRAP * | ui_add_gadget_keytrap (UI_WINDOW *wnd, int key_to_trap, int(*function_to_call)(void)) |
| void | ui_keytrap_do (UI_GADGET_KEYTRAP *keytrap, int keypress) |
| void | ui_mouse_close () |
| int | ui_record_events (int NumberOfEvents, UI_EVENT *buffer, int Flags) |
| int | ui_play_events_realtime (int NumberOfEvents, UI_EVENT *buffer) |
| int | ui_play_events_fast (int NumberOfEvents, UI_EVENT *buffer) |
| int | ui_recorder_status () |
| void | ui_set_playback_speed (int speed) |
| int | ui_get_file (char *filename, char *Filespec) |
| int | MessageBoxN (short xc, short yc, int NumButtons, char *text, char *Button[]) |
| void | ui_draw_icon (UI_GADGET_ICON *icon) |
| void | ui_icon_do (UI_GADGET_ICON *icon, int keypress) |
| UI_GADGET_ICON * | ui_add_gadget_icon (UI_WINDOW *wnd, char *text, short x, short y, short w, short h, int k, int(*f)(void)) |
| int | GetKeyCode (char *text) |
| int | DecodeKeyText (char *text) |
| void | GetKeyDescription (char *text, int keypress) |
| void | menubar_init (char *filename) |
| void | menubar_do (int keypress) |
| void | menubar_close () |
| void | menubar_hide () |
| void | menubar_show () |
| void | ui_pad_init () |
| void | ui_pad_close () |
| void | ui_pad_activate (UI_WINDOW *wnd, int x, int y) |
| void | ui_pad_deactivate () |
| void | ui_pad_goto (int n) |
| void | ui_pad_goto_next () |
| void | ui_pad_goto_prev () |
| void | ui_pad_read (int n, char *filename) |
| int | ui_pad_get_current () |
| void | ui_barbox_open (char *text, int length) |
| int | ui_barbox_update (int position) |
| void | ui_barbox_close () |
| void | ui_reset_idle_seconds (void) |
| int | ui_get_idle_seconds (void) |
Variables |
| grs_font * | ui_small_font |
| UI_MOUSE | Mouse |
| UI_WINDOW * | CurWindow |
| UI_WINDOW * | FirstWindow |
| UI_WINDOW * | LastWindow |
| unsigned char | CBLACK |
| unsigned char | CGREY |
| unsigned char | CWHITE |
| unsigned char | CBRIGHT |
| unsigned char | CRED |
| UI_GADGET * | selected_gadget |
| int | last_keypress |
| unsigned int | ui_number_of_events |
| unsigned int | ui_event_counter |
| char | filename_list [300][13] |
| char | directory_list [100][13] |
| int | ui_button_any_drawn |