Freeciv-3.3
|
#include <SDL3/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 322 of file widget_label.c.
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 211 of file widget_label.c.
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 176 of file widget_label.c.
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 237 of file widget_label.c.
Draw the label widget.
Definition at line 534 of file widget_label.c.
Blit iconlabel gfx to surface its on.
Definition at line 395 of file widget_label.c.
Blit label gfx to surface its on.
Definition at line 57 of file widget_label.c.
Blit themelabel2 gfx to surface its on.
Definition at line 38 of file widget_label.c.
Calculate new size for a label.
Definition at line 114 of file widget_label.c.