Migrated windows/radiobuttons.c.

This commit is contained in:
Pietro Gagliardi 2015-05-30 19:23:05 -04:00
parent 8f28577148
commit 3d4c81a695
1 changed files with 15 additions and 7 deletions

View File

@ -110,17 +110,24 @@ static void radiobuttonsSHED(uiControl *c)
// TODO
}
static void radiobuttonsSysFunc(uiControl *c, uiControlSysFuncParams *p)
{
// TODO
}
static int radiobuttonsStartZOrder(uiControl *c, uiControlSysFuncParams *p)
static uintptr_t radiobuttonsStartZOrder(uiControl *c)
{
// TODO
return 0;
}
static uintptr_t radiobuttonsSetZOrder(uiControl *c, uintptr_t insertAfter)
{
// TODO
return 0;
}
static int radiobuttonsHasTabStops(uiControl *c)
{
// TODO return 0 if no radio buttons
return 1;
}
static void radiobuttonsAppend(uiRadioButtons *rr, const char *text)
{
struct radiobuttons *r = (struct radiobuttons *) rr;
@ -162,8 +169,9 @@ uiRadioButtons *uiNewRadioButtons(void)
uiControl(r)->CommitHide = radiobuttonsSHED;
uiControl(r)->CommitEnable = radiobuttonsSHED;
uiControl(r)->CommitDisable = radiobuttonsSHED;
uiControl(r)->SysFunc = radiobuttonsSysFunc;
uiControl(r)->StartZOrder = radiobuttonsStartZOrder;
uiControl(r)->SetZOrder = radiobuttonsSetZOrder;
uiControl(r)->HasTabStops = radiobuttonsHasTabStops;
uiRadioButtons(r)->Append = radiobuttonsAppend;