Struct leftwm_core::models::XyhwBuilder
source · [−]pub struct XyhwBuilder {
pub x: i32,
pub y: i32,
pub h: i32,
pub w: i32,
pub minw: i32,
pub maxw: i32,
pub minh: i32,
pub maxh: i32,
}
Expand description
Modifiable struct that can be used to generate an Xyhw struct. Contains min/max width and height and window placement. x,y from top left.
Fields
x: i32
y: i32
h: i32
w: i32
minw: i32
maxw: i32
minh: i32
maxh: i32
Trait Implementations
sourceimpl Clone for XyhwBuilder
impl Clone for XyhwBuilder
sourcefn clone(&self) -> XyhwBuilder
fn clone(&self) -> XyhwBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for XyhwBuilder
impl Debug for XyhwBuilder
sourceimpl Default for XyhwBuilder
impl Default for XyhwBuilder
sourceimpl<'de> Deserialize<'de> for XyhwBuilder
impl<'de> Deserialize<'de> for XyhwBuilder
sourcefn 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
sourceimpl From<XyhwBuilder> for Xyhw
impl From<XyhwBuilder> for Xyhw
sourcefn from(xywh: XyhwBuilder) -> Self
fn from(xywh: XyhwBuilder) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<XyhwBuilder> for XyhwBuilder
impl PartialEq<XyhwBuilder> for XyhwBuilder
sourcefn eq(&self, other: &XyhwBuilder) -> bool
fn eq(&self, other: &XyhwBuilder) -> bool
sourceimpl Serialize for XyhwBuilder
impl Serialize for XyhwBuilder
impl Copy for XyhwBuilder
impl Eq for XyhwBuilder
impl StructuralEq for XyhwBuilder
impl StructuralPartialEq for XyhwBuilder
Auto Trait Implementations
impl RefUnwindSafe for XyhwBuilder
impl Send for XyhwBuilder
impl Sync for XyhwBuilder
impl Unpin for XyhwBuilder
impl UnwindSafe for XyhwBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more