#include <gtk/gtk.h>
Go to the source code of this file.
Compounds | |
struct | s_value |
Defines | |
#define | VALUE_TYPE(class) ((CLASS(class))->value.valuetype) |
#define | VALUE_VALUE(class, type) |
Enumerations | |
enum | valuetype_t { T_ILLEGAL, T_NONE, T_INT, T_FLOAT, T_BOOL, T_STRING } |
Functions | |
void | value_set (struct s_value *, valuetype_t,...) |
void | value_unset (struct s_value) |
void | value_translate (struct s_value, struct s_value) |
|
Value: ({ \ if(type & VALUE_TYPE(class) == 0) \ { g_critical("not compatible types\n"); } \ else \ { \ switch(VALUE_TYPE(class)) \ { \ case T_INT : CLASS(class)->value.content.vint; \ case T_FLOAT : CLASS(class)->value.content.vfloat; \ case T_BOOL : CLASS(class)->value.content.vbool; \ case T_STRING: CLASS(class)->value.content.vstring; \ } \ } \ }) |
|
Value initialisation. visibility :: public
|
|
Value translation. visibility :: public
|
|
Value desinitialisation. visibility :: public @remarks: 1. the value is not a standalone variable, so we don't have to free it. We must just free it's content if it's a string pointer
|