libui/test/controls.c

25 lines
415 B
C

// 8 june 2019
#include "test.h"
struct testImplData {
bool initCalled;
bool *freeCalled;
bool testMethodCalled;
};
static bool testVtableInit(uiControl *c, void *implData, void *initData)
{
return true;
}
static void testVtableFree(uiControl *c, void *implData)
{
// do nothing
}
const uiControlVtable testVtable = {
.Size = sizeof (uiControlVtable),
.Init = testVtableInit,
.Free = testVtableFree,
};