22 lines
400 B
Rust
22 lines
400 B
Rust
use crate::color::Color;
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
pub struct Rect {
|
|
pub x: i32,
|
|
pub y: i32,
|
|
pub w: i32,
|
|
pub h: i32,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
|
pub struct WindowId(pub u32);
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub struct Window {
|
|
pub id: WindowId,
|
|
pub viewport: Rect,
|
|
pub has_focus: bool,
|
|
pub title: String,
|
|
pub color: Color,
|
|
}
|