IUP: Driver Interface

IUP - Portable User Interface

Driver Interface


Detailed Description

Each driver must export the symbols defined here.
See iup_drv.h

Modules

 Driver Font Interface
 Driver Information Interface

Functions

int iupdrvSetGlobal (const char *name, const char *value)
char * iupdrvGetGlobal (const char *name)
void iupdrvSetIdleFunction (Icallback func)
void iupdrvScreenToClient (Ihandle *ih, int *x, int *y)
int iupdrvIsVisible (Ihandle *ih)
int iupdrvIsActive (Ihandle *ih)
void iupdrvSetVisible (Ihandle *ih, int enable)
void iupdrvSetActive (Ihandle *ih, int enable)
void iupdrvDisplayUpdate (Ihandle *ih)
void iupdrvReparent (Ihandle *child, Ihandle *parent)
void iupdrvDrawFocusRect (Ihandle *ih, void *gc, int x, int y, int w, int h)

Function Documentation

int iupdrvSetGlobal const char *  name,
const char *  value
 

Sets a global environment attribute. Called from IupSetGlobal and IupStoreGlobal. Must return 1 is process the atribute, or 0 is not.

char* iupdrvGetGlobal const char *  name  ) 
 

Returns a global environment attribute. Called from IupGetGlobal.

void iupdrvSetIdleFunction Icallback  func  ) 
 

Changes the idle callback. Called from IupSetFunction.

void iupdrvScreenToClient Ihandle *  ih,
int *  x,
int *  y
 

Convert the coordinates from screen relative to client area releative.

int iupdrvIsVisible Ihandle *  ih  ) 
 

Returns true if the element is visible.

int iupdrvIsActive Ihandle *  ih  ) 
 

Returns true if the element is active.

void iupdrvSetVisible Ihandle *  ih,
int  enable
 

Changes the visible state of an element. Not used for dialogs.

void iupdrvSetActive Ihandle *  ih,
int  enable
 

Changes the active state of an element.

void iupdrvDisplayUpdate Ihandle *  ih  ) 
 

Force a redraw of a control.

void iupdrvReparent Ihandle *  child,
Ihandle *  parent
 

Reparent the native control.

void iupdrvDrawFocusRect Ihandle *  ih,
void *  gc,
int  x,
int  y,
int  w,
int  h
 

Draws a focus rectangle