package bogue

  1. Overview
  2. Docs

Module Bogue.LabelSource

One-line text widget

A Label is a widget for displaying a single line of text.

Dependency graph
Sourcetype t
Sourcetype font
Sourceval create : ?size:int -> ?font:font -> ?style:Tsdl_ttf.Ttf.Style.t -> ?fg:Draw.color -> string -> t

Create a new Label.t. Most of the time, you'd rather want to create a Widget.t by using Widget.label.

Sourceval icon : ?size:int -> ?fg:Draw.color -> string -> t

Create a Label.t using the name of a FontAwesome symbol. Most of the time, you'd rather want to create a Widget.t by using Widget.icon.

Sourceval set : t -> string -> unit

Modify the text of the label.

Sourceval set_fg_color : t -> Draw.color -> unit

Modify the color of the text.

Sourceval size : t -> int * int

Return the logical size (w,h). Warning, a +/- 1 error can be observed due to rounding.