FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AspectRatioClassSetter

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

    struct AspectRatioClassSetter
    

    Conditional class setter based on aspect ratio used in AspectRatioBehavior.

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

    Returns a strong reference to this object.

    Source

    min_ratio_property

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

    Identifies the MinRatio property.

    Source

    min_ratio_operator_property

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

    Identifies the MinRatioOperator property.

    Source

    max_ratio_property

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

    Identifies the MaxRatio property.

    Source

    max_ratio_operator_property

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

    Identifies the MaxRatioOperator 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_ratio

    fn min_ratio(self: &Self) -> f64
    

    Gets or sets minimum aspect ratio used for comparison. This is a property of the object model.

    Source

    set_min_ratio

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

    Source

    min_ratio_operator

    fn min_ratio_operator(self: &Self) -> ComparisonConditionType
    

    Gets or sets minimum aspect ratio comparison operator. This is a property of the object model.

    Source

    set_min_ratio_operator

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

    Source

    max_ratio

    fn max_ratio(self: &Self) -> f64
    

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

    Source

    set_max_ratio

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

    Source

    max_ratio_operator

    fn max_ratio_operator(self: &Self) -> ComparisonConditionType
    

    Gets or sets maximum aspect ratio comparison operator. This is a property of the object model.

    Source

    set_max_ratio_operator

    fn set_max_ratio_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 class_name 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 should be added or removed from when triggered. 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.