![]() |
This is a widget that displays a calendar, one month at a time.
The month and year currently displayed can be altered with select_month(). The exact day can be selected from the displayed month using select_day().
The way in which the calendar itself is displayed can be altered using set_display_options().
The selected date can be retrieved from a GtkCalendar using get_date().
If performing many 'mark' operations, the calendar can be frozen to prevent flicker, using freeze(), and 'thawed' again using thaw().
Public Member Functions | |
| Calendar () | |
| void | clear_marks () |
| Remove all visual markers. | |
| void | display_options (CalendarDisplayOptions flags) |
| Sets display options (whether to display the heading and the month headings). | |
| void | freeze () |
| Does nothing. | |
| void | get_date (guint& year, guint& month, guint& day) const |
| Obtains the selected date from a Gtk::Calendar. | |
| CalendarDisplayOptions | get_display_options () const |
| Returns the current display options of calendar . | |
| const GtkCalendar* | gobj () const |
| Provides access to the underlying C GtkObject. | |
| GtkCalendar* | gobj () |
| Provides access to the underlying C GtkObject. | |
| int | mark_day (guint day) |
| Places a visual marker on a particular day. | |
| void | select_day (guint day) |
| Selects a day from the current month. | |
| int | select_month (guint month, guint year) |
| Shifts the calendar to a different month. | |
| void | set_display_options (CalendarDisplayOptions flags) |
| Sets display options (whether to display the heading and the month headings). | |
| Glib::SignalProxy0<void> | signal_day_selected () |
| Glib::SignalProxy0<void> | signal_day_selected_double_click () |
| Glib::SignalProxy0<void> | signal_month_changed () |
| Glib::SignalProxy0<void> | signal_next_month () |
| Glib::SignalProxy0<void> | signal_next_year () |
| Glib::SignalProxy0<void> | signal_prev_month () |
| Glib::SignalProxy0<void> | signal_prev_year () |
| void | thaw () |
| Does nothing. | |
| int | unmark_day (guint day) |
| Removes the visual marker from a particular day. | |
| virtual | ~Calendar () |
Protected Member Functions | |
| virtual void | on_day_selected () |
| virtual void | on_day_selected_double_click () |
| virtual void | on_month_changed () |
| virtual void | on_next_month () |
| virtual void | on_next_year () |
| virtual void | on_prev_month () |
| virtual void | on_prev_year () |
Related Functions | |
| (Note that these are not member functions.) | |
| Gtk::Calendar* | wrap (GtkCalendar* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
Remove all visual markers.
|
|
|
Sets display options (whether to display the heading and the month headings). Deprecated: Use set_display_options() instead
|
|
|
Does nothing. Previously locked the display of the calendar until it was thawed with thaw(). |
|
||||||||||||||||
|
Obtains the selected date from a Gtk::Calendar.
|
|
|
Returns the current display options of calendar .
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Widget. |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Widget. |
|
|
Places a visual marker on a particular day.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Selects a day from the current month.
|
|
||||||||||||
|
Shifts the calendar to a different month.
|
|
|
Sets display options (whether to display the heading and the month headings). Since: 2.4
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Does nothing. Previously defrosted a calendar; all the changes made since the last freeze() were displayed. |
|
|
Removes the visual marker from a particular day.
|
|
||||||||||||
|
|