libui/unix/datetimepicker.c

49 lines
862 B
C
Raw Normal View History

2015-06-11 18:07:06 -05:00
// 11 june 2015
#include "uipriv_unix.h"
struct uiDateTimePicker {
uiUnixControl c;
2015-06-11 18:07:06 -05:00
GtkWidget *widget;
};
uiUnixDefineControl(
uiDateTimePicker, // type name
uiDateTimePickerType // type function
)
2015-06-11 18:07:06 -05:00
// TODO
typedef int OSTHING;
enum {
OSARGDATETIME,
OSARGDATEONLY,
OSARGTIMEONLY,
};
2015-06-11 18:07:06 -05:00
uiDateTimePicker *finishNewDateTimePicker(OSTHING OSARG)
{
uiDateTimePicker *d;
2015-06-11 18:07:06 -05:00
d = (uiDateTimePicker *) uiNewControl(uiDateTimePickerType());
2015-06-11 18:07:06 -05:00
d->widget = gtk_label_new("TODO uiDateTimePicker not implemented");
2015-06-11 18:07:06 -05:00
uiUnixFinishNewControl(d, uiDateTimePicker);
2015-06-11 18:07:06 -05:00
return d;
2015-06-11 18:07:06 -05:00
}
uiDateTimePicker *uiNewDateTimePicker(void)
{
return finishNewDateTimePicker(OSARGDATETIME);
}
uiDateTimePicker *uiNewDatePicker(void)
{
return finishNewDateTimePicker(OSARGDATEONLY);
}
uiDateTimePicker *uiNewTimePicker(void)
{
return finishNewDateTimePicker(OSARGTIMEONLY);
}