Modules | Functions

## Base Class
[Ihandle Class]

Collaboration diagram for Base Class:

### Modules

| Base Class Methods
| Base Class Attribute Functions
| Base Class Utilities

### Functions

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

### Detailed Description

  See iup_classbase.h

### Function Documentation

IUP_SDK_API 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.

IUP_SDK_API 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.

IUP_SDK_API void iupBaseRegisterBaseCallbacks | ( | Iclass * | ic | ) |

Register all base callbacks:
MAP_CB, UNMAP_CB, DESTROY_CB, LDESTROY_CB.

IUP_SDK_API void iupBaseRegisterCommonCallbacks | ( | Iclass * | ic | ) |

Register all base and common callbacks:
MAP_CB, UNMAP_CB, DESTROY_CB, LDESTROY_CB, GETFOCUS_CB, KILLFOCUS_CB, ENTERWINDOW_CB, LEAVEWINDOW_CB, K_ANY, HELP_CB.

IUP_SDK_API 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.

IUP_SDK_API 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.

IUP_SDK_API 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.

IUP_SDK_API 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.