Enum niri_ipc::SizeChange
source · pub enum SizeChange {
SetFixed(i32),
SetProportion(f64),
AdjustFixed(i32),
AdjustProportion(f64),
}
Expand description
Change in window or column size.
Variants§
SetFixed(i32)
Set the size in logical pixels.
SetProportion(f64)
Set the size as a proportion of the working area.
AdjustFixed(i32)
Add or subtract to the current size in logical pixels.
AdjustProportion(f64)
Add or subtract to the current size as a proportion of the working area.
Trait Implementations§
source§impl Clone for SizeChange
impl Clone for SizeChange
source§fn clone(&self) -> SizeChange
fn clone(&self) -> SizeChange
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 SizeChange
impl Debug for SizeChange
source§impl<'de> Deserialize<'de> for SizeChange
impl<'de> Deserialize<'de> for SizeChange
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromStr for SizeChange
impl FromStr for SizeChange
source§impl PartialEq for SizeChange
impl PartialEq for SizeChange
source§impl Serialize for SizeChange
impl Serialize for SizeChange
impl Copy for SizeChange
impl StructuralPartialEq for SizeChange
Auto Trait Implementations§
impl Freeze for SizeChange
impl RefUnwindSafe for SizeChange
impl Send for SizeChange
impl Sync for SizeChange
impl Unpin for SizeChange
impl UnwindSafe for SizeChange
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
)