Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-sdl2/widget_icon.h Source File

Freeciv-3.2

Loading...
Searching...
No Matches
widget_icon.h
Go to the documentation of this file.
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.
7
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***********************************************************************/
13
14#ifndef FC__WIDGET_ICON_H
15#define FC__WIDGET_ICON_H
16
17/* ICON */
18void set_new_icon_theme(struct widget *icon_widget,
19 SDL_Surface *new_theme);
20 SDL_Surface *create_icon_theme_surf(SDL_Surface *icon);
21struct widget *create_themeicon(SDL_Surface *icon_theme,
22 struct gui_layer *pdest, Uint32 flags);
23 SDL_Surface *create_icon_from_theme(SDL_Surface *icon_theme,
24 Uint8 state);
25int draw_icon_from_theme(SDL_Surface *icon_theme, Uint8 state,
26 struct gui_layer *pdest, Sint16 start_x,
27 Sint16 start_y);
28int draw_icon(struct widget *icon, Sint16 start_x, Sint16 start_y);
29
30/* ICON2 */
31void set_new_icon2_theme(struct widget *icon_widget, SDL_Surface *new_theme,
32 bool free_old_theme);
33struct widget *create_icon2(SDL_Surface *icon, struct gui_layer *pdest,
34 Uint32 flags);
35
36#endif /* FC__WIDGET_ICON_H */
incite_cost
char * incite_cost
Definition comments.c:74
create_themeicon
struct widget * create_themeicon(SDL_Surface *icon_theme, struct gui_layer *pdest, Uint32 flags)
Definition widget_icon.c:212
create_icon2
struct widget * create_icon2(SDL_Surface *icon, struct gui_layer *pdest, Uint32 flags)
Definition widget_icon.c:337
set_new_icon2_theme
void set_new_icon2_theme(struct widget *icon_widget, SDL_Surface *new_theme, bool free_old_theme)
Definition widget_icon.c:321
create_icon_theme_surf
SDL_Surface * create_icon_theme_surf(SDL_Surface *icon)
Definition widget_icon.c:158
create_icon_from_theme
SDL_Surface * create_icon_from_theme(SDL_Surface *icon_theme, Uint8 state)
Definition widget_icon.c:298
draw_icon_from_theme
int draw_icon_from_theme(SDL_Surface *icon_theme, Uint8 state, struct gui_layer *pdest, Sint16 start_x, Sint16 start_y)
Definition widget_icon.c:268
set_new_icon_theme
void set_new_icon_theme(struct widget *icon_widget, SDL_Surface *new_theme)
Definition widget_icon.c:145
draw_icon
int draw_icon(struct widget *icon, Sint16 start_x, Sint16 start_y)
Definition widget_icon.c:240
gui_layer
Definition graphics.h:227
widget
Definition widget.h:112