Class: Gtk::Calendar
- Inherits:
-
Object
- Object
- Gtk::Calendar
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#clear_marks ⇒ nil
Remove all visual markers.
-
#day ⇒ Integer
The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day).
-
#day=(day) ⇒ Integer
The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day).
-
#detail_height_rows ⇒ Integer
Height of a detail cell, in rows.
-
#detail_height_rows=(detail_height_rows) ⇒ Integer
Height of a detail cell, in rows.
-
#detail_width_chars ⇒ Integer
Width of a detail cell, in characters.
-
#detail_width_chars=(detail_width_chars) ⇒ Integer
Width of a detail cell, in characters.
-
#display_options ⇒ Gtk::CalendarDisplayOptions
Returns the current display options of calendar.
-
#display_options=(flags) ⇒ nil
Sets display options (whether to display the heading and the month headings).
-
#get_date(year, month, day) ⇒ nil
Obtains the selected date from a Gtk::Calendar.
-
#get_day_is_marked(day) ⇒ TrueClass
Returns if the day of the calendar is already marked.
-
#mark_day(day) ⇒ nil
Places a visual marker on a particular day.
-
#month ⇒ Integer
The selected month (as a number between 0 and 11).
-
#month=(month) ⇒ Integer
The selected month (as a number between 0 and 11).
-
#new ⇒ Gtk::Widget
Creates a new calendar, with the current date being selected.
-
#no_month_change=(no_month_change) ⇒ TrueClass
Determines whether the selected month can be changed.
-
#no_month_change? ⇒ TrueClass
Determines whether the selected month can be changed.
-
#select_day(day) ⇒ nil
Selects a day from the current month.
-
#select_month(month, year) ⇒ nil
Shifts the calendar to a different month.
-
#set_detail_func(func, data, destroy) ⇒ nil
Installs a function which provides Pango markup with detail information for each day.
-
#show_day_names=(show_day_names) ⇒ TrueClass
Determines whether day names are displayed.
-
#show_day_names? ⇒ TrueClass
Determines whether day names are displayed.
-
#show_details=(show_details) ⇒ TrueClass
Determines whether details are shown directly in the widget, or if they are available only as tooltip.
-
#show_details? ⇒ TrueClass
Determines whether details are shown directly in the widget, or if they are available only as tooltip.
-
#show_heading=(show_heading) ⇒ TrueClass
Determines whether a heading is displayed.
-
#show_heading? ⇒ TrueClass
Determines whether a heading is displayed.
-
#show_week_numbers=(show_week_numbers) ⇒ TrueClass
Determines whether week numbers are displayed.
-
#show_week_numbers? ⇒ TrueClass
Determines whether week numbers are displayed.
-
#unmark_day(day) ⇒ nil
Removes the visual marker from a particular day.
-
#year ⇒ Integer
The selected year.
-
#year=(year) ⇒ Integer
The selected year.
Instance Method Details
#clear_marks ⇒ nil
Remove all visual markers.
#day ⇒ Integer
The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day). This property gets initially set to the current day.
#day=(day) ⇒ Integer
The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day). This property gets initially set to the current day.
#detail_height_rows ⇒ Integer
Height of a detail cell, in rows. A value of 0 allows any width. See gtk_calendar_set_detail_func().
#detail_height_rows=(detail_height_rows) ⇒ Integer
Height of a detail cell, in rows. A value of 0 allows any width. See gtk_calendar_set_detail_func().
#detail_width_chars ⇒ Integer
Width of a detail cell, in characters. A value of 0 allows any width. See gtk_calendar_set_detail_func().
#detail_width_chars=(detail_width_chars) ⇒ Integer
Width of a detail cell, in characters. A value of 0 allows any width. See gtk_calendar_set_detail_func().
#display_options ⇒ Gtk::CalendarDisplayOptions
Returns the current display options of calendar.
#display_options=(flags) ⇒ nil
Sets display options (whether to display the heading and the month headings).
#get_date(year, month, day) ⇒ nil
Obtains the selected date from a Gtk::Calendar.
#get_day_is_marked(day) ⇒ TrueClass
Returns if the day of the calendar is already marked.
#mark_day(day) ⇒ nil
Places a visual marker on a particular day.
#month ⇒ Integer
The selected month (as a number between 0 and 11). This property gets initially set to the current month.
#month=(month) ⇒ Integer
The selected month (as a number between 0 and 11). This property gets initially set to the current month.
#new ⇒ Gtk::Widget
Creates a new calendar, with the current date being selected.
#no_month_change=(no_month_change) ⇒ TrueClass
Determines whether the selected month can be changed.
#no_month_change? ⇒ TrueClass
Determines whether the selected month can be changed.
#select_day(day) ⇒ nil
Selects a day from the current month.
#select_month(month, year) ⇒ nil
Shifts the calendar to a different month.
#set_detail_func(func, data, destroy) ⇒ nil
Installs a function which provides Pango markup with detail information for each day. Examples for such details are holidays or appointments. That information is shown below each day when Gtk::Calendar:show-details is set. A tooltip containing with full detail information is provided, if the entire text should not fit into the details area, or if Gtk::Calendar:show-details is not set.
The size of the details area can be restricted by setting the Gtk::Calendar:detail-width-chars and #GtkCalendar:detail-height-rows properties.
#show_day_names=(show_day_names) ⇒ TrueClass
Determines whether day names are displayed.
#show_day_names? ⇒ TrueClass
Determines whether day names are displayed.
#show_details=(show_details) ⇒ TrueClass
Determines whether details are shown directly in the widget, or if they are available only as tooltip. When this property is set days with details are marked.
#show_details? ⇒ TrueClass
Determines whether details are shown directly in the widget, or if they are available only as tooltip. When this property is set days with details are marked.
#show_heading=(show_heading) ⇒ TrueClass
Determines whether a heading is displayed.
#show_heading? ⇒ TrueClass
Determines whether a heading is displayed.
#show_week_numbers=(show_week_numbers) ⇒ TrueClass
Determines whether week numbers are displayed.
#show_week_numbers? ⇒ TrueClass
Determines whether week numbers are displayed.
#unmark_day(day) ⇒ nil
Removes the visual marker from a particular day.
#year ⇒ Integer
The selected year. This property gets initially set to the current year.
#year=(year) ⇒ Integer
The selected year. This property gets initially set to the current year.