mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-30 20:02:34 +00:00
14 lines
294 B
Rust
14 lines
294 B
Rust
use crate::ui::geometry::{Offset, Point, Rect};
|
|
|
|
pub const WIDTH: i32 = 240;
|
|
pub const HEIGHT: i32 = 240;
|
|
pub const LINE_SPACE: i32 = 4;
|
|
|
|
pub const fn size() -> Offset {
|
|
Offset::new(WIDTH, HEIGHT)
|
|
}
|
|
|
|
pub const fn screen() -> Rect {
|
|
Rect::from_top_left_and_size(Point::zero(), size())
|
|
}
|