![]() |
![]() |
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 () | |||
void | display_options (CalendarDisplayOptions flags) | |||
void | freeze () | |||
void | get_date (guint& year, guint& month, guint& day) const | |||
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) | |||
void | select_day (guint day) | |||
int | select_month (guint month, guint year) | |||
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 () | |||
int | unmark_day (guint day) | |||
virtual | ~Calendar () | |||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Gtk::Calendar* | wrap (GtkCalendar* object, bool take_copy=false) | |||
|
virtual Gtk::Calendar::~Calendar | ( | ) | [virtual] |
Gtk::Calendar::Calendar | ( | ) |
void Gtk::Calendar::clear_marks | ( | ) |
void Gtk::Calendar::display_options | ( | CalendarDisplayOptions | flags | ) |
void Gtk::Calendar::freeze | ( | ) |
void Gtk::Calendar::get_date | ( | guint & | year, | |
guint & | month, | |||
guint & | day | |||
) | const |
CalendarDisplayOptions Gtk::Calendar::get_display_options | ( | ) | const |
Returns the current display options of calendar .
const GtkCalendar* Gtk::Calendar::gobj | ( | ) | const [inline] |
GtkCalendar* Gtk::Calendar::gobj | ( | ) | [inline] |
int Gtk::Calendar::mark_day | ( | guint | day | ) |
void Gtk::Calendar::select_day | ( | guint | day | ) |
int Gtk::Calendar::select_month | ( | guint | month, | |
guint | year | |||
) |
void Gtk::Calendar::set_display_options | ( | CalendarDisplayOptions | flags | ) |
Sets display options (whether to display the heading and the month headings).
flags | The display options to set. |
Glib::SignalProxy0< void > Gtk::Calendar::signal_day_selected | ( | ) |
void day_selected()
Glib::SignalProxy0< void > Gtk::Calendar::signal_day_selected_double_click | ( | ) |
void day_selected_double_click()
Glib::SignalProxy0< void > Gtk::Calendar::signal_month_changed | ( | ) |
void month_changed()
Glib::SignalProxy0< void > Gtk::Calendar::signal_next_month | ( | ) |
void next_month()
Glib::SignalProxy0< void > Gtk::Calendar::signal_next_year | ( | ) |
void next_year()
Glib::SignalProxy0< void > Gtk::Calendar::signal_prev_month | ( | ) |
void prev_month()
Glib::SignalProxy0< void > Gtk::Calendar::signal_prev_year | ( | ) |
void prev_year()
void Gtk::Calendar::thaw | ( | ) |
int Gtk::Calendar::unmark_day | ( | guint | day | ) |
Gtk::Calendar* wrap | ( | GtkCalendar * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |