Base Class
[Control SDK]
Detailed Description
- See iup_class.h
Data Structures | |
struct | Iclass_ |
Typedefs | |
typedef char *(* | IattribGetFunc )(Ihandle *ih) |
typedef char *(* | IattribGetIdFunc )(Ihandle *ih, const char *name_id) |
typedef int(* | IattribSetFunc )(Ihandle *ih, const char *value) |
typedef int(* | IattribSetIdFunc )(Ihandle *ih, const char *name_id, const char *value) |
Enumerations | |
enum | { IUP_TYPEVOID, IUP_TYPECONTROL, IUP_TYPECANVAS, IUP_TYPEDIALOG, IUP_TYPEIMAGE, IUP_TYPEMENU } |
enum | { IUP_CHILDNONE, IUP_CHILDONE, IUP_CHILDMANY } |
enum | { IUP_NOT_MAPPED, IUP_MAPPED } |
enum | { IUP_NO_INHERIT, IUP_INHERIT } |
Functions | |
Iclass * | iupClassGetBase (Iclass *parent) |
void | iupClassRelease (Iclass *ic) |
void | iupClassRegisterAttribute (Iclass *ic, const char *name, IattribGetFunc get, IattribSetFunc set, const char *default_value, int mapped, int inherit) |
void | iupClassRegisterCallback (Iclass *ic, const char *name, const char *format) |
char * | iupClassCallbackGetFormat (Iclass *ic, const char *name) |
void | iupLayoutSetExpand (Ihandle *ih) |
void | iupBaseSetCurrentSizeMethod (Ihandle *ih, int w, int h, int shrink) |
void | iupBaseSetPositionMethod (Ihandle *ih, int x, int y) |
Typedef Documentation
|
GetAttribute called for a specific attribute. Used by iupClassRegisterAttribute. |
|
GetAttribute called for a specific attribute when attrib_id is true. |
|
SetAttribute called for a specific attribute. |
|
SetAttribute called for a specific attribute when attrib_id is true. |
Enumeration Type Documentation
|
|
Possible number of children. |
|
Attribute map state dependency. Used by iupClassRegisterAttribute. |
|
Attribute inheritance dependency. Used by iupClassRegisterAttribute. |
Function Documentation
|
Allocates memory for the Iclass structure and initializes the attribute handling functions table. |
|
Release the memory allocated by the class and parent classes. |
|
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. Notice that when an attribute is not defined then default_value=NULL and inherit=IUP_INHERIT. |
|
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 array options. It can have none, one or more of the following.
|
|
Returns the format of the parameters of a registered callback. If NULL then the default callback definition is assumed. |
|
Updates the expand member of the IUP object from the EXPAND attribute. Should be called in the begining of the ComputeNaturalSize of each element. |
|
SetCurrentSize method for controls that are not containers. |
|
SetPositionSize method for controls that are not containers. |