And implemented the bare bones of uiControlOSVtable on GTK+.
This commit is contained in:
parent
4649e7d632
commit
80ada0a06b
|
@ -23,6 +23,7 @@ elif libui_OS == 'darwin'
|
||||||
else
|
else
|
||||||
libui_test_sources += [
|
libui_test_sources += [
|
||||||
'controls_unix.c',
|
'controls_unix.c',
|
||||||
|
'controls_unix_errors.cpp',
|
||||||
]
|
]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
// 10 june 2019
|
||||||
|
#define libuiOSHeader "../ui_unix.h"
|
||||||
|
#include "test.h"
|
|
@ -11,6 +11,10 @@ This file assumes that you have included <gtk/gtk.h> and "ui.h" beforehand. It p
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct uiControlOSVtable {
|
||||||
|
size_t Size;
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
// 8 june 2019
|
||||||
|
#include "uipriv_unix.h"
|
||||||
|
|
||||||
|
bool uiprivOSVtableValid(const uiControlOSVtable *osVtable, const char *func)
|
||||||
|
{
|
||||||
|
if (osVtable->Size != sizeof (uiControlOSVtable)) {
|
||||||
|
uiprivProgrammerErrorWrongStructSize(osVtable->Size, "uiControlOSVtable", func);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
uiControlOSVtable *uiprivCloneOSVtable(const uiControlOSVtable *osVtable)
|
||||||
|
{
|
||||||
|
uiControlOSVtable *v2;
|
||||||
|
|
||||||
|
v2 = uiprivNew(uiControlOSVtable);
|
||||||
|
*v2 = *osVtable;
|
||||||
|
return v2;
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
# 23 march 2019
|
# 23 march 2019
|
||||||
|
|
||||||
libui_sources += [
|
libui_sources += [
|
||||||
|
'unix/controls.c',
|
||||||
'unix/main.c',
|
'unix/main.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue