WindowStateTrigger
struct · ferroui-xaml-interactions-custom · v0.5.0
struct WindowStateTrigger
Executes actions when the window state matches the specified value.
The state is the parameter of the actions.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<WindowStateTrigger>
Returns a strong reference to this object.
window_property
fn window_property() -> &'static StyledProperty<Option<ElementRef<Window>>>
Identifies the Window property.
Deviation (DEVIATIONS.md, Behaviors): the trigger does not own the window, so the value is an element reference.
state_property
fn state_property() -> &'static StyledProperty<WindowState>
Identifies the State property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
window
fn window(self: &Self) -> Option<Ref<Window>>
Gets or sets the window. If not set, the visual root window is used. Markup resolves a name given for it to the named window.
set_window
fn set_window(self: &Self, value: impl Into<Nullable<Window>>)
state
fn state(self: &Self) -> WindowState
Gets or sets the window state to trigger on. This is a property of the object model.
set_state
fn set_state(self: &Self, value: WindowState)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeTriggerBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDisposingTriggerImplExtDerefUpcast<T>Upcast<WindowStateTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingTriggerImplAttachedToVisualTreeTriggerBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.