Freeciv-3.2
|
#include <SDL2/SDL.h>
#include "log.h"
#include "mem.h"
#include "colors.h"
#include "graphics.h"
#include "themespec.h"
#include "widget.h"
#include "widget_p.h"
Go to the source code of this file.
Functions | |
static int | redraw_themelabel2 (struct widget *label) |
static int | redraw_label (struct widget *label) |
void | remake_label_size (struct widget *label) |
struct widget * | create_themelabel (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint16 w, Uint16 h, Uint32 flags) |
struct widget * | create_iconlabel (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint32 flags) |
struct widget * | create_themelabel2 (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint16 w, Uint16 h, Uint32 flags) |
struct widget * | convert_iconlabel_to_themeiconlabel2 (struct widget *icon_label) |
int | redraw_iconlabel (struct widget *label) |
int | draw_label (struct widget *label, Sint16 start_x, Sint16 start_y) |
Variables | |
static int(* | baseclass_redraw )(struct widget *pwidget) |
Make themeiconlabel2 widget out of iconlabel widget.
Definition at line 321 of file widget_label.c.
Referenced by popup_connection_dialog().
struct widget * create_iconlabel | ( | SDL_Surface * | icon, |
struct gui_layer * | pdest, | ||
utf8_str * | pstr, | ||
Uint32 | flags | ||
) |
This Label is UTF8 string with Icon.
Definition at line 215 of file widget_label.c.
Referenced by add_global_worklist(), add_target_to_worklist(), create_tech_info(), create_textcheckbox(), economy_report_dialog_popup(), option_dialog_worklist(), popup_advanced_terrain_dialog(), popup_city_cma_dialog(), popup_connection_dialog(), popup_find_dialog(), popup_impr_info(), popup_join_game_dialog(), popup_load_del_presets_dialog(), popup_load_game_dialog(), popup_new_user_passwd_dialog(), popup_newcity_dialog(), popup_players_nations_dialog(), popup_races_dialog(), popup_sabotage_dialog(), popup_spaceship_dialog(), popup_terrain_info_dialog(), popup_unit_info(), popup_user_passwd_dialog(), popup_worklist_editor(), real_activeunits_report_dialog_update(), real_info_city_report_dialog_update(), real_meswin_dialog_update(), rebuild_imprm_list(), sell_imprvm_dlg_callback(), set_global_worklist(), show_game_page(), units_orders_city_dlg_callback(), update_clauses_list(), update_diplomacy_dialog(), and update_goto_dialog().
struct widget * create_themelabel | ( | SDL_Surface * | icon, |
struct gui_layer * | pdest, | ||
utf8_str * | pstr, | ||
Uint16 | w, | ||
Uint16 | h, | ||
Uint32 | flags | ||
) |
Theme label is utf8_str with Background ( icon ).
Definition at line 180 of file widget_label.c.
Referenced by real_city_dialog_popup().
struct widget * create_themelabel2 | ( | SDL_Surface * | icon, |
struct gui_layer * | pdest, | ||
utf8_str * | pstr, | ||
Uint16 | w, | ||
Uint16 | h, | ||
Uint32 | flags | ||
) |
Theme label is UTF8 string with Background ( icon ).
Definition at line 241 of file widget_label.c.
Referenced by add_to_chat_list(), popup_conn_list_dialog(), and real_conn_list_dialog_update().
Draw the label widget.
Definition at line 529 of file widget_label.c.
Blit iconlabel gfx to surface its on.
Definition at line 390 of file widget_label.c.
Referenced by convert_iconlabel_to_themeiconlabel2(), create_themelabel2(), redraw_label(), and redraw_textcheckbox().
Blit label gfx to surface its on.
Definition at line 61 of file widget_label.c.
Referenced by convert_iconlabel_to_themeiconlabel2(), create_iconlabel(), create_themelabel(), create_themelabel2(), and draw_label().
Blit themelabel2 gfx to surface its on.
Definition at line 42 of file widget_label.c.
Referenced by redraw_label().
Calculate new size for a label.
Definition at line 118 of file widget_label.c.
Referenced by change_nation_label(), create_iconlabel(), create_themelabel(), create_themelabel2(), option_widget_new(), real_economy_report_dialog_update(), refresh_production_label(), and refresh_worklist_count_label().
Definition at line 37 of file widget_label.c.
Referenced by create_iconlabel(), create_themelabel(), and create_themelabel2().