#[repr(u32)]pub enum State {
Maximized = 1,
Fullscreen = 2,
Resizing = 3,
Activated = 4,
TiledLeft = 5,
TiledRight = 6,
TiledTop = 7,
TiledBottom = 8,
}
Expand description
types of state on the surface
The different state values used on the surface. This is designed for state values like maximized, fullscreen. It is paired with the configure event to ensure that both the client and the compositor setting the state can be synchronized.
States set in this way are double-buffered. They will get applied on the next commit.
Variants§
Maximized = 1
the surface is maximized,
Fullscreen = 2
the surface is fullscreen,
Resizing = 3
the surface is being resized,
Activated = 4
the surface is now activated,
TiledLeft = 5
TiledRight = 6
TiledTop = 7
TiledBottom = 8
Implementations§
Trait Implementations§
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)