andlabs-ui/pkgui.c

39 lines
690 B
C
Raw Normal View History

// 26 august 2018
#include "pkgui.h"
#include "_cgo_export.h"
uiInitOptions *pkguiAllocInitOptions(void)
{
return (uiInitOptions *) pkguiAlloc(sizeof (uiInitOptions));
}
void pkguiFreeInitOptions(uiInitOptions *o)
{
free(o);
}
void pkguiQueueMain(uintptr_t n)
{
uiQueueMain(pkguiDoQueueMain, (void *) n);
}
void pkguiOnShouldQuit(void)
{
uiOnShouldQuit(pkguiDoOnShouldQuit, NULL);
}
void pkguiWindowOnClosing(uiWindow *w)
{
uiWindowOnClosing(w, pkguiDoWindowOnClosing, NULL);
}
void pkguiButtonOnClicked(uiButton *b)
{
uiButtonOnClicked(b, pkguiDoButtonOnClicked, NULL);
}
void pkguiCheckboxOnToggled(uiCheckbox *c)
{
uiCheckboxOnToggled(c, pkguiDoCheckboxOnToggled, NULL);
}