109 (icon->h + 6) - text->h) / 2;
112 y = 3 + (
icon_button->size.h - (icon->h + 3) - text->h) / 2;
113 iy =
y + text->h + 3;
145 x = (
icon_button->size.w - (icon->w + 5) - text->w) / 2;
162 (icon->w + 5) - text->w) / 2);
268 if (!icon && !
pstr) {
SDL_Color * get_theme_color(enum theme_color themecolor)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
int clear_surface(SDL_Surface *surf, SDL_Rect *dstrect)
void utf8_str_size(utf8_str *pstr, SDL_Rect *fill)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
@ COLOR_THEME_WIDGET_NORMAL_TEXT
@ COLOR_THEME_WIDGET_DISABLED_TEXT
@ COLOR_THEME_WIDGET_SELECTED_TEXT
@ COLOR_THEME_WIDGET_PRESSED_TEXT