package stk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stk.DatetimeSource

Widgets for date and time display and edition.

Sourcemodule PPair_int : sig ... end
Sourcetype month = int * int

A month is (year * month (1..12))

Sourceval p_month : month Props.prop

Property used to store the month displayed by a calendar.

Sourcemodule PDate : sig ... end
Sourcemodule PDates : sig ... end
Sourcetype date = int * int * int

Date time, in the form (year, month(1..12), day(1..31)).

Sourceval p_selected_dates : date list Props.prop
Sourcetype Events.ev +=
  1. | Date_selected : (date -> unit) Events.ev
  2. | Date_unselected : (date -> unit) Events.ev
Sourcetype weekday = [
  1. | `Mon
  2. | `Tue
  3. | `Wed
  4. | `Thu
  5. | `Fri
  6. | `Sat
  7. | `Sun
]
Sourceval wdays : string array
Sourceval months : string array
Sourceval array_get_opt : int -> 'a array -> 'a option
Sourceval string_of_weekday_int : int -> string
Sourceval int_of_weekday : [< `Fri | `Mon | `Sat | `Sun | `Thu | `Tue | `Wed ] -> int
Sourceval weekday_of_int : int -> [> `Fri | `Mon | `Sat | `Sun | `Thu | `Tue | `Wed ]
Sourceval string_of_weekday : weekday -> string
Sourceval short_string_of_weekday_int : int -> string
Sourceval short_string_of_weekday : weekday -> string
Sourceval string_of_month : int -> string
Sourceval today : unit -> Ptime.date
Sourceclass calendar : ?class_:string option -> ?name:string option -> ?props:Props.t option -> ?wdata: Widget.wdata option -> unit -> object ... end
Sourceval calendar : ?class_:string -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?pack:(Widget.widget -> unit) -> unit -> calendar
Sourceval dialog_calendar : ?classes:string list -> ?cal_class:string -> ?behaviour: [ `Destroy_on_return | `Hide_on_return | `Modal_for of Window.window ] -> ?flags:Tsdl.Sdl.Window.flags -> ?rflags:Tsdl.Sdl.Renderer.flags -> ?resizable:bool -> ?x:int -> ?y:int -> ?w:int -> ?h:int -> ?selected_dates:Ptime.date list -> ?allow_multiple:bool -> string -> 'a Dialog.dialog * calendar
Sourceval dialog_select_date : ?classes:string list -> ?cal_class:string -> ?behaviour: [ `Destroy_on_return | `Hide_on_return | `Modal_for of Window.window ] -> ?flags:Tsdl.Sdl.Window.flags -> ?rflags:Tsdl.Sdl.Renderer.flags -> ?resizable:bool -> ?x:int -> ?y:int -> ?w:int -> ?h:int -> ?ok:string -> ?cancel:string -> ?selected_date:Ptime.date -> string -> date option Dialog.dialog * calendar
Sourceval dialog_select_dates : ?classes:string list -> ?cal_class:string -> ?behaviour: [ `Destroy_on_return | `Hide_on_return | `Modal_for of Window.window ] -> ?flags:Tsdl.Sdl.Window.flags -> ?rflags:Tsdl.Sdl.Renderer.flags -> ?resizable:bool -> ?x:int -> ?y:int -> ?w:int -> ?h:int -> ?ok:string -> ?cancel:string -> ?selected_dates:Ptime.date list -> string -> date list Dialog.dialog * calendar
Sourcetype Widget.wdata +=
  1. | Date of date
Sourceval p_allow_none : bool Props.prop

Property used in date_label to indicate whether no date can be selected.

Sourceval date_label : ?classes:string list -> ?name:string -> ?props:Props.t -> ?date:date -> ?allow_none:bool -> ?pack:(Widget.widget -> unit) -> ?button_text:string -> unit -> Text.label * (unit -> date option) * (date option -> unit) * Box.box
OCaml

Innovation. Community. Security.