pub struct EventWindow { /* private fields */ }Expand description
Themed overlay that displays recent input events.
Implementations§
Source§impl EventWindow
impl EventWindow
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Whether the window is currently visible.
Sourcepub fn entry_count(&self) -> usize
pub fn entry_count(&self) -> usize
Number of entries currently in the list.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Whether event collection is enabled.
Sourcepub fn set_enabled(&mut self, val: bool)
pub fn set_enabled(&mut self, val: bool)
Enable or disable event collection. When disabled, push_event is a no-op.
Sourcepub fn diag_state(&self) -> u32
pub fn diag_state(&self) -> u32
Packed event-window diagnostic state.
Sourcepub fn set_frozen(&mut self, val: bool)
pub fn set_frozen(&mut self, val: bool)
Freeze event aging. While frozen, handle_event(Tick) is a no-op
so entries don’t age or expire during multi-frame dirty renders.
Sourcepub fn set_dma2d_mode(&mut self, val: bool)
pub fn set_dma2d_mode(&mut self, val: bool)
Enable DMA2D rendering mode. When true, draw() becomes a no-op
because the DMA2D overlay pipeline handles rendering externally.
Sourcepub fn is_dma2d_mode(&self) -> bool
pub fn is_dma2d_mode(&self) -> bool
Whether DMA2D rendering mode is active.
Sourcepub fn for_each_visible<F: FnMut(usize, &str)>(&self, f: F)
pub fn for_each_visible<F: FnMut(usize, &str)>(&self, f: F)
Iterate visible entries, calling f(line_index, text) for each.
Sourcepub fn font(&self) -> &'static BitmapFont
pub fn font(&self) -> &'static BitmapFont
Reference to the font used for text rendering.
Sourcepub fn line_height(&self) -> i32
pub fn line_height(&self) -> i32
Line height: font scaled_height + gap.
Sourcepub fn push_event(&mut self, text: String)
pub fn push_event(&mut self, text: String)
Push a pre-formatted event string into the display list.