Functions |
| static int | load_interface_file (char *filename) |
| static void | process_widget (widgetdata *widget) |
| static void | init_widgets_fromDefault () |
| void | init_widgets_fromCurrent () |
| widgetdata * | create_widget_object (int widget_subtype_id) |
| void | remove_widget_object (widgetdata *widget) |
| void | remove_widget_object_intern (widgetdata *widget) |
| void | remove_widget_inv (widgetdata *widget) |
| void | init_widgets () |
| void | kill_widgets () |
| void | reset_widget (const char *name) |
| static void | widget_ensure_onscreen (widgetdata *widget) |
| void | widgets_ensure_onscreen () |
| void | kill_widget_tree (widgetdata *widget) |
| widgetdata * | create_widget (int widget_id) |
| void | remove_widget (widgetdata *widget) |
| void | detach_widget (widgetdata *widget) |
| void | save_interface_file () |
| void | save_interface_file_rec (widgetdata *widget, FILE *stream) |
| int | widget_event_mousedn (int x, int y, SDL_Event *event) |
| int | widget_event_mouseup (int x, int y, SDL_Event *event) |
| int | widget_event_mousemv (int x, int y, SDL_Event *event) |
| int | widget_event_start_move (widgetdata *widget, int x, int y) |
| int | widget_event_respond (int x, int y) |
| int | widget_event_override () |
| widgetdata * | get_widget_owner (int x, int y, widgetdata *start, widgetdata *end) |
|
widgetdata * | get_widget_owner_rec (int x, int y, widgetdata *widget, widgetdata *end) |
| static void | process_widget_background (widgetdata *widget) |
| void | process_widgets () |
| void | process_widgets_rec (widgetdata *widget) |
| void | SetPriorityWidget (widgetdata *node) |
| void | SetPriorityWidget_reverse (widgetdata *node) |
|
void | insert_widget_in_container (widgetdata *widget_container, widgetdata *widget) |
| widgetdata * | get_outermost_container (widgetdata *widget) |
| widgetdata * | widget_find_by_surface (SDL_Surface *surface) |
|
void | move_widget (widgetdata *widget, int x, int y) |
|
void | move_widget_rec (widgetdata *widget, int x, int y) |
|
void | resize_widget (widgetdata *widget, int side, int offset) |
|
void | resize_widget_rec (widgetdata *widget, int x, int width, int y, int height) |
| widgetdata * | add_label (char *text, int font, const char *color) |
| widgetdata * | add_bitmap (int bitmap_id) |
| widgetdata * | create_menu (int x, int y, widgetdata *owner) |
| void | add_menuitem (widgetdata *menu, char *text, void(*menu_func_ptr)(widgetdata *, int, int), int menu_type, int val) |
| void | add_separator (widgetdata *widget) |
| void | menu_finalize (widgetdata *widget) |
| void | widget_redraw_all (int widget_type_id) |
|
void | menu_move_widget (widgetdata *widget, int x, int y) |
|
void | menu_create_widget (widgetdata *widget, int x, int y) |
|
void | menu_remove_widget (widgetdata *widget, int x, int y) |
|
void | menu_detach_widget (widgetdata *widget, int x, int y) |
|
void | menu_set_say_filter (widgetdata *widget, int x, int y) |
|
void | menu_set_shout_filter (widgetdata *widget, int x, int y) |
|
void | menu_set_gsay_filter (widgetdata *widget, int x, int y) |
|
void | menu_set_tell_filter (widgetdata *widget, int x, int y) |
|
void | menu_set_channel_filter (widgetdata *widget, int x, int y) |
|
void | submenu_chatwindow_filters (widgetdata *widget, int x, int y) |
|
void | menu_inv_filter_all () |
|
void | menu_inv_filter_applied () |
|
void | menu_inv_filter_containers () |
|
void | menu_inv_filter_magical () |
|
void | menu_inv_filter_cursed () |
|
void | menu_inv_filter_unidentified () |
|
void | menu_inv_filter_locked () |
|
void | menu_inv_filter_unapplied () |
Variables |
| static widgetdata | def_widget [TOTAL_SUBWIDGETS] |
| static const widgetdata | con_widget [TOTAL_SUBWIDGETS] |
| static widgetdata * | widget_list_head |
| static widgetdata * | widget_list_foot |
| widgetdata * | cur_widget [TOTAL_SUBWIDGETS] |
|
static widgetdata * | type_list_foot [TOTAL_SUBWIDGETS] |
| widgetevent | widget_mouse_event |
| static widgetmove | widget_event_move |
| static widgetresize | widget_event_resize |
| static int | IsMouseExclusive = 0 |
This file controls all the widget related functions, movement of the widgets, initialization, etc.
To add a new widget:
- Add an entry (same index in both cases) to con_widget and WidgetID.
- If applicable, add extended attributes in its own struct, and add handler code for its initialization in create_widget_object().
- If applicable, add handler code for widget movement in widget_event_mousedn().
- If applicable, add handler code to get_widget_owner().
- Add handler function to process_widget().
Definition in file widget.c.