Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-sdl2/widget_checkbox.h File Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Data Structures | Functions
widget_checkbox.h File Reference

Go to the source code of this file.

## Data Structures

struct | checkbox

## Functions

struct widget * | create_textcheckbox (struct gui_layer *pdest, bool state, utf8_str *pstr, Uint32 flags)
struct widget * | create_checkbox (struct gui_layer *pdest, bool state, Uint32 flags)
void | toggle_checkbox (struct widget *cbox)
bool | get_checkbox_state (struct widget *cbox)
int | set_new_checkbox_theme (struct widget *cbox, SDL_Surface *true_surf, SDL_Surface *false_surf)

## Function Documentation

## ◆ create_checkbox()

struct widget * create_checkbox | ( | struct gui_layer * | pdest,
|  | bool | state,
|  | Uint32 | flags
| ) |  |

Create a new checkbox widget.

Definition at line 115 of file widget_checkbox.c.

## ◆ create_textcheckbox()

struct widget * create_textcheckbox | ( | struct gui_layer * | pdest,
|  | bool | state,
|  | utf8_str * | pstr,
|  | Uint32 | flags
| ) |  |

Create a new checkbox-with-text widget.

Definition at line 149 of file widget_checkbox.c.

## ◆ get_checkbox_state()

bool get_checkbox_state | ( | struct widget * | cbox | ) |

Check state of the checkbox.

Definition at line 239 of file widget_checkbox.c.

## ◆ set_new_checkbox_theme()

int set_new_checkbox_theme | ( | struct widget * | cbox,
|  | SDL_Surface * | true_surf,
|  | SDL_Surface * | false_surf
| ) |  |

Set theme surfaces for a checkbox.

Definition at line 195 of file widget_checkbox.c.

## ◆ toggle_checkbox()

void toggle_checkbox | ( | struct widget * | cbox | ) |

Change the state of the checkbox.

Definition at line 225 of file widget_checkbox.c.