pub enum WindowRequest {
Create(CreateWindowRequest),
Close(AppWindowId),
SetVisible {
window: AppWindowId,
visible: bool,
},
SetInnerSize {
window: AppWindowId,
size: Size,
},
SetOuterPosition {
window: AppWindowId,
position: WindowLogicalPosition,
},
Raise {
window: AppWindowId,
sender: Option<AppWindowId>,
},
BeginDrag {
window: AppWindowId,
},
BeginResize {
window: AppWindowId,
direction: WindowResizeDirection,
},
SetStyle {
window: AppWindowId,
style: WindowStyleRequest,
},
}Variants§
Create(CreateWindowRequest)
Close(AppWindowId)
SetVisible
Request showing or hiding an OS window without destroying it (best-effort).
SetInnerSize
SetOuterPosition
Request moving the OS window to a screen-space logical position (ADR 0017).
Runners should treat this as best-effort and may clamp/deny the request based on platform constraints and user settings.
Raise
BeginDrag
Begin an OS-native interactive window drag (best-effort).
Fields
§
window: AppWindowIdBeginResize
Begin an OS-native interactive window resize (best-effort).
SetStyle
Best-effort request to update OS window style facets at runtime.
Semantics:
- This is a patch request: each
Some(...)field updates that facet,Noneleaves it unchanged. - Runners may ignore unsupported facets based on platform constraints.
Trait Implementations§
Source§impl Clone for WindowRequest
impl Clone for WindowRequest
Source§fn clone(&self) -> WindowRequest
fn clone(&self) -> WindowRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowRequest
impl Debug for WindowRequest
Source§impl PartialEq for WindowRequest
impl PartialEq for WindowRequest
impl StructuralPartialEq for WindowRequest
Auto Trait Implementations§
impl Freeze for WindowRequest
impl RefUnwindSafe for WindowRequest
impl Send for WindowRequest
impl Sync for WindowRequest
impl Unpin for WindowRequest
impl UnsafeUnpin for WindowRequest
impl UnwindSafe for WindowRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more