Freeciv-3.3
|
#include "widget.h"
Go to the source code of this file.
Data Structures | |
struct | scroll_bar |
Macros | |
#define | scrollbar_size(scroll) |
#define | hide_scrollbar(scrollbar) |
#define | show_scrollbar(scrollbar) |
Functions | |
struct widget * | create_vertical (SDL_Surface *vert_theme, struct gui_layer *pdest, Uint16 height, Uint32 flags) |
int | draw_vert (struct widget *vert, Sint16 x, Sint16 y) |
Uint32 | create_vertical_scrollbar (struct advanced_dialog *dlg, Uint8 step, Uint8 active, bool create_scrollbar, bool create_buttons) |
void | setup_vertical_scrollbar_area (struct scroll_bar *scroll, Sint16 start_x, Sint16 start_y, Uint16 height, bool swap_start_x) |
void | setup_vertical_scrollbar_default_callbacks (struct scroll_bar *scroll) |
struct widget * | create_horizontal (SDL_Surface *horiz_theme, struct gui_layer *pdest, Uint16 width, Uint32 flags) |
int | draw_horiz (struct widget *horiz, Sint16 x, Sint16 y) |
Uint32 | create_horizontal_scrollbar (struct advanced_dialog *dlg, Sint16 start_x, Sint16 start_y, Uint16 width, Uint16 active, bool create_scrollbar, bool create_buttons, bool swap_start_y) |
#define scrollbar_size | ( | scroll | ) |
Definition at line 32 of file widget_scrollbar.h.
Definition at line 59 of file widget_scrollbar.h.
struct widget * create_horizontal | ( | SDL_Surface * | horiz_theme, |
struct gui_layer * | pdest, | ||
Uint16 | width, | ||
Uint32 | flags | ||
) |
Create ( malloc ) horizontal scroll_bar widget structure.
Theme graphic is taken from horiz_theme surface;
This function determinate future size of horizontal scroll_bar ( width = 'width', height = 'horiz_theme->h' ) and save this in: pwidget->size rectangle ( SDL_Rect )
Return pointer to created widget.
Definition at line 296 of file widget_scrollbar.c.
Referenced by create_horizontal_scrollbar(), economy_report_dialog_popup(), and popup_city_cma_dialog().
Uint32 create_horizontal_scrollbar | ( | struct advanced_dialog * | dlg, |
Sint16 | start_x, | ||
Sint16 | start_y, | ||
Uint16 | width, | ||
Uint16 | active, | ||
bool | create_scrollbar, | ||
bool | create_buttons, | ||
bool | swap_start_y | ||
) |
Create a new horizontal scrollbar to active widgets list.
Definition at line 1545 of file widget_scrollbar.c.
struct widget * create_vertical | ( | SDL_Surface * | vert_theme, |
struct gui_layer * | pdest, | ||
Uint16 | height, | ||
Uint32 | flags | ||
) |
Create ( malloc ) vertical scroll_bar widget structure.
Theme graphic is taken from vert_theme surface;
This function determinate future size of vertical scroll_bar ( width = 'vert_theme->w', height = 'height' ) and save this in: pwidget->size rectangle ( SDL_Rect )
Return pointer to created widget.
Definition at line 164 of file widget_scrollbar.c.
Referenced by create_vertical_scrollbar().
Uint32 create_vertical_scrollbar | ( | struct advanced_dialog * | dlg, |
Uint8 | step, | ||
Uint8 | active, | ||
bool | create_scrollbar, | ||
bool | create_buttons | ||
) |
Create a new vertical scrollbar to active widgets list.
Definition at line 486 of file widget_scrollbar.c.
Referenced by create_present_supported_units_widget_list(), economy_report_dialog_popup(), meswin_dialog_popup(), option_dialog_optset_category(), option_dialog_worklist(), popup_advanced_terrain_dialog(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_conn_list_dialog(), popup_connection_dialog(), popup_diplomatic_objects(), popup_find_dialog(), popup_goto_airlift_dialog(), popup_impr_info(), popup_load_del_presets_dialog(), popup_load_game_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_tech_info(), popup_unit_info(), popup_worklist_editor(), real_activeunits_report_dialog_update(), real_conn_list_dialog_update(), real_info_city_report_dialog_update(), rebuild_imprm_list(), redraw_unit_info_label(), spy_steal_popup_shared(), unit_select_dialog_popup(), update_diplomacy_dialog(), and update_intel_dialog().
Draw horizontal scrollbar.
Definition at line 320 of file widget_scrollbar.c.
Draw vertical scrollbar.
Definition at line 187 of file widget_scrollbar.c.
void setup_vertical_scrollbar_area | ( | struct scroll_bar * | scroll, |
Sint16 | start_x, | ||
Sint16 | start_y, | ||
Uint16 | height, | ||
bool | swap_start_x | ||
) |
Setup area for the vertical scrollbar.
Definition at line 567 of file widget_scrollbar.c.
Referenced by add_target_to_worklist(), create_present_supported_units_widget_list(), economy_report_dialog_popup(), meswin_dialog_popup(), option_dialog_optset_category(), option_dialog_worklist(), popup_advanced_terrain_dialog(), popup_change_research_dialog(), popup_change_research_goal_dialog(), popup_conn_list_dialog(), popup_connection_dialog(), popup_diplomatic_objects(), popup_find_dialog(), popup_goto_airlift_dialog(), popup_impr_info(), popup_load_game_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_tech_info(), popup_unit_info(), popup_worklist_editor(), real_activeunits_report_dialog_update(), real_conn_list_dialog_update(), real_info_city_report_dialog_update(), rebuild_imprm_list(), remove_item_from_worklist(), spy_steal_popup_shared(), unit_select_dialog_popup(), update_diplomacy_dialog(), and update_intel_dialog().
void setup_vertical_scrollbar_default_callbacks | ( | struct scroll_bar * | scroll | ) |
Set default vertical scrollbar handling for scrollbar.
Definition at line 1522 of file widget_scrollbar.c.