FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AdaptiveClassSetter

    struct · ferroui-xaml-interactions-responsive · v0.5.0

    struct AdaptiveClassSetter
    

    Conditional class setter used in AdaptiveBehavior behavior.

    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<AdaptiveClassSetter>
    

    Returns a strong reference to this object.

    Source

    min_width_property

    fn min_width_property() -> &'static StyledProperty<f64>
    

    Identifies the MinWidth property.

    Source

    min_width_operator_property

    fn min_width_operator_property() -> &'static StyledProperty<ComparisonConditionType>
    

    Identifies the MinWidthOperator property.

    Source

    max_width_property

    fn max_width_property() -> &'static StyledProperty<f64>
    

    Identifies the MaxWidth property.

    Source

    max_width_operator_property

    fn max_width_operator_property() -> &'static StyledProperty<ComparisonConditionType>
    

    Identifies the MaxWidthOperator property.

    Source

    min_height_property

    fn min_height_property() -> &'static StyledProperty<f64>
    

    Identifies the MinHeight property.

    Source

    min_height_operator_property

    fn min_height_operator_property() -> &'static StyledProperty<ComparisonConditionType>
    

    Identifies the MinHeightOperator property.

    Source

    max_height_property

    fn max_height_property() -> &'static StyledProperty<f64>
    

    Identifies the MaxHeight property.

    Source

    max_height_operator_property

    fn max_height_operator_property() -> &'static StyledProperty<ComparisonConditionType>
    

    Identifies the MaxHeightOperator property.

    Source

    class_name_property

    fn class_name_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the ClassName property.

    Source

    is_pseudo_class_property

    fn is_pseudo_class_property() -> &'static StyledProperty<bool>
    

    Identifies the IsPseudoClass property.

    Source

    target_control_property

    fn target_control_property() -> &'static StyledProperty<Option<ElementRef<Control>>>
    

    Identifies the TargetControl property.

    Deviation (DEVIATIONS.md, Behaviors): the setter does not own its target, so the value is an element reference.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a setter.

    Source

    min_width

    fn min_width(self: &Self) -> f64
    

    Gets or sets minimum bounds width value used for property comparison. This is a property of the object model.

    Source

    set_min_width

    fn set_min_width(self: &Self, value: f64)
    

    Source

    min_width_operator

    fn min_width_operator(self: &Self) -> ComparisonConditionType
    

    Gets or sets minimum bounds width value comparison operator. This is a property of the object model.

    Source

    set_min_width_operator

    fn set_min_width_operator(self: &Self, value: ComparisonConditionType)
    

    Source

    max_width

    fn max_width(self: &Self) -> f64
    

    Gets or sets maximum width value used for property comparison. This is a property of the object model.

    Source

    set_max_width

    fn set_max_width(self: &Self, value: f64)
    

    Source

    max_width_operator

    fn max_width_operator(self: &Self) -> ComparisonConditionType
    

    Gets or sets maximum bounds width value comparison operator. This is a property of the object model.

    Source

    set_max_width_operator

    fn set_max_width_operator(self: &Self, value: ComparisonConditionType)
    

    Source

    min_height

    fn min_height(self: &Self) -> f64
    

    Gets or sets minimum bounds height value used for property comparison. This is a property of the object model.

    Source

    set_min_height

    fn set_min_height(self: &Self, value: f64)
    

    Source

    min_height_operator

    fn min_height_operator(self: &Self) -> ComparisonConditionType
    

    Gets or sets minimum bounds height value comparison operator. This is a property of the object model.

    Source

    set_min_height_operator

    fn set_min_height_operator(self: &Self, value: ComparisonConditionType)
    

    Source

    max_height

    fn max_height(self: &Self) -> f64
    

    Gets or sets maximum height value used for property comparison. This is a property of the object model.

    Source

    set_max_height

    fn set_max_height(self: &Self, value: f64)
    

    Source

    max_height_operator

    fn max_height_operator(self: &Self) -> ComparisonConditionType
    

    Gets or sets maximum bounds height value comparison operator. This is a property of the object model.

    Source

    set_max_height_operator

    fn set_max_height_operator(self: &Self, value: ComparisonConditionType)
    

    Source

    class_name

    fn class_name(self: &Self) -> Option<String>
    

    Gets or sets the class name that should be added or removed. This is a property of the object model, and the content of the setter in markup.

    Source

    set_class_name

    fn set_class_name(self: &Self, value: Option<String>)
    

    Source

    is_pseudo_class

    fn is_pseudo_class(self: &Self) -> bool
    

    Gets or sets the flag whether ClassName is a pseudo class. This is a property of the object model.

    Source

    set_is_pseudo_class

    fn set_is_pseudo_class(self: &Self, value: bool)
    

    Source

    target_control

    fn target_control(self: &Self) -> Option<Ref<Control>>
    

    Gets or sets the target control that class name that should be added or removed when triggered, if not set the associated object of the behavior is used or the target_control of the AdaptiveBehavior. This is a property of the object model; markup resolves a name given for it to the named control.

    Source

    set_target_control

    fn set_target_control(self: &Self, value: impl Into<Nullable<Control>>)
    

    Source

    Trait implementations

    Availability

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