![]() |
![]() |
![]() |
hildon 2.0.6 Reference Manual | ![]() |
---|---|---|---|---|
HildonDateEditorHildonDateEditor — A widget which queries a date from user or opens a HildonCalendarPopup. |
![]() |
HildonDateEditor; GtkWidget* hildon_date_editor_new (void); void hildon_date_editor_set_date (HildonDateEditor *date, guint year, guint month, guint day); void hildon_date_editor_get_date (HildonDateEditor *date, guint *year, guint *month, guint *day); gboolean hildon_date_editor_set_year (HildonDateEditor *editor, guint year); gboolean hildon_date_editor_set_month (HildonDateEditor *editor, guint month); gboolean hildon_date_editor_set_day (HildonDateEditor *editor, guint day); guint hildon_date_editor_get_year (HildonDateEditor *editor); guint hildon_date_editor_get_month (HildonDateEditor *editor); guint hildon_date_editor_get_day (HildonDateEditor *editor);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----HildonDateEditor
"day" guint : Read / Write "max-year" guint : Read / Write "min-year" guint : Read / Write "month" guint : Read / Write "year" guint : Read / Write
HildonDateEditor is a widget with three entry fields (day, month, year) and an icon (button): clicking on the icon opens up a HildonCalendarPopup.
Example 13.
gint y, m, d; date_editor = hildon_date_editor_new (); hildon_date_editor_get_date(date_editor, &y, &m, &d);
GtkWidget* hildon_date_editor_new (void);
Creates a new date editor. The current system date is shown in the editor.
Returns : |
pointer to a new HildonDateEditor widget.
|
void hildon_date_editor_set_date (HildonDateEditor *date, guint year, guint month, guint day);
Sets the date shown in the editor.
|
the HildonDateEditor widget
|
|
year |
|
month |
|
day |
void hildon_date_editor_get_date (HildonDateEditor *date, guint *year, guint *month, guint *day);
Gets the date represented by the date editor. You can pass NULL to any of the pointers if you're not interested in obtaining it.
|
the HildonDateEditor widget
|
|
year |
|
month |
|
day |
gboolean hildon_date_editor_set_year (HildonDateEditor *editor, guint year);
Sets the year shown in the editor.
|
the HildonDateEditor widget
|
|
year |
Returns : |
TRUE if the year is valid and has been set. |
gboolean hildon_date_editor_set_month (HildonDateEditor *editor, guint month);
Sets the month shown in the editor.
|
the HildonDateEditor widget
|
|
month |
Returns : |
TRUE if the month is valid and has been set. |
gboolean hildon_date_editor_set_day (HildonDateEditor *editor, guint day);
Sets the day shown in the editor.
|
the HildonDateEditor widget
|
|
day |
Returns : |
TRUE if the day is valid and has been set. |
guint hildon_date_editor_get_year (HildonDateEditor *editor);
|
the HildonDateEditor widget
|
Returns : |
the current year shown in the editor. |
guint hildon_date_editor_get_month (HildonDateEditor *editor);
Gets the month shown in the editor.
|
the HildonDateEditor widget
|
Returns : |
the current month shown in the editor. |
guint hildon_date_editor_get_day (HildonDateEditor *editor);
Gets the day shown in the editor.
|
the HildonDateEditor widget
|
Returns : |
the current day shown in the editor |
"max-year"
property"max-year" guint : Read / Write
Maximum valid year.
Allowed values: [1,10000]
Default value: 2037
"min-year"
property"min-year" guint : Read / Write
Minimum valid year.
Allowed values: [1,10000]
Default value: 1970
"month"
property"month" guint : Read / Write
Current month.
Allowed values: [1,12]
Default value: 1
"year"
property"year" guint : Read / Write
Current year.
Allowed values: [1,10000]
Default value: 2007
"date-error"
signalgboolean user_function (HildonDateEditor *hildondateeditor, HildonDateTimeError arg1, gpointer user_data) : Run Last
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
Returns : |