mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-12 01:28:10 +00:00
15 lines
323 B
Rust
15 lines
323 B
Rust
use crate::ui::geometry::{Offset, Point, Rect};
|
|
|
|
pub const WIDTH: i32 = 128;
|
|
pub const HEIGHT: i32 = 128;
|
|
pub const LINE_SPACE: i32 = 1;
|
|
pub const FONT_BPP: i32 = 1;
|
|
|
|
pub const fn size() -> Offset {
|
|
Offset::new(WIDTH, HEIGHT)
|
|
}
|
|
|
|
pub const fn screen() -> Rect {
|
|
Rect::from_top_left_and_size(Point::zero(), size())
|
|
}
|