FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<AdaptiveTrigger>
    

    Returns a strong reference to this object.

    Source

    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).

    Source

    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).

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    min_window_width

    fn min_window_width(self: &Self) -> f64
    

    Source

    set_min_window_width

    fn set_min_window_width(self: &Self, value: f64)
    

    Source

    min_window_height

    fn min_window_height(self: &Self) -> f64
    

    Source

    set_min_window_height

    fn set_min_window_height(self: &Self, value: f64)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.