# AdaptiveClassSetter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-responsive/struct-adaptiveclasssetter/

**struct** · [`ferroui-xaml-interactions-responsive`](/docs/0.5.0/api/ferroui-xaml-interactions-responsive/) · v0.5.0

```rust
struct AdaptiveClassSetter
```

Conditional class setter used in `AdaptiveBehavior` behavior.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L13)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`min_width_property`](#function-min_width_property)
- [`min_width_operator_property`](#function-min_width_operator_property)
- [`max_width_property`](#function-max_width_property)
- [`max_width_operator_property`](#function-max_width_operator_property)
- [`min_height_property`](#function-min_height_property)
- [`min_height_operator_property`](#function-min_height_operator_property)
- [`max_height_property`](#function-max_height_property)
- [`max_height_operator_property`](#function-max_height_operator_property)
- [`class_name_property`](#function-class_name_property)
- [`is_pseudo_class_property`](#function-is_pseudo_class_property)
- [`target_control_property`](#function-target_control_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`min_width`](#function-min_width)
- [`set_min_width`](#function-set_min_width)
- [`min_width_operator`](#function-min_width_operator)
- [`set_min_width_operator`](#function-set_min_width_operator)
- [`max_width`](#function-max_width)
- [`set_max_width`](#function-set_max_width)
- [`max_width_operator`](#function-max_width_operator)
- [`set_max_width_operator`](#function-set_max_width_operator)
- [`min_height`](#function-min_height)
- [`set_min_height`](#function-set_min_height)
- [`min_height_operator`](#function-min_height_operator)
- [`set_min_height_operator`](#function-set_min_height_operator)
- [`max_height`](#function-max_height)
- [`set_max_height`](#function-set_max_height)
- [`max_height_operator`](#function-max_height_operator)
- [`set_max_height_operator`](#function-set_max_height_operator)
- [`class_name`](#function-class_name)
- [`set_class_name`](#function-set_class_name)
- [`is_pseudo_class`](#function-is_pseudo_class)
- [`set_is_pseudo_class`](#function-set_is_pseudo_class)
- [`target_control`](#function-target_control)
- [`set_target_control`](#function-set_target_control)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L17)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<AdaptiveClassSetter>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L17)

<a id="function-min_width_property"></a>

### min_width_property

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

Identifies the `MinWidth` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-min_width_operator_property"></a>

### min_width_operator_property

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

Identifies the `MinWidthOperator` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-max_width_property"></a>

### max_width_property

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

Identifies the `MaxWidth` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-max_width_operator_property"></a>

### max_width_operator_property

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

Identifies the `MaxWidthOperator` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-min_height_property"></a>

### min_height_property

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

Identifies the `MinHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-min_height_operator_property"></a>

### min_height_operator_property

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

Identifies the `MinHeightOperator` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-max_height_property"></a>

### max_height_property

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

Identifies the `MaxHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-max_height_operator_property"></a>

### max_height_operator_property

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

Identifies the `MaxHeightOperator` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-class_name_property"></a>

### class_name_property

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

Identifies the `ClassName` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-is_pseudo_class_property"></a>

### is_pseudo_class_property

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

Identifies the `IsPseudoClass` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-target_control_property"></a>

### target_control_property

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L29)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L100)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```

Creates a setter.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L105)

<a id="function-min_width"></a>

### min_width

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L111)

<a id="function-set_min_width"></a>

### set_min_width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L115)

<a id="function-min_width_operator"></a>

### min_width_operator

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L121)

<a id="function-set_min_width_operator"></a>

### set_min_width_operator

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L125)

<a id="function-max_width"></a>

### max_width

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L131)

<a id="function-set_max_width"></a>

### set_max_width

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L135)

<a id="function-max_width_operator"></a>

### max_width_operator

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L141)

<a id="function-set_max_width_operator"></a>

### set_max_width_operator

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L145)

<a id="function-min_height"></a>

### min_height

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L151)

<a id="function-set_min_height"></a>

### set_min_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L155)

<a id="function-min_height_operator"></a>

### min_height_operator

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L161)

<a id="function-set_min_height_operator"></a>

### set_min_height_operator

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L165)

<a id="function-max_height"></a>

### max_height

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L171)

<a id="function-set_max_height"></a>

### set_max_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L175)

<a id="function-max_height_operator"></a>

### max_height_operator

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L181)

<a id="function-set_max_height_operator"></a>

### set_max_height_operator

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L185)

<a id="function-class_name"></a>

### class_name

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L191)

<a id="function-set_class_name"></a>

### set_class_name

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L195)

<a id="function-is_pseudo_class"></a>

### is_pseudo_class

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L201)

<a id="function-set_is_pseudo_class"></a>

### set_is_pseudo_class

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L205)

<a id="function-target_control"></a>

### target_control

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L214)

<a id="function-set_target_control"></a>

### set_target_control

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Responsive/adaptive_class_setter.rs#L218)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<AdaptiveClassSetter>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
