pub struct ServerCompositionRenderData { /* private fields */ }Expand description
What a visual drew, on the server: the stream to replay, and the subscriptions to the server-side resources it draws with.
Implementations§
Source§impl ServerCompositionRenderData
impl ServerCompositionRenderData
pub fn new(compositor: &Rc<ServerCompositor>) -> Rc<ServerCompositionRenderData>
pub fn is_disposed(&self) -> bool
Sourcepub fn bounds(&self) -> Option<LtrbRect>
pub fn bounds(&self) -> Option<LtrbRect>
The bounds of the drawn content, rounded outwards to whole units;
None if nothing is drawn.
Sourcepub fn apply_render_bounds_rounding_rect(rect: Option<Rect>) -> Option<Rect>
pub fn apply_render_bounds_rounding_rect(rect: Option<Rect>) -> Option<Rect>
Rounds render bounds outwards to whole units.
Sourcepub fn apply_render_bounds_rounding(rect: Option<LtrbRect>) -> Option<LtrbRect>
pub fn apply_render_bounds_rounding(rect: Option<LtrbRect>) -> Option<LtrbRect>
Rounds render bounds outwards to whole units.
Sourcepub fn render(&self, context: &mut dyn IDrawingContextImpl)
pub fn render(&self, context: &mut dyn IDrawingContextImpl)
Replays the drawn content onto a platform drawing context.
Trait Implementations§
Source§impl IServerObject for ServerCompositionRenderData
impl IServerObject for ServerCompositionRenderData
Source§fn deserialize_changes_core(
&self,
reader: &mut BatchStreamReader<'_>,
_committed_at: Duration,
)
fn deserialize_changes_core( &self, reader: &mut BatchStreamReader<'_>, _committed_at: Duration, )
Reads the changes of the object from a batch.
Source§fn values_invalidated(&self)
fn values_invalidated(&self)
Called after a group of values of the object changed.
Source§fn as_render_resource(self: Rc<Self>) -> Option<Rc<dyn IServerRenderResource>>
fn as_render_resource(self: Rc<Self>) -> Option<Rc<dyn IServerRenderResource>>
The object as a render resource, if it is one.
fn as_any(&self) -> &dyn Any
fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
Source§fn deserialize_changes(
&self,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
fn deserialize_changes( &self, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Applies the changes of the object from a batch.
Source§fn as_brush(self: Rc<Self>) -> Option<Rc<dyn IBrush>>
fn as_brush(self: Rc<Self>) -> Option<Rc<dyn IBrush>>
The object as a brush, if it is a server-side brush.
Source§fn as_pen(self: Rc<Self>) -> Option<Rc<dyn IPen>>
fn as_pen(self: Rc<Self>) -> Option<Rc<dyn IPen>>
The object as a pen, if it is a server-side pen.
Source§fn as_render_data_geometry(
self: Rc<Self>,
) -> Option<Rc<dyn IRenderDataGeometry>>
fn as_render_data_geometry( self: Rc<Self>, ) -> Option<Rc<dyn IRenderDataGeometry>>
The object as a geometry usable by render data, if it is a
server-side geometry.
Source§fn as_transform(self: Rc<Self>) -> Option<Rc<dyn ITransform>>
fn as_transform(self: Rc<Self>) -> Option<Rc<dyn ITransform>>
The object as a transform, if it is a server-side transform.
Source§fn as_gradient_stop(self: Rc<Self>) -> Option<Rc<dyn IGradientStop>>
fn as_gradient_stop(self: Rc<Self>) -> Option<Rc<dyn IGradientStop>>
The object as a gradient stop, if it is a server-side gradient stop.
Source§fn as_surface(self: Rc<Self>) -> Option<Rc<dyn IServerCompositionSurface>>
fn as_surface(self: Rc<Self>) -> Option<Rc<dyn IServerCompositionSurface>>
The object as a composition surface, if it is one.
Source§fn as_animated(self: Rc<Self>) -> Option<Rc<dyn IAnimatedServerObject>>
fn as_animated(self: Rc<Self>) -> Option<Rc<dyn IAnimatedServerObject>>
The object as an animatable object, if it is one.
Source§impl IServerRenderResource for ServerCompositionRenderData
impl IServerRenderResource for ServerCompositionRenderData
fn add_observer(&self, observer: &Rc<dyn IServerRenderResourceObserver>)
fn remove_observer(&self, observer: &Rc<dyn IServerRenderResourceObserver>)
fn queued_invalidate(&self)
Source§impl IServerRenderResourceHost for ServerCompositionRenderData
impl IServerRenderResourceHost for ServerCompositionRenderData
Source§fn compositor(&self) -> Option<Rc<ServerCompositor>>
fn compositor(&self) -> Option<Rc<ServerCompositor>>
The compositor of the resource, while it is alive.
Source§fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
fn as_render_resource_rc(&self) -> Option<Rc<dyn IServerRenderResource>>
The resource as a shared handle, for the invalidation queue.
Source§fn resource_property_changed(&self)
fn resource_property_changed(&self)
Called once per group of property changes, before the queued
invalidation.
Source§impl IServerRenderResourceObserver for ServerCompositionRenderData
impl IServerRenderResourceObserver for ServerCompositionRenderData
fn dependency_queued_invalidate(&self, _sender: &dyn IServerRenderResource)
Auto Trait Implementations§
impl !Freeze for ServerCompositionRenderData
impl !RefUnwindSafe for ServerCompositionRenderData
impl !Send for ServerCompositionRenderData
impl !Sync for ServerCompositionRenderData
impl !UnwindSafe for ServerCompositionRenderData
impl Unpin for ServerCompositionRenderData
impl UnsafeUnpin for ServerCompositionRenderData
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