pub struct RendererDiagnostics { /* private fields */ }Expand description
Manages configurable diagnostics that can be displayed by a renderer.
Implementations§
Source§impl RendererDiagnostics
impl RendererDiagnostics
Sourcepub const DEBUG_OVERLAYS_PROPERTY_NAME: &'static str = "DebugOverlays"
pub const DEBUG_OVERLAYS_PROPERTY_NAME: &'static str = "DebugOverlays"
The name property_changed reports for
debug_overlays.
Sourcepub const LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME: &'static str = "LastLayoutPassTiming"
pub const LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME: &'static str = "LastLayoutPassTiming"
The name property_changed reports for
last_layout_pass_timing.
pub fn new() -> Rc<RendererDiagnostics>
Sourcepub fn debug_overlays(&self) -> RendererDebugOverlays
pub fn debug_overlays(&self) -> RendererDebugOverlays
Gets which debug overlays are displayed by the renderer.
Sourcepub fn set_debug_overlays(&self, value: RendererDebugOverlays)
pub fn set_debug_overlays(&self, value: RendererDebugOverlays)
Sets which debug overlays are displayed by the renderer.
Sourcepub fn last_layout_pass_timing(&self) -> LayoutPassTiming
pub fn last_layout_pass_timing(&self) -> LayoutPassTiming
Gets the last layout pass timing that the renderer may display.
Sourcepub fn set_last_layout_pass_timing(&self, value: LayoutPassTiming)
pub fn set_last_layout_pass_timing(&self, value: LayoutPassTiming)
Sets the last layout pass timing that the renderer may display.
Sourcepub fn property_changed(
&self,
handler: impl Fn(&RendererDiagnostics, &str) + 'static,
) -> Rc<dyn IDisposable>
pub fn property_changed( &self, handler: impl Fn(&RendererDiagnostics, &str) + 'static, ) -> Rc<dyn IDisposable>
Occurs when a property value changes. The handler receives the name of the property.
Auto Trait Implementations§
impl !Freeze for RendererDiagnostics
impl !RefUnwindSafe for RendererDiagnostics
impl !Send for RendererDiagnostics
impl !Sync for RendererDiagnostics
impl !UnwindSafe for RendererDiagnostics
impl Unpin for RendererDiagnostics
impl UnsafeUnpin for RendererDiagnostics
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more