GtkCalendar {RGtk2} | R Documentation |
Displays a calendar and allows the user to select a date
gtkCalendarNew(show = TRUE)
gtkCalendarSelectMonth(object, month, year)
gtkCalendarSelectDay(object, day)
gtkCalendarMarkDay(object, day)
gtkCalendarUnmarkDay(object, day)
gtkCalendarClearMarks(object)
gtkCalendarGetDisplayOptions(object)
gtkCalendarSetDisplayOptions(object, flags)
gtkCalendarDisplayOptions(object, flags)
gtkCalendarGetDate(object)
gtkCalendarFreeze(object)
gtkCalendarThaw(object)
gtkCalendar(show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkCalendar
GtkCalendar implements
GtkBuildable
and AtkImplementorIface.
GtkCalendar
is a widget that displays a calendar, one month at a time.
It can be created with gtkCalendarNew
.
The month and year currently displayed can be altered with
gtkCalendarSelectMonth
. The exact day can be selected from the displayed
month using gtkCalendarSelectDay
.
To place a visual marker on a particular day, use gtkCalendarMarkDay
and to remove the marker, gtkCalendarUnmarkDay
.
Alternative, all marks can be cleared with gtkCalendarClearMarks
.
The way in which the calendar itself is displayed can be altered using
gtkCalendarSetDisplayOptions
.
The selected date can be retrieved from a GtkCalendar
using
gtkCalendarGetDate
.
GtkCalendar
num_marked_dates
is an integer containing the
number of days that have a mark over them.
marked_date
is a list containing the day numbers
that currently have a mark over them.
month
, year
, and
selected_day
contain the currently visible month,
year, and selected day respectively.
All of these fields should be considered read only, and everything in this struct should only be modified using the functions provided below.
gtkCalendar
is the equivalent of gtkCalendarNew
.
GtkCalendarDisplayOptions
GtkCalendar
.
show-heading
show-day-names
no-month-change
show-week-numbers
week-start-monday
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
The (calendar, user.data)
calendar
GtkCalendar
] the object which received the signal.user.data
day
[integer : Read / Write]The selected day (as a number between 1 and 31, or 0 to unselect the currently selected day). Allowed values: [0,31] Default value: 0
month
[integer : Read / Write]The selected month (as a number between 0 and 11). Allowed values: [0,11] Default value: 0
no-month-change
[logical : Read / Write]Determines whether the selected month can be changed.
Default value: FALSE Since 2.4
show-day-names
[logical : Read / Write]Determines whether day names are displayed.
Default value: TRUE Since 2.4
show-heading
[logical : Read / Write]Determines whether a heading is displayed.
Default value: TRUE Since 2.4
show-week-numbers
[logical : Read / Write]Determines whether week numbers are displayed.
Default value: FALSE Since 2.4
year
[integer : Read / Write]The selected year. Allowed values: >= 0 Default value: 0
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/GtkCalendar.html