1Gtk2::Calendar(3) User Contributed Perl Documentation Gtk2::Calendar(3)
2
3
4
6 Gtk2::Calendar - wrapper for GtkCalendar
7
9 Glib::Object
10 +----Glib::InitiallyUnowned
11 +----Gtk2::Object
12 +----Gtk2::Widget
13 +----Gtk2::Calendar
14
16 Glib::Object::_Unregistered::AtkImplementorIface
17 Gtk2::Buildable
18
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
82 'day' (integer : default 0 : readable / writable / private)
83 The selected day (as a number between 1 and 31, or 0 to unselect
84 the currently selected day)
85
86 'detail-height-rows' (integer : default 0 : readable / writable /
87 private)
88 Details height in rows
89
90 'detail-width-chars' (integer : default 0 : readable / writable /
91 private)
92 Details width in characters
93
94 'month' (integer : default 0 : readable / writable / private)
95 The selected month (as a number between 0 and 11)
96
97 'no-month-change' (boolean : default false : readable / writable /
98 private)
99 If TRUE, the selected month cannot be changed
100
101 'show-day-names' (boolean : default true : readable / writable /
102 private)
103 If TRUE, day names are displayed
104
105 'show-details' (boolean : default true : readable / writable / private)
106 If TRUE, details are shown
107
108 'show-heading' (boolean : default true : readable / writable / private)
109 If TRUE, a heading is displayed
110
111 'show-week-numbers' (boolean : default false : readable / writable /
112 private)
113 If TRUE, week numbers are displayed
114
115 'year' (integer : default 0 : readable / writable / private)
116 The selected year
117
119 'horizontal-separation' (integer : default 4 : readable / private)
120 Space between week headers and main area
121
122 'inner-border' (integer : default 4 : readable / private)
123 Inner border space
124
125 'vertical-separation' (integer : default 4 : readable / private)
126 Space between day headers and main area
127
129 day-selected (Gtk2::Calendar)
130 day-selected-double-click (Gtk2::Calendar)
131 month-changed (Gtk2::Calendar)
132 next-month (Gtk2::Calendar)
133 next-year (Gtk2::Calendar)
134 prev-month (Gtk2::Calendar)
135 prev-year (Gtk2::Calendar)
136
138 flags Gtk2::CalendarDisplayOptions
139 · 'show-heading' / 'GTK_CALENDAR_SHOW_HEADING'
140
141 · 'show-day-names' / 'GTK_CALENDAR_SHOW_DAY_NAMES'
142
143 · 'no-month-change' / 'GTK_CALENDAR_NO_MONTH_CHANGE'
144
145 · 'show-week-numbers' / 'GTK_CALENDAR_SHOW_WEEK_NUMBERS'
146
147 · 'week-start-monday' / 'GTK_CALENDAR_WEEK_START_MONDAY'
148
149 · 'show-details' / 'GTK_CALENDAR_SHOW_DETAILS'
150
152 Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
153
155 Copyright (C) 2003-2011 by the gtk2-perl team.
156
157 This software is licensed under the LGPL. See Gtk2 for a full notice.
158
159
160
161perl v5.30.0 2019-07-26 Gtk2::Calendar(3)