Rhombus

|
class gui.Label(): | implements WindowChildView | constructor ( | label :: ObsOrValue.of(View.LabelString), | ~color: color :: ObsOrValue.of(maybe(Color)) = #false, | ~font: font :: draw.Font = View.normal_control_font, | ~margin: margin :: ObsOrValue.of(View.Margin) = [2, 2], | ~min_size: min_size :: ObsOrValue.of(View.Size) = [#false, #false], | ~stretch: stretch :: ObsOrValue.of(View.Stretch) = [#true, #true], | ~styles: styles :: List.of(Progress.Style) = [#'horizontal], | ~window_callbacks: window_callbacks :: maybe(WindowCallbacks) = #false | ) |
|
|
|
|
Creates a text label.
The Label.at_label property returns an observable that is
updated whenever the label’s state changes through
label as an observable.