package stk

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

Module Stk.TextSource

Simple widgets to display text.

Sourceclass textured_text : unit -> object ... end

Class used internally to cache text rendering.

Sourceclass label : ?class_:string option -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

Label widget, displaying a single line text.

Sourceval label : ?class_:string -> ?name:string -> ?props:Props.t -> ?halign:float -> ?valign:float -> ?text:string -> ?pack:(Widget.widget -> unit) -> unit -> label

Convenient function to create a label. Props.halign, Props.valign and Props.text properties can be specified with the corresponding optional arguments. See Widget arguments for other arguments.

Sourcemodule Status_msg_id : sig ... end
Sourcetype status_msg_id = Status_msg_id.t
Sourceclass status : ?class_:string option -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

A status is a label where messages can be stacked. Only the message at the top of the stack is displayed. Each message has an id, which can be used to remove the message even if not on top of the stack.

Sourceval status : ?class_:string -> ?name:string -> ?props:Props.t -> ?pack:(Widget.widget -> unit) -> unit -> status

Convenient function to create a status. See Widget arguments for arguments.

Sourceclass textured_glyph : unit -> object ... end

Class used internally to cache rendering of glyphs.

Sourceclass glyph : ?class_:string option -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

Widget to render a single glyph.

Sourceval glyph : ?class_:string -> ?name:string -> ?props:Props.t -> ?glyph:int -> ?pack:(Widget.widget -> unit) -> unit -> glyph

Convenient function to create a glyph. Props.glyph property can be specified with the corresponding optional argument. See Widget arguments for other arguments.