package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Calendar/index.html
Module Wrappers.Calendar
type t = [ `calendar | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : unit -> tCreate a new Calendar
val unmark_day : t -> int -> unitRemoves the visual marker from a particular day.
val set_year : t -> int -> unitSets the year for the selected date.
The new date must be valid. For example, setting 2023 for the year when then the date is 2024-02-29, fails.
val set_show_week_numbers : t -> bool -> unitSets whether week numbers are shown in the calendar.
val set_show_heading : t -> bool -> unitSets whether the calendar should show a heading.
The heading contains the current year and month as well as buttons for changing both.
val set_show_day_names : t -> bool -> unitSets whether the calendar shows day names.
val set_month : t -> int -> unitSets the month for the selected date.
The new date must be valid. For example, setting 1 (February) for the month when the day is 31, fails.
val set_day : t -> int -> unitSets the day for the selected date.
The new date must be valid. For example, setting 31 for the day when the month is February, fails.
val mark_day : t -> int -> unitPlaces a visual marker on a particular day of the current month.
val get_year : t -> intGets the year of the selected date.
val get_show_week_numbers : t -> boolReturns whether @self is showing week numbers right now.
This is the value of the property@Gtk.Calendar:show-week-numbers property.
val get_show_heading : t -> boolReturns whether @self is currently showing the heading.
This is the value of the property@Gtk.Calendar:show-heading property.
val get_show_day_names : t -> boolReturns whether @self is currently showing the names of the week days.
This is the value of the property@Gtk.Calendar:show-day-names property.
val get_month : t -> intGets the month of the selected date.
val get_day_is_marked : t -> int -> boolReturns if the @day of the @calendar is already marked.
val get_day : t -> intGets the day of the selected date.
val clear_marks : t -> unitRemove all visual markers.
val on_day_selected :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_next_month :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_next_year :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_prev_month :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_idval on_prev_year :
?after:bool ->
t ->
callback:(unit -> unit) ->
Gobject.Signal.handler_id