mirror of
https://github.com/lexmount/moli.git
synced 2026-11-24 16:02:53 +00:00
23 lines
540 B
Rust
23 lines
540 B
Rust
#[derive(Debug, Clone, Copy, PartialEq)]
|
|
pub struct ClientRect {
|
|
pub left: f64,
|
|
pub top: f64,
|
|
pub right: f64,
|
|
pub bottom: f64,
|
|
pub width: f64,
|
|
pub height: f64,
|
|
}
|
|
|
|
impl From<crate::renderer::RendererClientRect> for ClientRect {
|
|
fn from(value: crate::renderer::RendererClientRect) -> Self {
|
|
Self {
|
|
left: value.left,
|
|
top: value.top,
|
|
right: value.right,
|
|
bottom: value.bottom,
|
|
width: value.width,
|
|
height: value.height,
|
|
}
|
|
}
|
|
}
|