19#ifdef SDL2_PLAIN_INCLUDE
50 ret = (*baseclass_redraw)(icon);
61 src.w = (icon->
theme->w / 4);
62 src.h = icon->
theme->h;
64 if (icon->
size.w != src.w) {
65 area.x += (icon->
size.w - src.w) / 2;
68 if (icon->
size.h != src.h) {
69 area.y += (icon->
size.h - src.h) / 2;
83 ret = (*baseclass_redraw)(icon);
96 dest.x = icon->
size.x;
97 dest.y = icon->
size.y;
98 dest.w = icon->
theme->w;
99 dest.h = icon->
theme->h;
104 dest.x + 1, dest.y + 1,
111 dest.x + 1, dest.y + 1,
123 dest.x + 1, dest.y + 1,
170 dest.y = (
ptheme->h - src.h) / 2;
181 dest.x - 1, dest.y - 1, src.w + 1, src.h + 1,
190 dest.x - 1, dest.y - 1, src.w + 1, src.h + 1,
242 icon->
size.x = start_x;
307 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