[855:7] extends: object
Generated low-level callback wrapper for GIR callback prev-year.
CalendarPrevyearCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[785:7] extends: object
Generated low-level callback wrapper for GIR callback prev-month.
CalendarPrevmonthCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[575:7] extends: object
Generated low-level callback wrapper for GIR callback day-selected.
CalendarDayselectedCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[925:14] static extends: object
Generated metadata helpers for Calendar class surfaces.
properties ()
Returns property metadata for
Calendar.
A list.signals ()
Returns signal metadata for
Calendar.
A list.[645:7] extends: object
Generated low-level callback wrapper for GIR callback next-month.
CalendarNextmonthCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[35:7] extends: object
Displays a Gregorian calendar, one month at a time.
GtkCalendar can be
created with [ctor@Gtk.Calendar.new]. The selected date can be retrieved from
a GtkCalendar using [method@Gtk.Calendar.get_date]. It can be altered with
[method@Gtk.Calendar.set_date]. To place a visual marker on a particular day,
use [method@Gtk.Calendar.mark_day] and to remove the marker,
[method@Gtk.Calendar.unmark_day]. Alternative, all marks can be cleared with
[method@Gtk.Calendar.clear_marks]. Users should be aware that, although the
Gregorian calendar is the legal calendar in most countries, it was adopted
progressively between 1582 and 1929. Display before these dates is likely to
be historically incorrect. # Shortcuts and Gestures GtkCalendar supports
the following gestures: - Scrolling up or down will switch to the previous or
next month. - Date strings can be dropped for setting the current day. # CSS
nodes calendar.view ├── header │ ├── button │ ├── stack.month │ ├── button │ ├── button │ ├── label.year │ ╰── button ╰── grid ╰── label[.day-name][.week-number][.day-number][.other-month][.today]
GtkCalendar has a main node with name calendar. It contains a subnode
called header containing the widgets for switching between years and months.
The grid subnode contains all day labels, including week numbers on the left
(marked with the .week-number css class) and day names on top (marked with
the .day-name css class). Day labels that belong to the previous or next
month get the .other-month style class. The label of the current day get the
.today style class. Marked day labels get the :selected state assigned.
Calendar ()
Creates a new calendar, with the current date being selected.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnDayselected (callback Fn, UserData = null)
Emitted when the user selects a day.
Fn is the Aussom callback.Fn is called with (Calendar Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnNextmonth (callback Fn, UserData = null)
Emitted when the user switches to the next month.
Fn is the Aussom callback.Fn is called with (Calendar Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnNextyear (callback Fn, UserData = null)
Emitted when user switches to the next year.
Fn is the Aussom callback.Fn is called with (Calendar Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnPrevmonth (callback Fn, UserData = null)
Emitted when the user switches to the previous month.
Fn is the Aussom callback.Fn is called with (Calendar Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnPrevyear (callback Fn, UserData = null)
Emitted when user switches to the previous year.
Fn is the Aussom callback.Fn is called with (Calendar Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setDate (object Value)
The selected date. This property gets initially set to the current date.
Value is the new property value.None.setDay (int Value)
The selected day (as a number between 1 and 31).
Value is the new property value.None.setMonth (int Value)
The selected month (as a number between 0 and 11). This property gets initially set to the current month.
Value is the new property value.None.setShowdaynames (bool Value)
Determines whether day names are displayed.
Value is the new property value.None.setShowheading (bool Value)
Determines whether a heading is displayed.
Value is the new property value.None.setShowweeknumbers (bool Value)
Determines whether week numbers are displayed.
Value is the new property value.None.setYear (int Value)
The selected year. This property gets initially set to the current year.
Value is the new property value.None.clear_marks ()
Remove all visual markers.
None.get_date ()
Returns a
GDateTimerepresenting the shown year, month and the selected day. The returned date is in the local time zone.
get_day ()
Gets the day of the selected date.
get_day_is_marked (int day)
Returns if the @day of the @calendar is already marked.
day is the day number between 1 and 31..get_month ()
Gets the month of the selected date.
get_show_day_names ()
Returns whether @self is currently showing the names of the week days. This is the value of the [property@Gtk.Calendar:show-day-names] property.
get_show_heading ()
Returns whether @self is currently showing the heading. This is the value of the [property@Gtk.Calendar:show-heading] property.
get_show_week_numbers ()
Returns whether @self is showing week numbers right now. This is the value of the [property@Gtk.Calendar:show-week-numbers] property.
get_year ()
Gets the year of the selected date.
mark_day (int day)
Places a visual marker on a particular day of the current month.
day is the day number to mark between 1 and 31..None.select_day (object date)
Switches to @date's year and month and select its day.
date is a GDateTime representing the day to select.None.set_date (object date)
Switches to @date's year and month and selects its day.
date is a GDateTime representing the day to select.None.set_day (int day)
Sets the day for the selected date. The new date must be valid. For example, setting the day to 31 when the month is February will fail.
day is The desired day for the selected date (as a number between 1 and 31)..None.set_month (int month)
Sets the month for the selected date. The new date must be valid. For example, setting the month to 1 (February) when the day is 31 will fail.
month is The desired month for the selected date (as a number between 0 and 11)..None.set_show_day_names (bool value)
Sets whether the calendar shows day names.
value is Whether to show day names above the day numbers.None.set_show_heading (bool value)
Sets whether the calendar should show a heading. The heading contains the current year and month as well as buttons for changing both.
value is Whether to show the heading in the calendar.None.set_show_week_numbers (bool value)
Sets whether week numbers are shown in the calendar.
value is whether to show week numbers alongside the days.None.set_year (int year)
Sets the year for the selected date. The new date must be valid. For example, setting the year to 2023 when the date is February 29 will fail.
year is The desired year for the selected date (within [struct@GLib.DateTime] limits, i.e. from 0001 to 9999)..None.unmark_day (int day)
Removes the visual marker from a particular day.
day is the day number to unmark between 1 and 31..None.[715:7] extends: object
Generated low-level callback wrapper for GIR callback next-year.
CalendarNextyearCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.