GuppiCategory

Name

GuppiCategory -- 

Synopsis



#define     GUPPI_CATEGORY0                 (obj)
#define     GUPPI_IS_CATEGORY0              (obj)
typedef     code_t;
void        (*GuppiCategoryFn)              (const gchar *str,
                                             code_t code,
                                             gpointer data);
#define     GUPPI_INVALID_CODE
#define     GUPPI_CATEGORY_CODE_TO_POINTER  (x)
#define     GUPPI_CATEGORY_POINTER_TO_CODE  (x)
GuppiData*  guppi_category_new              (void);
gsize       guppi_category_size             (GuppiCategory*);
code_t      guppi_category_min_code         (GuppiCategory*);
code_t      guppi_category_max_code         (GuppiCategory*);
code_t      guppi_category_unused_code      (GuppiCategory*);
gboolean    guppi_category_define           (GuppiCategory*,
                                             const gchar *str,
                                             code_t);
code_t      guppi_category_add_by_name      (GuppiCategory*,
                                             const gchar *str);
gboolean    guppi_category_contains         (GuppiCategory*,
                                             const gchar*);
gboolean    guppi_category_contains_code    (GuppiCategory*,
                                             code_t);
code_t      guppi_category_find_by_name     (GuppiCategory*,
                                             const gchar*);
const gchar* guppi_category_find_by_code    (GuppiCategory*,
                                             code_t);
gboolean    guppi_category_rename           (GuppiCategory*,
                                             code_t,
                                             const gchar*);
void        guppi_category_foreach          (GuppiCategory*,
                                             GuppiCategoryFn,
                                             gpointer);

Object Hierarchy


  GtkObject
   +----GuppiData
         +----GuppiCategory

Description

Details

GUPPI_CATEGORY0()

#define GUPPI_CATEGORY0(obj) ((obj) ? (GUPPI_CATEGORY(obj)) : NULL)

obj : 


GUPPI_IS_CATEGORY0()

#define GUPPI_IS_CATEGORY0(obj) (((obj) == NULL) || (GUPPI_IS_CATEGORY(obj)))

obj : 


code_t

typedef gint code_t;


GuppiCategoryFn ()

void        (*GuppiCategoryFn)              (const gchar *str,
                                             code_t code,
                                             gpointer data);

str : 
code : 
data : 


GUPPI_INVALID_CODE

#define GUPPI_INVALID_CODE ((code_t)G_MAXINT)


GUPPI_CATEGORY_CODE_TO_POINTER()

#define GUPPI_CATEGORY_CODE_TO_POINTER(x) (GINT_TO_POINTER((gint)(x)))

x : 


GUPPI_CATEGORY_POINTER_TO_CODE()

#define GUPPI_CATEGORY_POINTER_TO_CODE(x) ((code_t)(GPOINTER_TO_INT(x)))

x : 


guppi_category_new ()

GuppiData*  guppi_category_new              (void);

Returns : 


guppi_category_size ()

gsize       guppi_category_size             (GuppiCategory*);

Param1 : 
Returns : 


guppi_category_min_code ()

code_t      guppi_category_min_code         (GuppiCategory*);

Param1 : 
Returns : 


guppi_category_max_code ()

code_t      guppi_category_max_code         (GuppiCategory*);

Param1 : 
Returns : 


guppi_category_unused_code ()

code_t      guppi_category_unused_code      (GuppiCategory*);

Param1 : 
Returns : 


guppi_category_define ()

gboolean    guppi_category_define           (GuppiCategory*,
                                             const gchar *str,
                                             code_t);

Param1 : 
str : 
Param3 : 
Returns : 


guppi_category_add_by_name ()

code_t      guppi_category_add_by_name      (GuppiCategory*,
                                             const gchar *str);

Param1 : 
str : 
Returns : 


guppi_category_contains ()

gboolean    guppi_category_contains         (GuppiCategory*,
                                             const gchar*);

Param1 : 
Param2 : 
Returns : 


guppi_category_contains_code ()

gboolean    guppi_category_contains_code    (GuppiCategory*,
                                             code_t);

Param1 : 
Param2 : 
Returns : 


guppi_category_find_by_name ()

code_t      guppi_category_find_by_name     (GuppiCategory*,
                                             const gchar*);

Param1 : 
Param2 : 
Returns : 


guppi_category_find_by_code ()

const gchar* guppi_category_find_by_code    (GuppiCategory*,
                                             code_t);

Param1 : 
Param2 : 
Returns : 


guppi_category_rename ()

gboolean    guppi_category_rename           (GuppiCategory*,
                                             code_t,
                                             const gchar*);

Param1 : 
Param2 : 
Param3 : 
Returns : 


guppi_category_foreach ()

void        guppi_category_foreach          (GuppiCategory*,
                                             GuppiCategoryFn,
                                             gpointer);

Param1 : 
Param2 : 
Param3 :