Freeciv-3.4
Toggle main menu visibility
Main Page
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
client
gui-sdl2
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 */
18
void
set_new_icon_theme
(
struct
widget
*
icon_widget
,
19
SDL_Surface
*
new_theme
);
20
SDL_Surface
*
create_icon_theme_surf
(
SDL_Surface
*icon);
21
struct
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);
25
int
draw_icon_from_theme
(
SDL_Surface
*
icon_theme
,
Uint8
state,
26
struct
gui_layer
*
pdest
,
Sint16
start_x,
27
Sint16
start_y
);
28
int
draw_icon
(
struct
widget
*icon,
Sint16
start_x,
Sint16
start_y
);
29
30
/* ICON2 */
31
void
set_new_icon2_theme
(
struct
widget
*
icon_widget
,
SDL_Surface
*
new_theme
,
32
bool
free_old_theme
);
33
struct
widget
*
create_icon2
(
SDL_Surface
*icon,
struct
gui_layer
*
pdest
,
34
Uint32
flags);
35
36
#endif
/* FC__WIDGET_ICON_H */
BODYGUARD_NONE
@ BODYGUARD_NONE
Definition
aiguard.c:37
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
Generated on Sun Mar 9 2025 22:30:11 for Freeciv-3.4 by
1.9.8