2015-07-11 15:56:37 -05:00
|
|
|
// 11 june 2015
|
2015-07-11 16:02:01 -05:00
|
|
|
#include "uipriv_darwin.h"
|
2015-07-11 15:56:37 -05:00
|
|
|
|
|
|
|
struct datetimepicker {
|
|
|
|
uiDateTimePicker d;
|
2015-07-11 16:02:01 -05:00
|
|
|
OSTYPE *OSHANDLE;
|
2015-07-11 15:56:37 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
uiDefineControlType(uiDateTimePicker, uiTypeDateTimePicker, struct datetimepicker)
|
|
|
|
|
|
|
|
static uintptr_t datetimepickerHandle(uiControl *c)
|
|
|
|
{
|
|
|
|
struct datetimepicker *d = (struct datetimepicker *) c;
|
|
|
|
|
|
|
|
return (uintptr_t) (d->OSHANDLE);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *finishNewDateTimePicker(OSTHING OSARG)
|
|
|
|
{
|
|
|
|
struct datetimepicker *d;
|
|
|
|
|
|
|
|
d = (struct datetimepicker *) MAKE_CONTROL_INSTANCE(uiTypeDateTimePicker());
|
|
|
|
|
|
|
|
PUT_CODE_HERE;
|
|
|
|
|
|
|
|
uiControl(d)->Handle = datetimepickerHandle;
|
|
|
|
|
|
|
|
return uiDateTimePicker(d);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *uiNewDateTimePicker(void)
|
|
|
|
{
|
|
|
|
return finishNewDateTimePicker(OSARGDATETIME);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *uiNewDatePicker(void)
|
|
|
|
{
|
|
|
|
return finishNewDateTimePicker(OSARGDATEONLY);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *uiNewTimePicker(void)
|
|
|
|
{
|
|
|
|
return finishNewDateTimePicker(OSARGTIMEONLY);
|
|
|
|
}
|