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: i32Trait Implementations§
source§impl Clone for XyhwBuilder
impl Clone for XyhwBuilder
source§fn clone(&self) -> XyhwBuilder
fn clone(&self) -> XyhwBuilder
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 XyhwBuilder
impl Debug for XyhwBuilder
source§impl Default for XyhwBuilder
impl Default for XyhwBuilder
source§impl<'de> Deserialize<'de> for XyhwBuilder
impl<'de> Deserialize<'de> for XyhwBuilder
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 From<XyhwBuilder> for Xyhw
impl From<XyhwBuilder> for Xyhw
source§fn from(xywh: XyhwBuilder) -> Self
fn from(xywh: XyhwBuilder) -> Self
Converts to this type from the input type.
source§impl PartialEq<XyhwBuilder> for XyhwBuilder
impl PartialEq<XyhwBuilder> for XyhwBuilder
source§fn eq(&self, other: &XyhwBuilder) -> bool
fn eq(&self, other: &XyhwBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.