HildonWeekdayPicker

HildonWeekdayPicker — A widget for picking days on which a certain event should take place

Synopsis




#define     HILDON_WEEKDAY_PICKER_TYPE
GtkWidget*  hildon_weekday_picker_new       (void);
void        hildon_weekday_picker_set_day   (HildonWeekdayPicker *picker,
                                             GDateWeekday day);
void        hildon_weekday_picker_unset_day (HildonWeekdayPicker *picker,
                                             GDateWeekday day);
void        hildon_weekday_picker_toggle_day
                                            (HildonWeekdayPicker *picker,
                                             GDateWeekday day);
void        hildon_weekday_picker_set_all   (HildonWeekdayPicker *picker);
void        hildon_weekday_picker_unset_all (HildonWeekdayPicker *picker);
gboolean    hildon_weekday_picker_isset_day (HildonWeekdayPicker *picker,
                                             GDateWeekday day);

Description

HildonWeekdayPicker supports non-mutually exclusive selection of days of the week. Selected days of the week are shown with a pushed-in effect.

HildonWeekdayPicker is used where users are required to pick days on which a certain event should take place, for example, which days a Calendar event should be repeated on. It is used in Calendar in the Repeat dialog, in Tasks in the Repeat dialog and in the Email set-up wizard.

Example function calls:
	gint i;
	HildonWeekdayPicker *picker = hildon_weekday_picker_new();

	hildon_weekday_picker_set_day( picker, i );
	hildon_weekday_picker_unset_day( picker, i );
	hildon_weekday_picker_toggle_day( picker, i );
	hildon_weekday_picker_set_all( picker );
  hildon_weekday_picker_unset_all( picker );

Details

HILDON_WEEKDAY_PICKER_TYPE

#define HILDON_WEEKDAY_PICKER_TYPE HILDON_TYPE_WEEKDAY_PICKER

Warning

HILDON_WEEKDAY_PICKER_TYPE is deprecated and should not be used in newly-written code. use HILDON_TYPE_WEEKDAY_PICKER instead.


hildon_weekday_picker_new ()

GtkWidget*  hildon_weekday_picker_new       (void);

Creates a new HildonWeekdayPicker.

Returns : New HildonWeekdayPicker.

hildon_weekday_picker_set_day ()

void        hildon_weekday_picker_set_day   (HildonWeekdayPicker *picker,
                                             GDateWeekday day);

Select specified weekday.

picker : HildonWeekdayPicker.
day : GDateWeekday.

hildon_weekday_picker_unset_day ()

void        hildon_weekday_picker_unset_day (HildonWeekdayPicker *picker,
                                             GDateWeekday day);

Unselect specified weekday.

picker : HildonWeekdayPicker.
day : GDateWeekday.

hildon_weekday_picker_toggle_day ()

void        hildon_weekday_picker_toggle_day
                                            (HildonWeekdayPicker *picker,
                                             GDateWeekday day);

Toggle current status of the specified weekday.

picker : HildonWeekdayPicker.
day : GDateWeekday.

hildon_weekday_picker_set_all ()

void        hildon_weekday_picker_set_all   (HildonWeekdayPicker *picker);

Select all weekdays.

picker : HildonWeekdayPicker.

hildon_weekday_picker_unset_all ()

void        hildon_weekday_picker_unset_all (HildonWeekdayPicker *picker);

Unselect all weekdays.

picker : HildonWeekdayPicker.

hildon_weekday_picker_isset_day ()

gboolean    hildon_weekday_picker_isset_day (HildonWeekdayPicker *picker,
                                             GDateWeekday day);

Check if the specified weekday is set.

picker : HildonWeekdayPicker.
day : GDateWeekday.
Returns : Set/not set.

See Also

HildonWeekdayPicker