Register attribute handling functions. get, set and default_value can be NULL. default_value should point to a constant string. It will not be duplicated internally.
int iupClassSetAttributeBase
(
Ihandle *
ih,
const char *
name,
const char *
value,
int *
inherit
)
Default SetAttribute implementation that check for attribute handling functions.
char* iupClassGetAttributeBase
(
Ihandle *
ih,
const char *
name,
char **
def_value,
int *
inherit
)
Default GetAttribute implementation that check for attribute handling functions.
int iupClassSetAttributeIdBase
(
Ihandle *
ih,
const char *
name,
const char *
value,
int *
inherit
)
Same as iupClassSetAttributeBase but handle attribute names with number ids at the end. the get function receives also the Id. When calling iupClassRegisterAttribute just use a typecast. It is used by IupList, IupTree, IupMatrix and IupColorbar. Pure numbers are translated into IDVALUEid.
char* iupClassGetAttributeIdBase
(
Ihandle *
ih,
const char *
name,
char **
def_value,
int *
inherit
)
Same as iupClassGetAttributeBase but handle attribute names with number ids at the end. the get function receives also the Id. When calling iupClassRegisterAttribute just use a typecast. It is used by IupList, IupTree, IupMatrix and IupColorbar. Pure numbers are translated into IDVALUEid.
Register the parameters of a callback. Used by language bindings. format follows the format specification of the class creation parameters format, but it adds the "double" option and remove other options. It can have none, one or more of the following.
"b" = (unsigned char) - byte
"i" = (int) - integer
"f" = (float) - real
"d" = (double) - real
"s" = (char*) - string
"h" = (Ihandle*) - element handle The default return value for all callbacks is "i" (int). But the return value can be specified using one of the above parameters, after all parameters using "=" to separate it from them.