You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/embed/rust/src/ui/component/empty.rs

27 lines
533 B

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();
}
}