Skip to main content

Module rendering

Module rendering 

Source
Expand description

Rendering contracts: the renderer of a visual tree and the presentation source that hosts one.

Modules§

composition
The composition renderer.
scene_graph
Scene graph primitives shared by the drawing contexts and the render data.
utilities
Rendering helpers shared by the rendering backends.

Structs§

DefaultRenderLoop
Default implementation of the application render loop.
DefaultRenderTimer
Defines a default render timer that uses a standard timer.
ImmediateRenderer
Renders a visual tree directly to a drawing context, without the compositor. Used for rendering visuals to bitmaps and visual brushes.
LayoutPassTiming
Represents a single layout pass timing.
ManagedHitTester
A hit tester that walks the visual tree directly.
OwnedDisposable
A disposable value that is only disposed with its holder when the holder owns it.
PlatformRenderInterfaceContextManager
Owns the backend render context of a renderer and recreates it (together with the graphics context it is bound to) when it is lost.
RenderLoop
Provides factory methods for creating IRenderLoop instances.
RendererDebugOverlays
Represents the various types of overlays that can be drawn by a renderer.
RendererDiagnostics
Manages configurable diagnostics that can be displayed by a renderer.
SceneInvalidatedEventArgs
Provides data for the scene invalidated event of a renderer.
SleepLoopRenderTimer
A render timer that ticks on a thread of its own, sleeping between the ticks.
SwapchainBase
A helper class for composition-backed swapchains, should not be a public API yet.
ThreadProxyRenderTimer
A render timer that moves the ticks of another timer to a dedicated thread.
UiThreadRenderTimer
Render timer that ticks on UI thread. Useful for debugging or bootstrapping on new platforms.
ZIndexComparer
Orders visuals by their Z index.

Enums§

SwapchainImagePresentStatus
The state of the last presentation of a swapchain image.

Traits§

DefaultRenderTimerImpl
The overridable members of DefaultRenderTimer.
ICustomHitTest
An interface to allow non-templated controls to customize their hit testing when using a renderer with a simple hit-testing algorithm, where just the bounds or geometries are hit-tested.
IHitTester
An interface to allow hit testing of a visual tree.
IPresentationSource
The host of a visual tree: connects the tree to its renderer, layout root and input root.
IRenderLoop
The application render loop.
IRenderLoopTask
A task polled by the render loop on each tick.
IRenderTimer
Defines the interface implemented by an application render timer.
IRenderer
Defines the interface for a renderer.
ISwapchainImage
An image of a composition-backed swapchain.
OwnedDisposableValue
A value that OwnedDisposable can dispose.
SwapchainImageFactory
The image factory of a swapchain: the member a concrete swapchain has to provide.

Type Aliases§

RenderTimerSubscription
The running timer returned by DefaultRenderTimerImpl::start_core; disposing it stops the ticks. It is shared between threads, unlike the Rc-based disposables of the object model.
RenderTimerTick
The callback of an IRenderTimer. The argument is the timestamp of the tick on the timer’s monotonic clock.