plushie/widget/checkbox
Checkbox widget builder.
Types
Custom icon for the checkbox check mark.
pub type CheckboxIcon {
CheckboxIcon(
code_point: String,
size: option.Option(Float),
line_height: option.Option(Float),
font: option.Option(font.Font),
shaping: option.Option(shaping.Shaping),
)
}
Constructors
-
CheckboxIcon( code_point: String, size: option.Option(Float), line_height: option.Option(Float), font: option.Option(font.Font), shaping: option.Option(shaping.Shaping), )
Values
pub fn new(
id: String,
label: String,
is_toggled: Bool,
) -> Checkbox
Create a new checkbox builder.
pub fn shaping(cb: Checkbox, s: shaping.Shaping) -> Checkbox
Set the text shaping strategy.
pub fn wrapping(cb: Checkbox, w: wrapping.Wrapping) -> Checkbox
Set the text wrapping mode.