#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith,
    Copy
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct CanvasRect {
    #[serde(rename = "x")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    x: f64,
    #[serde(rename = "y")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    y: f64,
    #[serde(rename = "width")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    width: f64,
    #[serde(rename = "height")]
    #[derive_with(with = conjure_object::private::DoubleWrapper)]
    height: f64,
}
impl CanvasRect {
    #[inline]
    pub fn x(&self) -> f64 {
        self.x
    }
    #[inline]
    pub fn y(&self) -> f64 {
        self.y
    }
    #[inline]
    pub fn width(&self) -> f64 {
        self.width
    }
    #[inline]
    pub fn height(&self) -> f64 {
        self.height
    }
}
