pub struct CompositionTargetOverlays { /* private fields */ }Expand description
The debug overlays of a composition target: the frame counter and the time graphs.
Time is read from the compositor clock.
Implementations§
Source§impl CompositionTargetOverlays
impl CompositionTargetOverlays
pub fn new(compositor: &Rc<ServerCompositor>) -> Self
pub fn require_layer(&self) -> bool
pub fn on_changed(&self, debug_overlays: RendererDebugOverlays)
pub fn draw( &self, target: &ServerCompositionTarget, target_context: &mut dyn IDrawingContextImpl, has_layer: bool, )
pub fn mark_update_call_start(&self, target: &ServerCompositionTarget)
pub fn mark_update_call_end(&self, target: &ServerCompositionTarget)
pub fn record_global_compositor_update_time( &self, _target: &ServerCompositionTarget, elapsed: Duration, )
pub fn on_last_layout_pass_timing_changed( &self, _target: &ServerCompositionTarget, last_layout_pass_timing: LayoutPassTiming, )
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompositionTargetOverlays
impl !RefUnwindSafe for CompositionTargetOverlays
impl !Send for CompositionTargetOverlays
impl !Sync for CompositionTargetOverlays
impl !UnwindSafe for CompositionTargetOverlays
impl Unpin for CompositionTargetOverlays
impl UnsafeUnpin for CompositionTargetOverlays
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