Base Class
[Control SDK]
Detailed Description
- See iup_class.h
Data Structures | |
struct | Iclass_ |
Typedefs | |
typedef Iclass_ | Iclass |
typedef char *(* | IattribGetFunc )(Ihandle *ih) |
typedef int(* | IattribSetFunc )(Ihandle *ih, const char *value) |
Enumerations | |
enum | { IUP_TYPEVOID, IUP_TYPECONTROL, IUP_TYPECANVAS, IUP_TYPEDIALOG, IUP_TYPEIMAGE, IUP_TYPEMENU } |
enum | { IUP_CHILDNONE, IUP_CHILDONE, IUP_CHILDMANY } |
Functions | |
Iclass * | iupClassCreateBase (void) |
void | iupClassDestroyBase (Iclass *ic) |
void | iupClassRegisterAttribute (Iclass *ic, const char *name, IattribGetFunc get, IattribSetFunc set, const char *default_value, int no_handle, int inherit) |
int | iupClassSetAttributeBase (Ihandle *ih, const char *name, const char *value, int *inherit) |
char * | iupClassGetAttributeBase (Ihandle *ih, const char *name, char **def_value, int *inherit) |
int | iupClassSetAttributeIdBase (Ihandle *ih, const char *name, const char *value, int *inherit) |
char * | iupClassGetAttributeIdBase (Ihandle *ih, const char *name, char **def_value, int *inherit) |
void | iupClassRegisterCallback (Iclass *ic, const char *name, const char *format) |
char * | iupClassCallbackFormat (Iclass *ic, const char *name) |
void | iupLayoutSetExpand (Ihandle *ih) |
Typedef Documentation
|
Base Class Structure |
|
GetAttribute called for a specific attribute. |
|
SetAttribute called for a specific attribute. |
Enumeration Type Documentation
|
Known native types. |
|
Possible number of children. |
Function Documentation
|
Allocates memory for the Iclass structure and initializes the attribute handling functions table. |
|
Destroys the attribute handling functions table. |
|
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. |
|
Default SetAttribute implementation that check for attribute handling functions. |
|
Default GetAttribute implementation that check for attribute handling functions. |
|
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. |
|
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.
|
|
Returns the format of the parameters of a registered callback. |
|
Updates the expand member of the IUP object from the EXPAND attribute. Should be called in the begining of the ComputeNaturalSize of each element. |