Data Structures | Modules | Defines | Typedefs | Enumerations | Functions

Ihandle Object
[Control SDK]

Collaboration diagram for Ihandle Object:

Data Structures

struct  Ihandle_

Modules

 Child Tree Utilities

Defines

#define IUP_EXPAND_WIDTH   (IUP_EXPAND_W1 | IUP_EXPAND_W0)
#define IUP_EXPAND_HEIGHT   (IUP_EXPAND_H1 | IUP_EXPAND_H0)
#define IUP_EXPAND_BOTH   (IUP_EXPAND_WIDTH | IUP_EXPAND_HEIGHT)
#define iupALLOCCTRLDATA()   ((IcontrolData*)calloc(1, sizeof(IcontrolData)))

Typedefs

typedef struct _InativeHandle InativeHandle
typedef struct _IcontrolData IcontrolData

Enumerations

enum  Iexpand {
  IUP_EXPAND_NONE = 0x00, IUP_EXPAND_H0 = 0x01, IUP_EXPAND_H1 = 0x02, IUP_EXPAND_W0 = 0x04,
  IUP_EXPAND_W1 = 0x08, IUP_EXPAND_HFREE = 0x10, IUP_EXPAND_WFREE = 0x20
}
enum  Iflags {
  IUP_FLOATING = 0x01, IUP_FLOATING_IGNORE = 0x02, IUP_MAXSIZE = 0x04, IUP_MINSIZE = 0x08,
  IUP_INTERNAL = 0x10
}

Functions

void ** iupObjectGetParamList (void *first, va_list arglist)
int iupObjectCheck (Ihandle *ih)

Detailed Description

Object handle for all the elements.
See iup_object.h

Define Documentation

#define IUP_EXPAND_WIDTH   (IUP_EXPAND_W1 | IUP_EXPAND_W0)

Expand configuration

#define IUP_EXPAND_HEIGHT   (IUP_EXPAND_H1 | IUP_EXPAND_H0)

Expand configuration

#define IUP_EXPAND_BOTH   (IUP_EXPAND_WIDTH | IUP_EXPAND_HEIGHT)

Expand configuration

#define iupALLOCCTRLDATA (  )     ((IcontrolData*)calloc(1, sizeof(IcontrolData)))

IcontrolData allocation utility.


Typedef Documentation

typedef struct _InativeHandle InativeHandle

A simple definition that do not depends on the native system, but helps a lot when writing native code. See iup_object.h for definitions.

typedef struct _IcontrolData IcontrolData

Each control may define its own structure in its private module.


Enumeration Type Documentation

enum Iexpand

Expand configuration

enum Iflags

General flags.

Enumerator:
IUP_FLOATING 

is a floating element. FLOATING=Yes

IUP_FLOATING_IGNORE 

is a floating element. FLOATING=Ignore. Do not compute layout.

IUP_MAXSIZE 

has the MAXSIZE attribute set

IUP_MINSIZE 

has the MAXSIZE attribute set

IUP_INTERNAL 

it is an internal element of the container


Function Documentation

void** iupObjectGetParamList ( void *  first,
va_list  arglist 
)

Utility that returns an array of parameters. Must call free for the returned value after usage. Used by the creation functions of objects that receives a NULL terminated array of parameters.

int iupObjectCheck ( Ihandle *  ih  ) 

Checks if the handle is still valid based on the signature. But if the handle was destroyed still can access invalid memory.