fo-enum

fo-enum —

Synopsis




struct      FoEnum;
struct      FoEnumClass;
FoDatatype* fo_enum_new                     (void);
FoDatatype* fo_enum_new_with_value          (const GEnumClass *enum_class,
                                             const guint value);
GEnumClass* fo_enum_get_enum_class          (FoDatatype *fo_enum);
guint       fo_enum_get_value               (FoDatatype *fo_enum);

Object Hierarchy


  GObject
   +----FoObject
         +----FoDatatype
               +----FoEnum

Properties


  "enum-class"           gpointer             : Read / Write / Construct Only
  "value"                guint                : Read / Write / Construct Only

Description

Details

struct FoEnum

struct FoEnum;


struct FoEnumClass

struct FoEnumClass;


fo_enum_new ()

FoDatatype* fo_enum_new                     (void);

Creates a new FoEnum initialized to default value.

Returns : The new FoEnum.

fo_enum_new_with_value ()

FoDatatype* fo_enum_new_with_value          (const GEnumClass *enum_class,
                                             const guint value);

Creates a new FoEnum set to value and enum_class.

enum_class : GEnumClass of the new FoEnum.
value : Value of the new FoEnum.
Returns : The new FoEnum.

fo_enum_get_enum_class ()

GEnumClass* fo_enum_get_enum_class          (FoDatatype *fo_enum);

Get the enumeration class of fo_enum.

fo_enum : FoEnum.
Returns : Enumeration class of fo_enum.

fo_enum_get_value ()

guint       fo_enum_get_value               (FoDatatype *fo_enum);

Get the value of fo_enum.

fo_enum : FoEnum.
Returns : Numeric value of fo_enum.

Properties

"enum-class" (gpointer : Read / Write / Construct Only)

Enumeration class.

"value" (guint : Read / Write / Construct Only)

Enum value.