glib-2.0 Reference Manual

Synopsis

public struct Value {
    public                              Value                     ( Type                g_type ) ;


    public    bool                      holds                     ( Type                type ) ;
    public    Type                      type                      (  ) ;
    public    weak string               type_name                 (  ) ;
    public    void                      copy                      ( Value               dest_value ) ;
    public    Value                     reset                     (  ) ;
    public    void                      init                      ( Type                g_type ) ;
    public    void                      unset                     (  ) ;
    public    void                      set_instance              ( void**              instance ) ;
    public    bool                      fits_pointer              (  ) ;
    public    void**                    peek_pointer              (  ) ;
    public    static bool               type_compatible           ( Type                src_type,
                                                                    Type                dest_type ) ;
    public    static bool               type_transformable        ( Type                src_type,
                                                                    Type                dest_type ) ;
    public    bool                      transform                 ( Value               dest_value ) ;
    public    string                    strdup_contents           (  ) ;
    public    static void               register_transform_func   ( Type                src_type,
                                                                    Type                dest_type,
                                                                    ValueTransform      transform ) ;
    public    void                      set_boolean               ( bool                v_boolean ) ;
    public    bool                      get_boolean               (  ) ;
    public    void                      set_char                  ( char                v_char ) ;
    public    char                      get_char                  (  ) ;
    public    void                      set_uchar                 ( uchar               v_uchar ) ;
    public    uchar                     get_uchar                 (  ) ;
    public    void                      set_int                   ( int                 v_int ) ;
    public    int                       get_int                   (  ) ;
    public    void                      set_uint                  ( uint                v_uint ) ;
    public    uint                      get_uint                  (  ) ;
    public    void                      set_long                  ( long                v_long ) ;
    public    long                      get_long                  (  ) ;
    public    void                      set_ulong                 ( ulong               v_ulong ) ;
    public    ulong                     get_ulong                 (  ) ;
    public    void                      set_int64                 ( int64               v_int64 ) ;
    public    int64                     get_int64                 (  ) ;
    public    void                      set_uint64                ( uint64              v_uint64 ) ;
    public    uint64                    get_uint64                (  ) ;
    public    void                      set_float                 ( float               v_float ) ;
    public    float                     get_float                 (  ) ;
    public    void                      set_double                ( double              v_double ) ;
    public    double                    get_double                (  ) ;
    public    void                      set_enum                  ( int                 v_enum ) ;
    public    int                       get_enum                  (  ) ;
    public    void                      set_flags                 ( uint                v_flags ) ;
    public    uint                      get_flags                 (  ) ;
    public    void                      set_string                ( string              v_string ) ;
    public    void                      set_static_string         ( string              v_string ) ;
    public    void                      take_string               ( string              v_string ) ;
    public    weak string               get_string                (  ) ;
    public    string                    dup_string                (  ) ;
    public    void                      set_pointer               ( void**              v_pointer ) ;
    public    void**                    get_pointer               (  ) ;
    public    void                      set_boxed                 ( Boxed               v_boxed ) ;
    public    void                      take_boxed                ( Boxed               v_boxed ) ;
    public    weak Boxed                get_boxed                 (  ) ;
    public    Boxed                     dup_boxed                 (  ) ;
    public    void                      set_object                ( Object              v_object ) ;
    public    void                      take_object               ( Object              v_object ) ;
    public    weak Object               get_object                (  ) ;
    public    Object                    dup_object                (  ) ;
    public    void                      set_gtype                 ( Type                v_gtype ) ;
    public    Type                      get_gtype                 (  ) ;
}

Description

Details

Constructor Details

Value ()
    public                              Value                     ( Type                g_type ) ;		

Field Details

Method Details

holds ()
    public    bool                      holds                     ( Type                type ) ;		

type ()
    public    Type                      type                      (  ) ;		

type_name ()
    public    weak string               type_name                 (  ) ;		

copy ()
    public    void                      copy                      ( Value               dest_value ) ;		

reset ()
    public    Value                     reset                     (  ) ;		

init ()
    public    void                      init                      ( Type                g_type ) ;		

unset ()
    public    void                      unset                     (  ) ;		

