AdaptiveTrigger
struct · ferroui-controls · v0.5.0
struct AdaptiveTrigger
A trigger that is active while the window is at least MinWindowWidth wide and
MinWindowHeight high (WinUI's AdaptiveTrigger).
The size is the client size of the window (the presentation source) of the element whose states the trigger selects, not the size of that element. A value of -1 (the default) leaves that dimension out; with both at -1 the trigger never applies.
Members
TYPEto_refmin_window_width_propertymin_window_height_propertyconstructnewmin_window_widthset_min_window_widthmin_window_heightset_min_window_height
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<AdaptiveTrigger>
Returns a strong reference to this object.
min_window_width_property
fn min_window_width_property() -> &'static StyledProperty<f64>
Defines the MinWindowWidth property: the smallest window width at which the trigger
applies. Default -1 (no condition on the width).
min_window_height_property
fn min_window_height_property() -> &'static StyledProperty<f64>
Defines the MinWindowHeight property: the smallest window height at which the trigger
applies. Default -1 (no condition on the height).
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
min_window_width
fn min_window_width(self: &Self) -> f64
set_min_window_width
fn set_min_window_width(self: &Self, value: f64)
min_window_height
fn min_window_height(self: &Self) -> f64
set_min_window_height
fn set_min_window_height(self: &Self, value: f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<AdaptiveTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.