Enum wayland_csd_frame::FrameAction
source · #[non_exhaustive]pub enum FrameAction {
Minimize,
Maximize,
UnMaximize,
Close,
Move,
Resize(ResizeEdge),
ShowMenu(i32, i32),
}
Expand description
The Frame action user should perform in responce to mouse click events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Minimize
The window should be minimized.
Maximize
The window should be maximized.
UnMaximize
The window should be unmaximized.
Close
The window should be closed.
Move
An interactive move should be started.
Resize(ResizeEdge)
An interactive resize should be started with the provided edge.
ShowMenu(i32, i32)
Show window menu.
The coordinates are relative to the base surface, as in should be
directly passed to the xdg_toplevel::show_window_menu
.
Trait Implementations§
source§impl Clone for FrameAction
impl Clone for FrameAction
source§fn clone(&self) -> FrameAction
fn clone(&self) -> FrameAction
Returns a copy 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 FrameAction
impl Debug for FrameAction
impl Copy for FrameAction
Auto Trait Implementations§
impl Freeze for FrameAction
impl RefUnwindSafe for FrameAction
impl Send for FrameAction
impl Sync for FrameAction
impl Unpin for FrameAction
impl UnwindSafe for FrameAction
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.