[]Struct orbtk::CheckBox

pub struct CheckBox { /* fields omitted */ }

The CheckBox widget can be switch its selected state. It contains a selection box and a text.

CSS element: check-box

Methods

impl CheckBox

pub fn attach<P>(self, property: AttachedProperty<P>) -> CheckBox where
    P: Debug + Component

Sets or shares an attached property.

pub fn position(self, position: impl IntoPropertySource<Point>) -> CheckBox

Sets or shares the constraint property.

pub fn constraint(
    self,
    constraint: impl IntoPropertySource<Constraint>
) -> CheckBox

Sets or shares the constraint property.

pub fn vertical_alignment(
    self,
    vertical_alignment: impl IntoPropertySource<Alignment>
) -> CheckBox

Sets or shares the vertical alignment property.

pub fn horizontal_alignment(
    self,
    horizontal_alignment: impl IntoPropertySource<Alignment>
) -> CheckBox

Sets or shares the horizontal alignment property.

pub fn visibility(
    self,
    visibility: impl IntoPropertySource<Visibility>
) -> CheckBox

Sets or shares the visibility property.

pub fn margin(self, margin: impl IntoPropertySource<Thickness>) -> CheckBox

Sets or shares the margin property.

pub fn enabled(self, enabled: impl IntoPropertySource<bool>) -> CheckBox

Sets or shares the enabled property.

pub fn clip(self, clip: impl IntoPropertySource<bool>) -> CheckBox

Sets or shares the clip property.

pub fn opacity(self, opacity: impl IntoPropertySource<f32>) -> CheckBox

pub fn width(self, width: f64) -> CheckBox

Inserts a new width.

pub fn height(self, height: f64) -> CheckBox

Inserts a new height.

pub fn size(self, width: f64, height: f64) -> CheckBox

Inserts a new size.

pub fn min_width(self, min_width: f64) -> CheckBox

Inserts a new min_width.

pub fn min_height(self, min_height: f64) -> CheckBox

Inserts a new min_height.

pub fn min_size(self, min_width: f64, min_height: f64) -> CheckBox

Inserts a new min_size.

pub fn max_width(self, max_width: f64) -> CheckBox

Inserts a new max_width.

pub fn max_height(self, max_height: f64) -> CheckBox

Inserts a new max_height.

pub fn max_size(self, max_width: f64, max_height: f64) -> CheckBox

Inserts a new min_size.

pub fn name<P>(self, name: P) -> CheckBox where
    P: Into<String>, 

Sets the debug name of the widget.

pub fn background<P>(self, background: P) -> CheckBox where
    P: IntoPropertySource<Brush>, 

Sets or shares the background property.

pub fn border_radius<P>(self, border_radius: P) -> CheckBox where
    P: IntoPropertySource<f64>, 

Sets or shares the border radius property.

pub fn border_width<P>(self, border_width: P) -> CheckBox where
    P: IntoPropertySource<Thickness>, 

Sets or shares the border thickness property.

pub fn border_brush<P>(self, border_brush: P) -> CheckBox where
    P: IntoPropertySource<Brush>, 

Sets or shares the border brush property.

pub fn padding<P>(self, padding: P) -> CheckBox where
    P: IntoPropertySource<Thickness>, 

Sets or shares the padding property.

pub fn foreground<P>(self, foreground: P) -> CheckBox where
    P: IntoPropertySource<Brush>, 

Sets or shares the foreground property.

pub fn text<P>(self, text: P) -> CheckBox where
    P: IntoPropertySource<String16>, 

Sets or shares the text property.

pub fn font_size<P>(self, font_size: P) -> CheckBox where
    P: IntoPropertySource<f64>, 

Sets or share the font size property.

pub fn font<P>(self, font: P) -> CheckBox where
    P: IntoPropertySource<String>, 

Sets or shares the font property.

pub fn icon<P>(self, icon: P) -> CheckBox where
    P: IntoPropertySource<String>, 

Sets or shares the icon property.

pub fn icon_brush<P>(self, icon_brush: P) -> CheckBox where
    P: IntoPropertySource<Brush>, 

Sets or shares the icon brush property.

pub fn icon_size<P>(self, icon_size: P) -> CheckBox where
    P: IntoPropertySource<f64>, 

Sets or share the icon font size property.

pub fn icon_font<P>(self, icon_font: P) -> CheckBox where
    P: IntoPropertySource<String>, 

Sets or shares the icon font property.

pub fn selector<P>(self, selector: P) -> CheckBox where
    P: IntoPropertySource<Selector>, 

Sets or shares the css selector property.

pub fn pressed<P>(self, pressed: P) -> CheckBox where
    P: IntoPropertySource<bool>, 

Sets or shares the pressed property.

pub fn selected<P>(self, selected: P) -> CheckBox where
    P: IntoPropertySource<bool>, 

Sets or shares the selected property.

Trait Implementations

impl Default for CheckBox

impl Widget for CheckBox

impl MouseHandler for CheckBox

impl Template for CheckBox[src]

Auto Trait Implementations

impl !Send for CheckBox

impl !Sync for CheckBox

impl Unpin for CheckBox

impl !UnwindSafe for CheckBox

impl !RefUnwindSafe for CheckBox

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<E> Component for E where
    E: Any
[src]

impl<T> SetParameter for T