mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-30 20:02:34 +00:00
27 lines
533 B
Rust
27 lines
533 B
Rust
use super::{Component, Event, EventCtx, Never};
|
|
use crate::ui::geometry::Rect;
|
|
|
|
pub struct Empty;
|
|
|
|
impl Component for Empty {
|
|
type Msg = Never;
|
|
|
|
fn place(&mut self, _bounds: Rect) -> Rect {
|
|
Rect::zero()
|
|
}
|
|
|
|
fn event(&mut self, _ctx: &mut EventCtx, _event: Event) -> Option<Self::Msg> {
|
|
None
|
|
}
|
|
|
|
fn paint(&mut self) {}
|
|
}
|
|
|
|
#[cfg(feature = "ui_debug")]
|
|
impl crate::trace::Trace for Empty {
|
|
fn trace(&self, t: &mut dyn crate::trace::Tracer) {
|
|
t.open("Empty");
|
|
t.close();
|
|
}
|
|
}
|