Driver Information Interface
[Driver Interface]
Detailed Description
- Each driver must export the symbols defined here. But in this case the functions are shared by different drivers in the same system.
- For example, the GTK driver and the Windows driver share the same implementation of these functions when the GTK driver is compiled in Windows. The GTK driver and the Motif driver share the same implementation of these functions when the GTK driver is compiled in UNIX.
- See iup_drvinfo.h
Functions | |
void | iupdrvGetFullSize (int *width, int *height) |
void | iupdrvGetScreenSize (int *width, int *height) |
int | iupdrvGetScreenDepth (void) |
char * | iupdrvGetSystemVersion (void) |
char * | iupdrvGetSystemName (void) |
char * | iupdrvGetComputerName (void) |
char * | iupdrvGetUserName (void) |
void | iupdrvGetKeyState (char *key) |
void | iupdrvGetCursorPos (int *x, int *y) |
void * | iupdrvGetDisplay (void) |
int | iupdrvGetWindowDecor (void *wnd, int *border, int *caption) |
char * | iupdrvGetCurrentDirectory (void) |
int | iupdrvSetCurrentDirectory (const char *dir) |
int | iupdrvIsFile (const char *name) |
int | iupdrvIsDirectory (const char *name) |
int | iupdrvMakeDirectory (const char *name) |
Function Documentation
|
Retrieve the main desktop full size. |
|
Retrieve the main desktop available size. |
|
Retrieve the default desktop bits per pixel. |
|
Returns a string with the system version number. |
|
Returns a string with the system name. |
|
Returns a string with the computer name. |
|
Returns a string with the user name. |
|
Returns the key state for Shift, Ctrl, Alt and sYs, in this order. Left and right keys are considered. Should declare "char key[5]". Values could be space (" ") or "SCAY". |
|
Returns the current position of the mouse cursor. |
|
Returns the driver "Display" in UNIX and NULL in Windows. Must be implemented somewhere else. |
|
Returns the decoration size of the native window. In Windows will also includes the menu if any. Used in iupdrvDialogGetDecoration only. |
|
Returns the current directory. |
|
Changes the current directory. |
|
Returns true if the given name is an existant file. |
|
Returns true if the given name is an existant directory. |
|
Creates a new direcotry. |