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).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<LightDismissOverlayLayer>
Returns a strong reference to this object.
new
fn new() -> Ref<Self>
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.
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.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<LightDismissOverlayLayer>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplInputElementImplControlImplFerroObjectImplVisualImplICustomHitTest
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.