Freeciv-3.2
Loading...
Searching...
No Matches
Macros | Functions
widget_label.h File Reference

Go to the source code of this file.

Macros

#define create_iconlabel_from_chars(picon, pdest, chars, ptsize, flags)    create_iconlabel(picon, pdest, create_utf8_from_char(chars, ptsize), flags)
 
#define create_iconlabel_from_chars_fonto(picon, pdest, chars, fonto, flags)    create_iconlabel(picon, pdest, create_utf8_from_char_fonto(chars, fonto), flags)
 
#define create_active_iconlabel(buf, pdest, pstr, pstring, cb)
 

Functions

struct widgetcreate_themelabel (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint16 w, Uint16 h, Uint32 flags)
 
struct widgetcreate_themelabel2 (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *pstr, Uint16 w, Uint16 h, Uint32 flags)
 
struct widgetcreate_iconlabel (SDL_Surface *icon, struct gui_layer *pdest, utf8_str *text, Uint32 flags)
 
struct widgetconvert_iconlabel_to_themeiconlabel2 (struct widget *icon_label)
 
int draw_label (struct widget *label, Sint16 start_x, Sint16 start_y)
 
int redraw_iconlabel (struct widget *label)
 
void remake_label_size (struct widget *label)
 

Macro Definition Documentation

◆ create_active_iconlabel

#define create_active_iconlabel (   buf,
  pdest,
  pstr,
  pstring,
  cb 
)
Value:
do { \
pstr->style |= TTF_STYLE_BOLD; \
buf->action = cb; \
} while (FALSE)
char * incite_cost
Definition comments.c:75
#define create_utf8_from_char(string_in, ptsize)
Definition gui_string.h:103
@ WF_RESTORE_BACKGROUND
Definition widget.h:85
@ WF_DRAW_TEXT_LABEL_WITH_SPACE
Definition widget.h:87
struct widget * create_iconlabel(SDL_Surface *icon, struct gui_layer *pdest, utf8_str *text, Uint32 flags)
#define FALSE
Definition support.h:47

Definition at line 23 of file widget_label.h.

◆ create_iconlabel_from_chars

#define create_iconlabel_from_chars (   picon,
  pdest,
  chars,
  ptsize,
  flags 
)     create_iconlabel(picon, pdest, create_utf8_from_char(chars, ptsize), flags)

Definition at line 17 of file widget_label.h.

◆ create_iconlabel_from_chars_fonto

#define create_iconlabel_from_chars_fonto (   picon,
  pdest,
  chars,
  fonto,
  flags 
)     create_iconlabel(picon, pdest, create_utf8_from_char_fonto(chars, fonto), flags)

Definition at line 20 of file widget_label.h.

Function Documentation

◆ convert_iconlabel_to_themeiconlabel2()

struct widget * convert_iconlabel_to_themeiconlabel2 ( struct widget icon_label)

Make themeiconlabel2 widget out of iconlabel widget.

Definition at line 321 of file widget_label.c.

◆ create_iconlabel()

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.

◆ create_themelabel()

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.

◆ create_themelabel2()

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.

◆ draw_label()

int draw_label ( struct widget label,
Sint16  start_x,
Sint16  start_y 
)

Draw the label widget.

Definition at line 529 of file widget_label.c.

◆ redraw_iconlabel()

int redraw_iconlabel ( struct widget label)

Blit iconlabel gfx to surface its on.

Definition at line 390 of file widget_label.c.

◆ remake_label_size()

void remake_label_size ( struct widget label)

Calculate new size for a label.

Definition at line 118 of file widget_label.c.