46 ret = (*baseclass_redraw)(icon);
57 src.w = (icon->
theme->w / 4);
58 src.h = icon->
theme->h;
60 if (icon->
size.w != src.w) {
61 area.x += (icon->
size.w - src.w) / 2;
64 if (icon->
size.h != src.h) {
65 area.y += (icon->
size.h - src.h) / 2;
79 ret = (*baseclass_redraw)(icon);
92 dest.x = icon->
size.x;
93 dest.y = icon->
size.y;
94 dest.w = icon->
theme->w;
95 dest.h = icon->
theme->h;
100 dest.x + 1, dest.y + 1,
107 dest.x + 1, dest.y + 1,
119 dest.x + 1, dest.y + 1,
165 dest.y = (
ptheme->h - src.h) / 2;
176 dest.x - 1, dest.y - 1, src.w + 1, src.h + 1,
185 dest.x - 1, dest.y - 1, src.w + 1, src.h + 1,
237 icon->
size.x = start_x;
302 src.x = src.w * state;
SDL_Color * get_theme_color(enum theme_color themecolor)
int fill_rect_alpha(SDL_Surface *surf, SDL_Rect *prect, SDL_Color *pcolor)
SDL_Surface * crop_rect_from_surface(SDL_Surface *psource, SDL_Rect *prect)
int alphablit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect, unsigned char alpha_mod)
SDL_Surface * create_surf(int width, int height, Uint32 flags)
void get_smaller_surface_rect(SDL_Surface *surf, SDL_Rect *rect)
void create_frame(SDL_Surface *dest, Sint16 left, Sint16 top, Sint16 width, Sint16 height, SDL_Color *pcolor)
@ COLOR_THEME_CUSTOM_WIDGET_PRESSED_FRAME
@ COLOR_THEME_WIDGET_DISABLED_TEXT
@ COLOR_THEME_CUSTOM_WIDGET_SELECTED_FRAME