Freeciv-3.1
Loading...
Searching...
No Matches
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
17struct checkbox {
18 SDL_Surface *true_theme;
19 SDL_Surface *false_theme;
20 bool state;
21};
22
23struct widget *create_textcheckbox(struct gui_layer *pdest, bool state,
24 utf8_str *pstr, Uint32 flags);
25struct widget *create_checkbox(struct gui_layer *pdest, bool state, Uint32 flags);
26void toggle_checkbox(struct widget *cbox);
27bool get_checkbox_state(struct widget *cbox);
30
31#endif /* FC__WIDGET_CHECKBOX_H */
SDL_Surface * true_theme
SDL_Surface * false_theme
struct checkbox * cbox
Definition widget.h:137
struct container * cont
Definition widget.h:127
void toggle_checkbox(struct widget *cbox)
struct widget * create_textcheckbox(struct gui_layer *pdest, bool state, utf8_str *pstr, Uint32 flags)
bool get_checkbox_state(struct widget *cbox)
int set_new_checkbox_theme(struct widget *cbox, SDL_Surface *true_surf, SDL_Surface *false_surf)
struct widget * create_checkbox(struct gui_layer *pdest, bool state, Uint32 flags)