Freeciv21
Develop your civilization from humble roots to a global empire
option Struct Reference

The base class for options. More...

+ Collaboration diagram for option:

Public Attributes

const struct option_setpoptset
 
enum option_type type
 
const struct option_common_vtablecommon_vtable
 
union {
   const struct option_bool_vtable *   bool_vtable
 
   const struct option_int_vtable *   int_vtable
 
   const struct option_str_vtable *   str_vtable
 
   const struct option_enum_vtable *   enum_vtable
 
   const struct option_bitwise_vtable *   bitwise_vtable
 
   const struct option_font_vtable *   font_vtable
 
   const struct option_color_vtable *   color_vtable
 
}; 
 
void(* changed_callback )(struct option *option)
 
int callback_data
 
void * gui_data
 

Detailed Description

The base class for options.

Definition at line 209 of file options.cpp.

Member Data Documentation

◆ 

union { ... }

◆ bitwise_vtable

◆ bool_vtable

const struct option_bool_vtable* option::bool_vtable

◆ callback_data

int option::callback_data

Definition at line 238 of file options.cpp.

Referenced by option_get_cb_data().

◆ changed_callback

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

Definition at line 236 of file options.cpp.

Referenced by option_changed(), and option_set_changed_callback().

◆ color_vtable

const struct option_color_vtable* option::color_vtable

Definition at line 233 of file options.cpp.

Referenced by option_color_set().

◆ common_vtable

◆ enum_vtable

◆ font_vtable

const struct option_font_vtable* option::font_vtable

◆ gui_data

void* option::gui_data

Definition at line 241 of file options.cpp.

Referenced by option_get_gui_data(), and option_set_gui_data().

◆ int_vtable

const struct option_int_vtable* option::int_vtable

◆ poptset

◆ str_vtable

◆ type