More stubs.

This commit is contained in:
Pietro Gagliardi 2015-06-11 14:03:43 -04:00
parent a019dab679
commit a6d38831cc
1 changed files with 48 additions and 0 deletions

48
redo/stubs/combobox.c Normal file
View File

@ -0,0 +1,48 @@
// 11 june 2015
#include "uipriv_OSHERE.h"
struct combobox {
uiCombobox c;
OSTYPE OSHANDLE;
};
uiDefineControlType(uiCombobox, uiTypeCombobox, struct combobox)
static uintptr_t comboboxHandle(uiControl *cc)
{
struct combobox *c = (struct combobox *) cc;
return (uintptr_t) (c->OSHANDLE);
}
static void comboboxAppend(uiCombobox *cc, const char *text)
{
struct combobox *c = (struct combobox *) cc;
PUT_CODE_HERE;
}
static uiCombobox *finishNewCombobox(OSTHING OSARG)
{
struct combobox *c;
c = (struct combobox *) MAKE_CONTROL_INSTANCE(uiTypeCombobox());
PUT_CODE_HERE;
uiControl(c)->Handle = comboboxHandle;
uiCombobox(c)->Append = comboboxAppend;
return uiCombobox(c);
}
uiCombobox *uiNewCombobox(void)
{
return finishNewCombobox(OSARGNONEDITABLE);
}
uiCombobox *uiNewEditableCombobox(void)
{
return finishNewCombobox(OSARGEDITABLE);
}