FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ToggleSwitch

    struct · ferroui-controls · v0.5.0

    struct ToggleSwitch
    

    A toggle switch control.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ToggleSwitch>
    

    Returns a strong reference to this object.

    Source

    off_content_property

    fn off_content_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the OffContent property.

    Source

    off_content_template_property

    fn off_content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the OffContentTemplate property.

    Source

    on_content_property

    fn on_content_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the OnContent property.

    Source

    on_content_template_property

    fn on_content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the OnContentTemplate property.

    Source

    knob_transitions_property

    fn knob_transitions_property() -> &'static StyledProperty<Option<Transitions>>
    

    Defines the KnobTransitions property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    on_content

    fn on_content(self: &Self) -> Option<BoxedValue>
    

    The content that is displayed when in the on state.

    Source

    set_on_content

    fn set_on_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    off_content

    fn off_content(self: &Self) -> Option<BoxedValue>
    

    The content that is displayed when in the off state.

    Source

    set_off_content

    fn set_off_content(self: &Self, value: Option<BoxedValue>)
    

    Source

    off_content_presenter

    fn off_content_presenter(self: &Self) -> Option<Ref<ContentPresenter>>
    

    The presenter of the off content from the control's template.

    Source

    on_content_presenter

    fn on_content_presenter(self: &Self) -> Option<Ref<ContentPresenter>>
    

    The presenter of the on content from the control's template.

    Source

    off_content_template

    fn off_content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    The data template used to display the off content.

    Source

    set_off_content_template

    fn set_off_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    on_content_template

    fn on_content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    The data template used to display the on content.

    Source

    set_on_content_template

    fn set_on_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    knob_transitions

    fn knob_transitions(self: &Self) -> Option<Transitions>
    

    The transitions of the switching knob.

    Source

    set_knob_transitions

    fn set_knob_transitions(self: &Self, value: Option<Transitions>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.