Iclass_ Struct Reference
[Base Class]
Detailed Description
Base Class Structure
Data Fields | |
char * | name |
char * | format |
int | nativetype |
int | childtype |
int | interactive |
int | attrib_id |
Iclass * | parent |
Itable * | attrib_func |
void(* | Release )(Iclass *ic) |
int(* | Create )(Ihandle *ih, void **params) |
int(* | Map )(Ihandle *ih) |
void(* | UnMap )(Ihandle *ih) |
void(* | Destroy )(Ihandle *ih) |
Ihandle *(* | GetInnerParent )(Ihandle *parent) |
void(* | LayoutUpdate )(Ihandle *ih) |
void(* | ComputeNaturalSize )(Ihandle *ih) |
void(* | SetCurrentSize )(Ihandle *ih, int w, int h, int shrink) |
void(* | SetPosition )(Ihandle *ih, int x, int y) |
int(* | DlgPopup )(Ihandle *ih, int x, int y) |
Field Documentation
|
class name. No default, must be initialized. |
|
Creation parameters format of the class when specified.
|
|
native type enum. Default is IUP_TYPEVOID. |
|
children count enum: none, one, or many. Default is IUP_CHILDNONE. |
|
keyboard interactive boolean, true if the class can have the keyboard input focus. Default is false. |
|
boolean to indicate if any attribute is numbered. Default is false. |
|
class parent to implement inheritance. Class name must be different. Creation parameters should be the same or repace the parents creation function. Native type should be the same. Child type should be a more restrictive or equal type (many->one->none). Attribute functions will have only one common table. All methods can be changed, set to NULL, switched, etc. |
|
table of functions to handle attributes |
|
Method that release the memory allocated by the class. Called only once at iupClassRelease. |
|
Method that creates the element and process the creation parameters. |
|
Method that map (create) the control to the native system. |
|
Method that unmap (destroy) the control from the native system. |
|
Method that destroys the element. |
|
Returns the actual parent to add a child. The default implementation returns itself. |
|
Method that update size and position of the native control. |
|
Method that computes the natural size. |
|
Method that calculates and updates the current size based on the given size. |
|
Method that calculates and updates the position relative to the parent. |
|
Method that shows a popup dialog. Called only for native pre-defined dialogs. |