pub struct Hud {
pub inspector_enabled: bool,
pub hovered: Option<Rect>,
pub hovered_semantics: Option<HoveredInfo>,
pub metrics: Option<Metrics>,
/* private fields */
}Fields§
§inspector_enabled: bool§hovered: Option<Rect>§hovered_semantics: Option<HoveredInfo>§metrics: Option<Metrics>Implementations§
Source§impl Hud
impl Hud
pub fn new() -> Self
pub fn toggle_inspector(&mut self)
pub fn set_hovered(&mut self, r: Option<Rect>, info: Option<HoveredInfo>)
pub fn select_widget(&mut self, info: SelectedWidget)
pub fn clear_selection(&mut self)
pub fn overlay(&mut self, scene: &mut Scene)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hud
impl RefUnwindSafe for Hud
impl Send for Hud
impl Sync for Hud
impl Unpin for Hud
impl UnsafeUnpin for Hud
impl UnwindSafe for Hud
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more