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.
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".
void iupdrvGetCursorPos
(
int *
x,
int *
y
)
Returns the current position of the mouse cursor.
void* iupdrvGetDisplay
(
void
)
Returns the driver "Display" in UNIX and NULL in Windows. Must be implemented somewhere else.
int iupdrvGetWindowDecor
(
void *
wnd,
int *
border,
int *
caption
)
Returns the decoration size of the native window. In Windows will also includes the menu if any. Used in iupdrvDialogGetDecoration only.
char* iupdrvGetCurrentDirectory
(
void
)
Returns the current directory.
int iupdrvSetCurrentDirectory
(
const char *
dir
)
Changes the current directory.
int iupdrvIsFile
(
const char *
name
)
Returns true if the given name is an existant file.
int iupdrvIsDirectory
(
const char *
name
)
Returns true if the given name is an existant directory.