From 698a0e5c742575f91c27eb92a739ab63300f3cce Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 12:17:05 -0400 Subject: Added the new native control code to the GTK+ backend. Fixed some missing statics in the Windows one too. --- new/ui_unix.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 new/ui_unix.h (limited to 'new/ui_unix.h') diff --git a/new/ui_unix.h b/new/ui_unix.h new file mode 100644 index 0000000..19e8180 --- /dev/null +++ b/new/ui_unix.h @@ -0,0 +1,17 @@ +// 7 april 2015 + +/* +This file assumes that you have included and "ui.h" beforehand. It provides API-specific functions for interfacing with foreign controls on Unix systems that use GTK+ to provide their UI (currently all except Mac OS X). +*/ + +#ifndef __UI_UI_UNIX_H__ +#define __UI_UI_UNIX_H__ + +// uiUnixNewControl() creates a new uiControl with the given GTK+ control inside. +// The first three parameters are used for creating the control itself and are the same as passed to g_object_newv(). +// The three scrolledWindow parameters allow placing scrollbars on the new control. +// The data parameter can be accessed with uiUnixControlData(). +extern uiControl *uiUnixNewControl(GType type, guint nConstructParams, GParameter *constructParams, gboolean inScrolledWindow, gboolean needsViewport, gboolean scrolledWindowHasBorder, void *data); +extern void *uiUnixControlData(uiControl *c); + +#endif -- cgit v1.2.3