AdaptiveClassSetter
struct · ferroui-xaml-interactions-responsive · v0.5.0
struct AdaptiveClassSetter
Conditional class setter used in AdaptiveBehavior behavior.
Members
TYPEto_refmin_width_propertymin_width_operator_propertymax_width_propertymax_width_operator_propertymin_height_propertymin_height_operator_propertymax_height_propertymax_height_operator_propertyclass_name_propertyis_pseudo_class_propertytarget_control_propertyconstructnewmin_widthset_min_widthmin_width_operatorset_min_width_operatormax_widthset_max_widthmax_width_operatorset_max_width_operatormin_heightset_min_heightmin_height_operatorset_min_height_operatormax_heightset_max_heightmax_height_operatorset_max_height_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<AdaptiveClassSetter>
Returns a strong reference to this object.
min_width_property
fn min_width_property() -> &'static StyledProperty<f64>
Identifies the MinWidth property.
min_width_operator_property
fn min_width_operator_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the MinWidthOperator property.
max_width_property
fn max_width_property() -> &'static StyledProperty<f64>
Identifies the MaxWidth property.
max_width_operator_property
fn max_width_operator_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the MaxWidthOperator property.
min_height_property
fn min_height_property() -> &'static StyledProperty<f64>
Identifies the MinHeight property.
min_height_operator_property
fn min_height_operator_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the MinHeightOperator property.
max_height_property
fn max_height_property() -> &'static StyledProperty<f64>
Identifies the MaxHeight property.
max_height_operator_property
fn max_height_operator_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the MaxHeightOperator 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_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.
set_min_width
fn set_min_width(self: &Self, value: f64)
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.
set_min_width_operator
fn set_min_width_operator(self: &Self, value: ComparisonConditionType)
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.
set_max_width
fn set_max_width(self: &Self, value: f64)
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.
set_max_width_operator
fn set_max_width_operator(self: &Self, value: ComparisonConditionType)
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.
set_min_height
fn set_min_height(self: &Self, value: f64)
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.
set_min_height_operator
fn set_min_height_operator(self: &Self, value: ComparisonConditionType)
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.
set_max_height
fn set_max_height(self: &Self, value: f64)
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.
set_max_height_operator
fn set_max_height_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 ClassName 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 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.
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<AdaptiveClassSetter>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.