IUP: iup_object.h File Reference

IUP - Portable User Interface

iup_object.h File Reference


Detailed Description

See Copyright Notice in iup.h

Data Structures

struct  Ihandle_

Defines

#define iupMAX(_a, _b)   ((_a)>(_b)?(_a):(_b))
#define iupWIDTH2RASTER(_w, _cw)   ((_w * _cw)/4)
#define iupHEIGHT2RASTER(_h, _ch)   ((_h * _ch)/8)
#define iupRASTER2WIDTH(_w, _cw)   ((_w * 4)/_cw)
#define iupRASTER2HEIGHT(_h, _ch)   ((_h * 8)/_ch)
#define IUP_EXPAND_WIDTH   (IUP_EXPAND_W1 | IUP_EXPAND_W0)
#define IUP_EXPAND_HEIGHT   (IUP_EXPAND_H1 | IUP_EXPAND_H0)
#define IUP_EXPAND_ALL   (IUP_EXPAND_WIDTH | IUP_EXPAND_HEIGHT)
#define iupALLOCCTRLDATA()   ((IcontrolData*)calloc(1, sizeof(IcontrolData)))
#define iupCOLOR8TO16(_x)   ((unsigned short)(_x*257))
#define iupCOLOR16TO8(_x)   ((unsigned char)(_x/257))
#define IUP_ALIGN_ABOTTOM   IUP_ALIGN_ARIGHT
#define IUP_ALIGN_ATOP   IUP_ALIGN_ALEFT

Typedefs

typedef _InativeHandle InativeHandle
typedef _IcontrolData IcontrolData

Enumerations

enum  {
  IUP_EXPAND_NONE = 0x00, IUP_EXPAND_H0 = 0x10, IUP_EXPAND_H1 = 0x20, IUP_EXPAND_W1 = 0x40,
  IUP_EXPAND_W0 = 0x80
}
enum  { IUP_ALIGN_ALEFT, IUP_ALIGN_ACENTER, IUP_ALIGN_ARIGHT }

Functions

Ihandle * iupObjectCreate (Iclass *ic, void **params)
void ** iupGetParamList (void *first, va_list arglist)
int iupHandleCheck (Ihandle *ih)