Skip to main content

Module drawing

Module drawing 

Source
Expand description

Render data: the recorded form of what a visual draws, its resources, and the operations on it (replay, bounds, hit testing).

Structs§

BoundsScope
The bounds accumulated outside of a scope, and how to map the bounds of the scope’s content when it ends.
BoundsVisitor
Computes the bounds of recorded operations.
CompositionRenderData
What a visual drew, on the UI thread: the recorded stream (kept for hit testing) and the id of its server-side counterpart.
CompositionRenderDataSceneBrushContent
The content of a scene brush on the server: the render data the UI thread recorded for it.
CompositionRenderDataSceneBrushContentProperties
What a scene brush sends to its server-side counterpart: the render data its content was recorded into, the bounds of the content (None: the bounds of what was drawn) and how the content is rasterized.
CompositorRefCountableResource
A server-side resource shared by reference counting.
CompositorResourceHolder
Holds the server-side counterparts of a media object, one per compositor the object is used with.
DrawBitmapPayload
DrawCustomPayload
DrawEllipsePayload
DrawGeometryPayload
DrawGlyphRunPayload
DrawLinePayload
DrawRectanglePayload
Followed by box_shadow_count box shadows.
HitTestScope
What a hit-tested push has to restore.
HitTestVisitor
Hit tests recorded operations against a point or a geometry.
ImmediateRenderDataSceneBrushContent
The content of a scene brush recorded without a compositor: a render data stream that refers to the drawn objects directly and is replayed on the thread that recorded it.
PushClipPayload
PushEffectPayload
PushGeometryClipPayload
PushOpacityMaskPayload
PushOpacityPayload
PushRenderOptionsPayload
PushTextOptionsPayload
PushTransformPayload
RenderDataDrawingContext
The drawing context core that records what is drawn into render data instead of drawing it.
RenderDataReader
Reads back what a RenderDataWriter wrote. Reading past the end panics, as the span slicing of upstream throws.
RenderDataResources
The resource table of a render data stream: operations refer to resources by handle.
RenderDataStream
A recorded sequence of drawing operations with its resource table.
RenderDataWriter
Appends the operations of a render data stream to a byte buffer.
ReplayScope
What a replayed push has to undo.
ReplayVisitor
Replays recorded operations onto a platform drawing context.
ServerCompositionRenderData
What a visual drew, on the server: the stream to replay, and the subscriptions to the server-side resources it draws with.
ServerCompositionSimplePen
The server-side counterpart of a mutable pen.

Enums§

RenderDataOpcode
The opcode that starts every operation of a render data stream.
RenderDataResource
A resource referenced by render data.

Constants§

NULL_HANDLE
The handle of “no resource”.

Traits§

ICompositionRenderResource
A mutable media object (brush, pen, geometry, transform) that has a server-side counterpart on every compositor it is used with.
IRenderDataGeometry
A geometry as referenced by render data: something that resolves to a platform geometry when the data is replayed.
IRenderDataPayload
The fixed-size part of an operation of a render data stream, written after its opcode.
IRenderDataVisitor
Walks the operations of a render data stream. A push returns a scope value that is handed back to on_pop when the matching pop is reached.