pub trait WindowModifierExt {
// Required methods
fn window_drag_area(self) -> Modifier;
fn window_drag_area_with_callbacks(
self,
on_started: impl Fn() + 'static,
on_finished: impl Fn() + 'static,
) -> Modifier;
fn window_resize_area(self, direction: WindowResizeDirection) -> Modifier;
}Expand description
Modifier helpers for composables rendered in OS windows.
Required Methods§
Sourcefn window_drag_area(self) -> Modifier
fn window_drag_area(self) -> Modifier
Marks this component as a drag target for its containing OS window.
The modifier is inert when the component is not currently rendered in a native desktop sub-window, so the same UI can be used inline.
Sourcefn window_drag_area_with_callbacks(
self,
on_started: impl Fn() + 'static,
on_finished: impl Fn() + 'static,
) -> Modifier
fn window_drag_area_with_callbacks( self, on_started: impl Fn() + 'static, on_finished: impl Fn() + 'static, ) -> Modifier
Marks this component as a drag target and reports the native drag lifecycle.
The callbacks run only when an OS-window drag is actually accepted by the current native desktop sub-window.
Sourcefn window_resize_area(self, direction: WindowResizeDirection) -> Modifier
fn window_resize_area(self, direction: WindowResizeDirection) -> Modifier
Marks this component as a resize target for its containing OS window.
The modifier is inert when the component is not currently rendered in a native desktop sub-window.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".