set_instance ()
    public    void                      set_instance              ( void**              instance ) ;		

fits_pointer ()
    public    bool                      fits_pointer              (  ) ;		

peek_pointer ()
    public    void**                    peek_pointer              (  ) ;		

type_compatible ()
    public    static bool               type_compatible           ( Type                src_type,
                                                                    Type                dest_type ) ;		

type_transformable ()
    public    static bool               type_transformable        ( Type                src_type,
                                                                    Type                dest_type ) ;		

transform ()
    public    bool                      transform                 ( Value               dest_value ) ;		

strdup_contents ()
    public    string                    strdup_contents           (  ) ;		

register_transform_func ()
    public    static void               register_transform_func   ( Type                src_type,
                                                                    Type                dest_type,
                                                                    ValueTransform      transform ) ;		

set_boolean ()
    public    void                      set_boolean               ( bool                v_boolean ) ;		

get_boolean ()
    public    bool                      get_boolean               (  ) ;		

set_char ()
    public    void                      set_char                  ( char                v_char ) ;		

get_char ()
    public    char                      get_char                  (  ) ;		

set_uchar ()
    public    void                      set_uchar                 ( uchar               v_uchar ) ;		

get_uchar ()
    public    uchar                     get_uchar                 (  ) ;		

set_int ()
    public    void                      set_int                   ( int                 v_int ) ;		

get_int ()
    public    int                       get_int                   (  ) ;		

set_uint ()
    public    void                      set_uint                  ( uint                v_uint ) ;		

get_uint ()
    public    uint                      get_uint                  (  ) ;		

set_long ()
    public    void                      set_long                  ( long                v_long ) ;		

get_long ()
    public    long                      get_long                  (  ) ;		

set_ulong ()
    public    void                      set_ulong                 ( ulong               v_ulong ) ;		

get_ulong ()
    public    ulong                     get_ulong                 (  ) ;		

set_int64 ()
    public    void                      set_int64                 ( int64               v_int64 ) ;		

get_int64 ()
    public    int64                     get_int64                 (  ) ;		

set_uint64 ()
    public    void                      set_uint64                ( uint64              v_uint64 ) ;		

get_uint64 ()
    public    uint64                    get_uint64                (  ) ;		

set_float ()
    public    void                      set_float                 ( float               v_float ) ;		

get_float ()
    public    float                     get_float                 (  ) ;		

set_double ()
    public    void                      set_double                ( double              v_double ) ;		

get_double ()
    public    double                    get_double                (  ) ;		

set_enum ()
    public    void                      set_enum                  ( int                 v_enum ) ;		

get_enum ()
    public    int                       get_enum                  (  ) ;		

set_flags ()
    public    void                      set_flags                 ( uint                v_flags ) ;		

get_flags ()
    public    uint                      get_flags                 (  ) ;		

set_string ()
    public    void                      set_string                ( string              v_string ) ;		

set_static_string ()
    public    void                      set_static_string         ( string              v_string ) ;		

take_string ()
    public    void                      take_string               ( string              v_string ) ;		

get_string ()
    public    weak string               get_string                (  ) ;		

dup_string ()
    public    string                    dup_string                (  ) ;		

set_pointer ()
    public    void                      set_pointer               ( void**              v_pointer ) ;		

get_pointer ()
    public    void**                    get_pointer               (  ) ;		

set_boxed ()
    public    void                      set_boxed                 ( Boxed               v_boxed ) ;		

take_boxed ()
    public    void                      take_boxed                ( Boxed               v_boxed ) ;		

get_boxed ()
    public    weak Boxed                get_boxed                 (  ) ;		

dup_boxed ()
    public    Boxed                     dup_boxed                 (  ) ;		

set_object ()
    public    void                      set_object                ( Object              v_object ) ;		

take_object ()
    public    void                      take_object               ( Object              v_object ) ;		

get_object ()
    public    weak Object               get_object                (  ) ;		

dup_object ()
    public    Object                    dup_object                (  ) ;		

set_gtype ()
    public    void                      set_gtype                 ( Type                v_gtype ) ;		

get_gtype ()
    public    Type                      get_gtype                 (  ) ;		


Created by Valadoc