pub struct PreventOverflowMargin {
pub width: u32,
pub height: u32,
}
Expand description
Enable prevent overflow with a margin so that the window’s size + this margin won’t overflow the workarea
Fields§
§width: u32
Horizontal margin in physical unit
height: u32
Vertical margin in physical unit
Trait Implementations§
Source§impl Clone for PreventOverflowMargin
impl Clone for PreventOverflowMargin
Source§fn clone(&self) -> PreventOverflowMargin
fn clone(&self) -> PreventOverflowMargin
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 PreventOverflowMargin
impl Debug for PreventOverflowMargin
Source§impl Default for PreventOverflowMargin
impl Default for PreventOverflowMargin
Source§fn default() -> PreventOverflowMargin
fn default() -> PreventOverflowMargin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreventOverflowMargin
impl<'de> Deserialize<'de> for PreventOverflowMargin
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 PartialEq for PreventOverflowMargin
impl PartialEq for PreventOverflowMargin
Source§impl Serialize for PreventOverflowMargin
impl Serialize for PreventOverflowMargin
impl StructuralPartialEq for PreventOverflowMargin
Auto Trait Implementations§
impl Freeze for PreventOverflowMargin
impl RefUnwindSafe for PreventOverflowMargin
impl Send for PreventOverflowMargin
impl Sync for PreventOverflowMargin
impl Unpin for PreventOverflowMargin
impl UnwindSafe for PreventOverflowMargin
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