Freeciv-3.3: option Struct Reference

Freeciv-3.3

Loading...
Searching...
No Matches
Data Structures | Data Fields
option Struct Reference

## Data Structures

struct | option_common_vtable

## Data Fields

const struct option_set * | poptset
enum option_type | type
const struct option::option_common_vtable * | common_vtable
union { |
struct option_bool_vtable { |
bool(* get )(const struct option *) |
bool(* def )(const struct option *) |
bool(* set )(struct option *, bool) |
} bool_vtable |
struct option_int_vtable { |
int(* get )(const struct option *) |
int(* def )(const struct option *) |
int(* minimum )(const struct option *) |
int(* maximum )(const struct option *) |
bool(* set )(struct option *, int) |
} int_vtable |
struct option_str_vtable { |
const char *(* get )(const struct option *) |
const char *(* def )(const struct option *) |
const struct strvec *(* values )(const struct option *) |
bool(* set )(struct option *, const char *) |
} str_vtable |
struct option_enum_vtable { |
int(* get )(const struct option *) |
int(* def )(const struct option *) |
const struct strvec *(* values )(const struct option *) |
bool(* set )(struct option *, int) |
int(* cmp )(const char *, const char *) |
} enum_vtable |
struct option_bitwise_vtable { |
unsigned(* get )(const struct option *) |
unsigned(* def )(const struct option *) |
const struct strvec *(* values )(const struct option *) |
bool(* set )(struct option *, unsigned) |
} bitwise_vtable |
struct option_font_vtable { |
const char *(* get )(const struct option *) |
const char *(* def )(const struct option *) |
const char *(* target )(const struct option *) |
bool(* set )(struct option *, const char *) |
} font_vtable |
struct option_color_vtable { |
struct ft_color(* get )(const struct option *) |
struct ft_color(* def )(const struct option *) |
bool(* set )(struct option *, struct ft_color) |
} color_vtable |
struct option_video_mode_vtable { |
struct video_mode(* get )(const struct option *) |
struct video_mode(* def )(const struct option *) |
bool(* set )(struct option *, struct video_mode) |
} video_mode_vtable |
}; |  |
void(* | changed_callback )(struct option *option)
int | callback_data
void * | gui_data

## Detailed Description

Definition at line 514 of file options.c.

## Field Documentation

## ◆ [union]

union { ... } option

## ◆ [struct]

const struct { ... } ::option_bitwise_vtable * option::bitwise_vtable

## ◆ [struct]

const struct { ... } ::option_bool_vtable * option::bool_vtable

## ◆ callback_data

int option::callback_data

Definition at line 592 of file options.c.

## ◆ changed_callback

void(* option::changed_callback) (struct option *option)

Definition at line 590 of file options.c.

## ◆ cmp

int(* option::cmp) (const char *, const char *)

Definition at line 559 of file options.c.

## ◆ [struct]

const struct { ... } ::option_color_vtable * option::color_vtable

## ◆ common_vtable

const struct option::option_common_vtable * option::common_vtable

## ◆ def [1/6]

bool(* option::def) (const struct option *)

Definition at line 535 of file options.c.

## ◆ def [2/6]

int(* option::def) (const struct option *)

Definition at line 541 of file options.c.

## ◆ def [3/6]

const char *(* option::def) (const struct option *)

Definition at line 549 of file options.c.

## ◆ def [4/6]

unsigned(* option::def) (const struct option *)

Definition at line 564 of file options.c.

## ◆ def [5/6]

struct ft_color(* option::def) (const struct option *)

Definition at line 573 of file options.c.

## ◆ def [6/6]

struct video_mode(* option::def) (const struct option *)

Definition at line 579 of file options.c.

## ◆ [struct]

const struct { ... } ::option_enum_vtable * option::enum_vtable

## ◆ [struct]

const struct { ... } ::option_font_vtable * option::font_vtable

## ◆ get [1/6]

bool(* option::get) (const struct option *)

Definition at line 534 of file options.c.

## ◆ get [2/6]

int(* option::get) (const struct option *)

Definition at line 540 of file options.c.

## ◆ get [3/6]

const char *(* option::get) (const struct option *)

Definition at line 548 of file options.c.

## ◆ get [4/6]

unsigned(* option::get) (const struct option *)

Definition at line 563 of file options.c.

## ◆ get [5/6]

struct ft_color(* option::get) (const struct option *)

Definition at line 573 of file options.c.

## ◆ get [6/6]

struct video_mode(* option::get) (const struct option *)

Definition at line 579 of file options.c.

## ◆ gui_data

void* option::gui_data

Definition at line 595 of file options.c.

## ◆ [struct]

const struct { ... } ::option_int_vtable * option::int_vtable

## ◆ maximum

int(* option::maximum) (const struct option *)

Definition at line 543 of file options.c.

## ◆ minimum

int(* option::minimum) (const struct option *)

Definition at line 542 of file options.c.

## ◆ poptset

const struct option_set* option::poptset

Definition at line 516 of file options.c.

Referenced by optset_category_name(), optset_category_number(), optset_option_by_name(), optset_option_by_number(), and optset_option_first().

## ◆ set

bool(* option::set) (struct option *, struct video_mode)

Definition at line 536 of file options.c.

## ◆ [struct]

const struct { ... } ::option_str_vtable * option::str_vtable

## ◆ target

const char *(* option::target) (const struct option *)

Definition at line 572 of file options.c.

## ◆ type

enum option_type option::type

Definition at line 518 of file options.c.

## ◆ values

const struct strvec *(* option::values) (const struct option *)

Definition at line 549 of file options.c.

## ◆ [struct]

const struct { ... } ::option_video_mode_vtable * option::video_mode_vtable