![]() |
![]() |
![]() |
hildon 2.1.34 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
HildonDateButton; GtkWidget * hildon_date_button_new (HildonSizeType size, HildonButtonArrangement arrangement); void hildon_date_button_get_date (HildonDateButton *button, guint *year, guint *month, guint *day); void hildon_date_button_set_date (HildonDateButton *button, guint year, guint month, guint day);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkButton +----HildonButton +----HildonPickerButton +----HildonDateButton
HildonDateButton implements GtkBuildable, AtkImplementorIface and GtkActivatable.
HildonDateButton is a widget that shows a text label and a date, and allows the user to select a different date. Visually, it's a button that, once clicked, presents a HildonPickerDialog containing a HildonDateSelector. Once the user selects a different date from the selector, this will be shown in the button.
GtkWidget * hildon_date_button_new (HildonSizeType size, HildonButtonArrangement arrangement);
Creates a new HildonDateButton. See hildon_button_new()
for details on the
parameters.
|
One of HildonSizeType |
|
one of HildonButtonArrangement |
Returns : |
a new HildonDateButton |
Since 2.2
void hildon_date_button_get_date (HildonDateButton *button, guint *year, guint *month, guint *day);
Retrieves currently selected date from button
.
|
a HildonDateButton |
|
return location for the selected year |
|
return location for the selected month |
|
return location for the selected day |
Since 2.2
void hildon_date_button_set_date (HildonDateButton *button, guint year, guint month, guint day);
Sets the date in button
. The date set will be displayed
and will be the default selected option on the shown HildonDateSelector.
|
a HildonDateButton |
|
the year to set. |
|
the month number to set. |
|
the day of the month to set. |
Since 2.2