1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Displays a calendar and allows the user to select a date
7 <!-- ##### SECTION Long_Description ##### -->
9 #GtkCalendar is a widget that displays a calendar, one month at a time.
10 It can be created with gtk_calendar_new().
13 The month and year currently displayed can be altered with
14 gtk_calendar_select_month(). The exact day can be selected from the displayed
15 month using gtk_calendar_select_day().
18 To place a visual marker on a particular day, use gtk_calendar_mark_day()
19 and to remove the marker, gtk_calendar_unmark_day().
20 Alternative, all marks can be cleared with gtk_calendar_clear_marks().
23 The way in which the calendar itself is displayed can be altered using
24 gtk_calendar_set_display_options().
27 The selected date can be retrieved from a #GtkCalendar using
28 gtk_calendar_get_date().
31 <!-- ##### SECTION See_Also ##### -->
36 <!-- ##### SECTION Stability_Level ##### -->
39 <!-- ##### STRUCT GtkCalendar ##### -->
41 <structfield>num_marked_dates</structfield> is an integer containing the
42 number of days that have a mark over them.
45 <structfield>marked_date</structfield> is an array containing the day numbers
46 that currently have a mark over them.
49 <structfield>month</structfield>, <structfield>year</structfield>, and
50 <structfield>selected_day</structfield> contain the currently visible month,
51 year, and selected day respectively.
54 All of these fields should be considered read only, and everything in this
55 struct should only be modified using the functions provided below.
59 Note that <structfield>month</structfield> is zero-based (i.e it allowed values
60 are 0-11) while <structfield>selected_day</structfield> is one-based
61 (i.e. allowed values are 1-31).
66 <!-- ##### SIGNAL GtkCalendar::day-selected ##### -->
68 Emitted when the user selects a day.
71 @calendar: the object which received the signal.
73 <!-- ##### SIGNAL GtkCalendar::day-selected-double-click ##### -->
78 @calendar: the object which received the signal.
80 <!-- ##### SIGNAL GtkCalendar::month-changed ##### -->
82 Emitted when the user clicks a button to change the selected month on a
86 @calendar: the object which received the signal.
88 <!-- ##### SIGNAL GtkCalendar::next-month ##### -->
93 @calendar: the object which received the signal.
95 <!-- ##### SIGNAL GtkCalendar::next-year ##### -->
100 @calendar: the object which received the signal.
102 <!-- ##### SIGNAL GtkCalendar::prev-month ##### -->
107 @calendar: the object which received the signal.
109 <!-- ##### SIGNAL GtkCalendar::prev-year ##### -->
114 @calendar: the object which received the signal.
116 <!-- ##### ARG GtkCalendar:day ##### -->
121 <!-- ##### ARG GtkCalendar:detail-height-rows ##### -->
126 <!-- ##### ARG GtkCalendar:detail-width-chars ##### -->
131 <!-- ##### ARG GtkCalendar:month ##### -->
136 <!-- ##### ARG GtkCalendar:no-month-change ##### -->
141 <!-- ##### ARG GtkCalendar:show-day-names ##### -->
146 <!-- ##### ARG GtkCalendar:show-details ##### -->
151 <!-- ##### ARG GtkCalendar:show-heading ##### -->
156 <!-- ##### ARG GtkCalendar:show-week-numbers ##### -->
161 <!-- ##### ARG GtkCalendar:year ##### -->
166 <!-- ##### USER_FUNCTION GtkCalendarDetailFunc ##### -->
179 <!-- ##### ENUM GtkCalendarDisplayOptions ##### -->
183 @GTK_CALENDAR_SHOW_HEADING:
184 @GTK_CALENDAR_SHOW_DAY_NAMES:
185 @GTK_CALENDAR_NO_MONTH_CHANGE:
186 @GTK_CALENDAR_SHOW_WEEK_NUMBERS:
187 @GTK_CALENDAR_WEEK_START_MONDAY:
188 @GTK_CALENDAR_SHOW_DETAILS:
190 <!-- ##### FUNCTION gtk_calendar_new ##### -->
197 <!-- ##### FUNCTION gtk_calendar_select_month ##### -->
207 <!-- ##### FUNCTION gtk_calendar_select_day ##### -->
215 <!-- ##### FUNCTION gtk_calendar_mark_day ##### -->
224 <!-- ##### FUNCTION gtk_calendar_unmark_day ##### -->
233 <!-- ##### FUNCTION gtk_calendar_clear_marks ##### -->
240 <!-- ##### FUNCTION gtk_calendar_get_display_options ##### -->
249 <!-- ##### FUNCTION gtk_calendar_set_display_options ##### -->
258 <!-- ##### FUNCTION gtk_calendar_get_date ##### -->
268 <!-- ##### FUNCTION gtk_calendar_set_detail_func ##### -->
279 <!-- ##### FUNCTION gtk_calendar_get_detail_width_chars ##### -->
288 <!-- ##### FUNCTION gtk_calendar_set_detail_width_chars ##### -->
297 <!-- ##### FUNCTION gtk_calendar_get_detail_height_rows ##### -->
306 <!-- ##### FUNCTION gtk_calendar_set_detail_height_rows ##### -->
315 <!-- ##### FUNCTION gtk_calendar_display_options ##### -->
323 <!-- ##### FUNCTION gtk_calendar_freeze ##### -->
330 <!-- ##### FUNCTION gtk_calendar_thaw ##### -->