FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LightDismissOverlayLayer

    struct · ferroui-controls · v0.5.0

    struct LightDismissOverlayLayer
    

    A layer that is used to dismiss a popup when the user clicks outside (internal upstream).

    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<LightDismissOverlayLayer>
    

    Returns a strong reference to this object.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    input_pass_through_element

    fn input_pass_through_element(self: &Self) -> Option<Ref<InputElement>>
    

    The element of the most recent registration that still receives input while the layer is shown.

    Source

    get_light_dismiss_overlay_layer

    fn get_light_dismiss_overlay_layer(visual: &Visual) -> Option<Ref<LightDismissOverlayLayer>>
    

    Returns the light dismiss overlay for a specified visual, or None if none found.

    Source

    register

    fn register(self: &Self, input_pass_through_element: Option<&Ref<InputElement>>) -> Rc<dyn IDisposable>
    

    Shows the layer until the returned registration is disposed. input_pass_through_element keeps receiving input while this is the most recent registration.

    Source

    hit_test

    fn hit_test(self: &Self, point: Point) -> bool
    

    Whether the layer is hit at the specified point, in coordinates relative to the layer.

    Source

    Trait implementations

    Availability

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