pub struct WindowFrameState {
pub bounds: Rect,
pub min_size: [f32; 2],
/* private fields */
}Expand description
Caller-owned geometry and drag/resize state for Frame::floating_window.
Fields§
§bounds: Rect§min_size: [f32; 2]Implementations§
Source§impl WindowFrameState
impl WindowFrameState
pub fn new(bounds: Rect) -> Self
pub fn is_dragging(&self) -> bool
pub fn is_resizing(&self) -> bool
Trait Implementations§
Source§impl Clone for WindowFrameState
impl Clone for WindowFrameState
impl Copy for WindowFrameState
Source§impl Debug for WindowFrameState
impl Debug for WindowFrameState
Auto Trait Implementations§
impl Forget for WindowFrameState
impl Freeze for WindowFrameState
impl Move for WindowFrameState
impl RefUnwindSafe for WindowFrameState
impl Send for WindowFrameState
impl Sync for WindowFrameState
impl Unpin for WindowFrameState
impl UnsafeUnpin for WindowFrameState
impl UnwindSafe for WindowFrameState
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