Class Index Cross Index Namespace Index

Class Gtk::Calendar

Display a calendar and/or allow the user to select a date.
Contained in: Gtk
Derived from: Widget
Derived by: none

#include <gtk--/calendar.h>


public function member index:

Calendar();
void clear_marks();
signal void day_selected();
signal void day_selected_double_click();
void display_options(GtkCalendarDisplayOptions flags);
void freeze();
void get_date(guint* year, guint* month, guint* day) const;
GtkCalendar* gtkobj();
const GtkCalendar* gtkobj() const;
static bool isA(Object* object);
gint mark_day(guint day);
signal void month_changed();
signal void next_month();
signal void next_year();
signal void prev_month();
signal void prev_year();
void select_day(guint day);
gint select_month(guint month, guint year);
void thaw();
gint unmark_day(guint day);
virtual ~Calendar();
 

protected function member index:

virtual void day_selected_double_click_impl();
virtual void day_selected_impl();
virtual void month_changed_impl();
virtual void next_month_impl();
virtual void next_year_impl();
virtual void prev_month_impl();
virtual void prev_year_impl();
 

Description:

Gtk_Calendar 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 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.


Function Member Descriptions:

Gtk::Calendar::gtkobj - Returns the underlaying gtk+ object.

GtkCalendar* gtkobj();

Gtk::Calendar::isA - Returns true if object is this type.

static bool isA(Object* object);