webperimental: Mountain vision bonus.
[freeciv.git] / client / gui-sdl2 / widget_icon.h
blob5a56aa6aaa74b3149fb360bb828ac99c36c48c3b
1 /**********************************************************************
2 Freeciv - Copyright (C) 2006 - The Freeciv Project
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 ***********************************************************************/
14 #ifndef FC__WIDGET_ICON_H
15 #define FC__WIDGET_ICON_H
17 /* ICON */
18 void set_new_icon_theme(struct widget *pIcon_Widget,
19 SDL_Surface *pNew_Theme);
20 SDL_Surface *create_icon_theme_surf(SDL_Surface *pIcon);
21 struct widget *create_themeicon(SDL_Surface *pIcon_theme,
22 struct gui_layer *pDest, Uint32 flags);
23 SDL_Surface *create_icon_from_theme(SDL_Surface *pIcon_theme,
24 Uint8 state);
25 int draw_icon_from_theme(SDL_Surface *pIcon_theme, Uint8 state,
26 struct gui_layer *pDest, Sint16 start_x,
27 Sint16 start_y);
28 int draw_icon(struct widget *pIcon, Sint16 start_x, Sint16 start_y);
30 /* ICON2 */
31 void set_new_icon2_theme(struct widget *pIcon_Widget, SDL_Surface *pNew_Theme,
32 bool free_old_theme);
33 struct widget *create_icon2(SDL_Surface *pIcon, struct gui_layer *pDest, Uint32 flags);
35 #endif /* FC__WIDGET_ICON_H */