Driver Interface

Collaboration diagram for Driver Interface:

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 iupdrvSetFocus (Ihandle *ih)
void iupdrvSetVisible (Ihandle *ih, int enable)
void iupdrvSetActive (Ihandle *ih, int enable)
void iupdrvDisplayUpdate (Ihandle *ih)
void iupdrvDisplayRedraw (Ihandle *ih)
void iupdrvReparent (Ihandle *ih)
void iupdrvDrawFocusRect (Ihandle *ih, void *gc, int x, int y, int w, int h)
int iupdrvGetScrollbarSize (void)
void iupdrvActivate (Ihandle *ih)
int iupdrvMenuGetMenuBarSize (Ihandle *ih)

Detailed Description

Each driver must export the symbols defined here.
See iup_drv.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 iupdrvSetFocus ( Ihandle *  ih  ) 

Actually changes the focus to the given element.

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  ) 

Post a redraw of a control.

void iupdrvDisplayRedraw ( Ihandle *  ih  ) 

Force a redraw of a control.

void iupdrvReparent ( Ihandle *  ih  ) 

Reparent the native control.

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

Draws a focus rectangle

int iupdrvGetScrollbarSize ( void   ) 

Size of the scroolbar.

void iupdrvActivate ( Ihandle *  ih  ) 

Activates a control.

int iupdrvMenuGetMenuBarSize ( Ihandle *  ih  ) 

Returns the height of a menu bar.


Generated on Thu Oct 1 14:02:33 2009 for IUP by  doxygen 1.6.1