Freeciv-3.2
Loading...
Searching...
No Matches
client
gui-sdl2
widget_checkbox.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_CHECKBOX_H
15
#define FC__WIDGET_CHECKBOX_H
16
17
struct
checkbox
{
18
SDL_Surface
*
true_theme
;
19
SDL_Surface
*
false_theme
;
20
bool
state
;
21
};
22
23
struct
widget
*
create_textcheckbox
(
struct
gui_layer
*
pdest
,
bool
state,
24
utf8_str
*
pstr
,
Uint32
flags);
25
struct
widget
*
create_checkbox
(
struct
gui_layer
*
pdest
,
bool
state,
Uint32
flags);
26
void
toggle_checkbox
(
struct
widget
*
cbox
);
27
bool
get_checkbox_state
(
struct
widget
*
cbox
);
28
int
set_new_checkbox_theme
(
struct
widget
*
cbox
,
29
SDL_Surface
*
true_surf
,
SDL_Surface
*
false_surf
);
30
31
#endif
/* FC__WIDGET_CHECKBOX_H */
incite_cost
char * incite_cost
Definition
comments.c:75
toggle_checkbox
void toggle_checkbox(struct widget *cbox)
Definition
widget_checkbox.c:225
create_textcheckbox
struct widget * create_textcheckbox(struct gui_layer *pdest, bool state, utf8_str *pstr, Uint32 flags)
Definition
widget_checkbox.c:149
get_checkbox_state
bool get_checkbox_state(struct widget *cbox)
Definition
widget_checkbox.c:239
set_new_checkbox_theme
int set_new_checkbox_theme(struct widget *cbox, SDL_Surface *true_surf, SDL_Surface *false_surf)
Definition
widget_checkbox.c:195
create_checkbox
struct widget * create_checkbox(struct gui_layer *pdest, bool state, Uint32 flags)
Definition
widget_checkbox.c:115
checkbox
Definition
widget_checkbox.h:17
checkbox::false_theme
SDL_Surface * false_theme
Definition
widget_checkbox.h:19
checkbox::state
bool state
Definition
widget_checkbox.h:20
checkbox::true_theme
SDL_Surface * true_theme
Definition
widget_checkbox.h:18
gui_layer
Definition
graphics.h:227
utf8_str
Definition
gui_string.h:52
widget
Definition
widget.h:112
widget::cbox
struct checkbox * cbox
Definition
widget.h:137
Generated on Sun Dec 22 2024 23:00:31 for Freeciv-3.2 by
1.9.8