Modules | Functions

Base Class
[Ihandle Class]

Collaboration diagram for Base Class:

Modules

 Base Class Methods
 Base Class Attribute Functions
 Base Class Utilities

Functions

void iupBaseRegisterCommonAttrib (Iclass *ic)
void iupBaseRegisterVisualAttrib (Iclass *ic)
void iupBaseRegisterCommonCallbacks (Iclass *ic)
void iupBaseContainerUpdateExpand (Ihandle *ih)
void iupBaseComputeNaturalSize (Ihandle *ih)
void iupBaseSetCurrentSize (Ihandle *ih, int w, int h, int shrink)
void iupBaseSetPosition (Ihandle *ih, int x, int y)

Detailed Description

See iup_classbase.h

Function Documentation

void iupBaseRegisterCommonAttrib ( Iclass ic  ) 

Register all common base attributes:
WID
SIZE, RASTERSIZE, POSITION
FONT (and derived)

All controls that are positioned inside a dialog must register all common base attributes.

void iupBaseRegisterVisualAttrib ( Iclass ic  ) 

Register all visual base attributes:
VISIBLE, ACTIVE
ZORDER, X, Y
TIP (and derived)

All controls that are positioned inside a dialog must register all visual base attributes.

void iupBaseRegisterCommonCallbacks ( Iclass ic  ) 

Register all common callbacks:
MAP_CB, UNMAP_CB, GETFOCUS_CB, KILLFOCUS_CB, ENTERWINDOW_CB, LEAVEWINDOW_CB, K_ANY, HELP_CB.

void iupBaseContainerUpdateExpand ( Ihandle *  ih  ) 

Updates the expand member of the IUP object from the EXPAND attribute. Should be called in the beginning of the ComputeNaturalSize for a container.

void iupBaseComputeNaturalSize ( Ihandle *  ih  ) 

Initializes the natural size using the user size, then if a container then update the "expand" member from the EXPAND attribute, then call iupClassObjectComputeNaturalSize for containers if they have children or call iupClassObjectComputeNaturalSize for non-containers if user size is not defined. Must be called for each children in the container.
First call is in iupLayoutCompute.

void iupBaseSetCurrentSize ( Ihandle *  ih,
int  w,
int  h,
int  shrink 
)

Update the current size from the available size, the natural size, expand and shrink. Call iupClassObjectSetChildrenCurrentSize for containers if they have children. Must be called for each children in the container.
First call is in iupLayoutCompute.

void iupBaseSetPosition ( Ihandle *  ih,
int  x,
int  y 
)

Set the current position and update children position for containers. Call iupClassObjectSetChildrenPosition for containers if they have children. Must be called for each children in the container.
First call is in iupLayoutCompute.