1Gtk2::Calendar(3)     User Contributed Perl Documentation    Gtk2::Calendar(3)
2
3
4

NAME

6       Gtk2::Calendar - wrapper for GtkCalendar
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Calendar
14

INTERFACES

16         Glib::Object::_Unregistered::AtkImplementorIface
17         Gtk2::Buildable
18

METHODS

20   widget = Gtk2::Calendar->new
21   $calendar->clear_marks
22   (year, month, day) = $calendar->get_date
23   $calendar->set_detail_func ($func, $data=undef)
24       •   $func (scalar)
25
26       •   $data (scalar)
27
28       Since: gtk+ 2.14
29
30   integer = $calendar->get_detail_height_rows
31       Since: gtk+ 2.14
32
33   $calendar->set_detail_height_rows ($rows)
34       •   $rows (integer)
35
36       Since: gtk+ 2.14
37
38   integer = $calendar->get_detail_width_chars
39       Since: gtk+ 2.14
40
41   $calendar->set_detail_width_chars ($chars)
42       •   $chars (integer)
43
44       Since: gtk+ 2.14
45
46   $calendar->display_options ($flags)
47       •   $flags (Gtk2::CalendarDisplayOptions)
48
49       The old name for "set_display_options".
50
51   calendardisplayoptions = $calendar->get_display_options
52   $calendar->set_display_options ($flags)
53       •   $flags (Gtk2::CalendarDisplayOptions)
54
55   $calendar->freeze
56   boolean = $calendar->mark_day ($day)
57       •   $day (integer)
58
59   $widget->marked_date ($value)
60   value = $widget->marked_date
61   $widget->month ($value)
62   value = $widget->month
63   $widget->num_marked_dates ($value)
64   value = $widget->num_marked_dates
65   $calendar->select_day ($day)
66       •   $day (integer)
67
68   boolean = $calendar->select_month ($month, $year)
69       •   $month (integer)
70
71       •   $year (integer)
72
73   $widget->selected_day ($value)
74   value = $widget->selected_day
75   $calendar->thaw
76   boolean = $calendar->unmark_day ($day)
77       •   $day (integer)
78
79   $widget->year ($value)
80   value = $widget->year

PROPERTIES

82       'day' (integer : default 0 : readable / writable / private / static-
83       nick / static-blurb)
84           The selected day (as a number between 1 and 31, or 0 to unselect
85           the currently selected day)
86
87       'detail-height-rows' (integer : default 0 : readable / writable /
88       private / static-nick / static-blurb)
89           Details height in rows
90
91       'detail-width-chars' (integer : default 0 : readable / writable /
92       private / static-nick / static-blurb)
93           Details width in characters
94
95       'month' (integer : default 0 : readable / writable / private / static-
96       nick / static-blurb)
97           The selected month (as a number between 0 and 11)
98
99       'no-month-change' (boolean : default false : readable / writable /
100       private / static-nick / static-blurb)
101           If TRUE, the selected month cannot be changed
102
103       'show-day-names' (boolean : default true : readable / writable /
104       private / static-nick / static-blurb)
105           If TRUE, day names are displayed
106
107       'show-details' (boolean : default true : readable / writable / private
108       / static-nick / static-blurb)
109           If TRUE, details are shown
110
111       'show-heading' (boolean : default true : readable / writable / private
112       / static-nick / static-blurb)
113           If TRUE, a heading is displayed
114
115       'show-week-numbers' (boolean : default false : readable / writable /
116       private / static-nick / static-blurb)
117           If TRUE, week numbers are displayed
118
119       'year' (integer : default 0 : readable / writable / private / static-
120       nick / static-blurb)
121           The selected year
122

STYLE PROPERTIES

124       'horizontal-separation' (integer : default 4 : readable / private /
125       static-nick / static-blurb)
126           Space between week headers and main area
127
128       'inner-border' (integer : default 4 : readable / private / static-nick
129       / static-blurb)
130           Inner border space
131
132       'vertical-separation' (integer : default 4 : readable / private /
133       static-nick / static-blurb)
134           Space between day headers and main area
135

SIGNALS

137       day-selected (Gtk2::Calendar)
138       day-selected-double-click (Gtk2::Calendar)
139       month-changed (Gtk2::Calendar)
140       next-month (Gtk2::Calendar)
141       next-year (Gtk2::Calendar)
142       prev-month (Gtk2::Calendar)
143       prev-year (Gtk2::Calendar)
144

ENUMS AND FLAGS

146   flags Gtk2::CalendarDisplayOptions
147       •   'show-heading' / 'GTK_CALENDAR_SHOW_HEADING'
148
149       •   'show-day-names' / 'GTK_CALENDAR_SHOW_DAY_NAMES'
150
151       •   'no-month-change' / 'GTK_CALENDAR_NO_MONTH_CHANGE'
152
153       •   'show-week-numbers' / 'GTK_CALENDAR_SHOW_WEEK_NUMBERS'
154
155       •   'week-start-monday' / 'GTK_CALENDAR_WEEK_START_MONDAY'
156
157       •   'show-details' / 'GTK_CALENDAR_SHOW_DETAILS'
158

SEE ALSO

160       Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
161
163       Copyright (C) 2003-2011 by the gtk2-perl team.
164
165       This software is licensed under the LGPL.  See Gtk2 for a full notice.
166
167
168
169perl v5.36.0                      2023-01-20                 Gtk2::Calendar(3)
Impressum