Freeciv-3.2
|
Go to the source code of this file.
Macros | |
#define | create_icon_button_from_chars(icon, pdest, char_string, ptsize, flags) |
#define | create_icon_button_from_chars_fonto(icon, pdest, char_string, fonto, flags) |
#define | create_themeicon_button_from_chars(icon_theme, pdest, char_string, ptsize, flags) |
#define | create_themeicon_button_from_chars_fonto(icon_theme, pdest, char_string, fonto, flags) |
Functions | |
struct widget * | create_icon_button (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags) |
struct widget * | create_themeicon_button (SDL_Surface *icon_theme, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags) |
#define create_icon_button_from_chars | ( | icon, | |
pdest, | |||
char_string, | |||
ptsize, | |||
flags | |||
) |
Definition at line 17 of file widget_button.h.
#define create_icon_button_from_chars_fonto | ( | icon, | |
pdest, | |||
char_string, | |||
fonto, | |||
flags | |||
) |
Definition at line 23 of file widget_button.h.
#define create_themeicon_button_from_chars | ( | icon_theme, | |
pdest, | |||
char_string, | |||
ptsize, | |||
flags | |||
) |
Definition at line 29 of file widget_button.h.
#define create_themeicon_button_from_chars_fonto | ( | icon_theme, | |
pdest, | |||
char_string, | |||
fonto, | |||
flags | |||
) |
Definition at line 36 of file widget_button.h.
struct widget * create_icon_button | ( | SDL_Surface * | icon, |
struct gui_layer * | pdest, | ||
utf8_str * | pstr, | ||
Uint32 | flags | ||
) |
Create ( malloc ) Icon (theme)Button Widget structure.
Icon graphic is taken from 'icon' surface (don't change with button changes ); Button Theme graphic is taken from current_theme->button surface; Text is taken from 'pstr'.
This function determinate future size of Button ( width, height ) and save this in: pwidget->size rectangle ( SDL_Rect )
function return pointer to allocated Button Widget.
Definition at line 265 of file widget_button.c.
Referenced by create_city_options_widget_list(), create_themeicon_button(), and popup_government_dialog().
struct widget * create_themeicon_button | ( | SDL_Surface * | icon_theme, |
struct gui_layer * | pdest, | ||
utf8_str * | pstr, | ||
Uint32 | flags | ||
) |
Create ( malloc ) Theme Icon (theme)Button Widget structure.
Icon Theme graphic is taken from 'icon_theme' surface ( change with button changes ); Button Theme graphic is taken from current_theme->button surface; Text is taken from 'pstr'.
This function determinate future size of Button ( width, height ) and save this in: pwidget->size rectangle ( SDL_Rect )
function return pointer to allocated Button Widget.
Definition at line 343 of file widget_button.c.
Referenced by create_horizontal_scrollbar(), create_vertical_scrollbar(), economy_report_dialog_popup(), and popup_races_dialog().