RendererDiagnostics
struct · ferroui-base · v0.5.0
struct RendererDiagnostics
Manages configurable diagnostics that can be displayed by a renderer.
Members
DEBUG_OVERLAYS_PROPERTY_NAMELAST_LAYOUT_PASS_TIMING_PROPERTY_NAMEnewdebug_overlaysset_debug_overlaysproperty_changed
DEBUG_OVERLAYS_PROPERTY_NAME
const DEBUG_OVERLAYS_PROPERTY_NAME: &'static str
The name property_changed reports for
debug_overlays.
LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME
const LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME: &'static str
The name property_changed reports for
last_layout_pass_timing.
new
fn new() -> Rc<RendererDiagnostics>
debug_overlays
fn debug_overlays(self: &Self) -> RendererDebugOverlays
Gets which debug overlays are displayed by the renderer.
set_debug_overlays
fn set_debug_overlays(self: &Self, value: RendererDebugOverlays)
Sets which debug overlays are displayed by the renderer.
property_changed
fn property_changed(self: &Self, handler: impl Fn(&RendererDiagnostics, &str) -> () + 'static) -> Subscription
Occurs when a property value changes. The handler receives the name
of the property. Dropping the returned guard removes the handler;
Subscription::detach keeps it for the life of the diagnostics.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.