AspectRatioClassSetter
struct · ferroui-xaml-interactions-responsive · v0.5.0
struct AspectRatioClassSetter
Conditional class setter based on aspect ratio used in
AspectRatioBehavior.
Members
TYPEto_refmin_ratio_propertymin_ratio_operator_propertymax_ratio_propertymax_ratio_operator_propertyclass_name_propertyis_pseudo_class_propertytarget_control_propertyconstructnewmin_ratioset_min_ratiomin_ratio_operatorset_min_ratio_operatormax_ratioset_max_ratiomax_ratio_operatorset_max_ratio_operatorclass_nameset_class_nameis_pseudo_classset_is_pseudo_classtarget_controlset_target_control
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<AspectRatioClassSetter>
Returns a strong reference to this object.
min_ratio_property
fn min_ratio_property() -> &'static StyledProperty<f64>
Identifies the MinRatio property.
min_ratio_operator_property
fn min_ratio_operator_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the MinRatioOperator property.
max_ratio_property
fn max_ratio_property() -> &'static StyledProperty<f64>
Identifies the MaxRatio property.
max_ratio_operator_property
fn max_ratio_operator_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the MaxRatioOperator property.
class_name_property
fn class_name_property() -> &'static StyledProperty<Option<String>>
Identifies the ClassName property.
is_pseudo_class_property
fn is_pseudo_class_property() -> &'static StyledProperty<bool>
Identifies the IsPseudoClass property.
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.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a setter.
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.
set_min_ratio
fn set_min_ratio(self: &Self, value: f64)
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.
set_min_ratio_operator
fn set_min_ratio_operator(self: &Self, value: ComparisonConditionType)
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.
set_max_ratio
fn set_max_ratio(self: &Self, value: f64)
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.
set_max_ratio_operator
fn set_max_ratio_operator(self: &Self, value: ComparisonConditionType)
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.
set_class_name
fn set_class_name(self: &Self, value: Option<String>)
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.
set_is_pseudo_class
fn set_is_pseudo_class(self: &Self, value: bool)
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.
set_target_control
fn set_target_control(self: &Self, value: impl Into<Nullable<Control>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<AspectRatioClassSetter>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.