pub enum RenderDataResource {
Show 13 variants
Brush(Rc<dyn IBrush>),
Pen(Rc<dyn IPen>),
GeometryImpl(Arc<dyn IGeometryImpl>),
Geometry(Rc<dyn IRenderDataGeometry>),
GlyphRun(Arc<Arc<dyn IGlyphRunImpl>>),
Bitmap(Arc<RefCounted<SharedBitmapImpl>>),
CustomDrawOperation(Arc<dyn ICustomDrawOperation>),
Effect(Arc<dyn IImmutableEffect>),
ServerBrush {
server: ServerObjectId,
client: Rc<dyn IBrush>,
},
ServerPen {
server: ServerObjectId,
client: Rc<dyn IPen>,
},
ServerGeometry {
server: ServerObjectId,
client: Rc<dyn IRenderDataGeometry>,
},
ClientPen(Rc<dyn IPen>),
NotSent,
}Expand description
A resource referenced by render data.
On the UI thread a resource that has a server-side counterpart is kept
as the pair of the counterpart’s id and the client object (which is what
hit testing uses). Only the id is sent; the server resolves it to the
server object, so a deserialized table holds no Server* entries.
Variants§
Brush(Rc<dyn IBrush>)
Pen(Rc<dyn IPen>)
GeometryImpl(Arc<dyn IGeometryImpl>)
Geometry(Rc<dyn IRenderDataGeometry>)
GlyphRun(Arc<Arc<dyn IGlyphRunImpl>>)
A recorded glyph run: one counted reference (IRef<IGlyphRunImpl>
upstream), shared by the client render data and the server render
data it is sent to, so that the glyph run is held once until both
are released.
Bitmap(Arc<RefCounted<SharedBitmapImpl>>)
A recorded bitmap: one counted reference (IRef<IBitmapImpl>
upstream), shared as a glyph run is.
CustomDrawOperation(Arc<dyn ICustomDrawOperation>)
Effect(Arc<dyn IImmutableEffect>)
ServerBrush
ServerPen
ServerGeometry
ClientPen(Rc<dyn IPen>)
A mutable pen kept on the UI thread for hit testing only; it is not sent to the server.
NotSent
The slot of a resource that was not sent to the server.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RenderDataResource
impl !Send for RenderDataResource
impl !Sync for RenderDataResource
impl !UnwindSafe for RenderDataResource
impl Freeze for RenderDataResource
impl Unpin for RenderDataResource
impl UnsafeUnpin for RenderDataResource
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more