pub struct ServerCompositionDrawingSurface { /* private fields */ }Expand description
The server-side counterpart of a
CompositionDrawingSurface:
a surface whose content is a snapshot of an imported GPU image.
Implementations§
Source§impl ServerCompositionDrawingSurface
impl ServerCompositionDrawingSurface
pub fn new( compositor: &Rc<ServerCompositor>, ) -> Rc<ServerCompositionDrawingSurface>
Sourcepub fn bitmap_ref(&self) -> Option<RefCounted<SharedBitmapImpl>>
pub fn bitmap_ref(&self) -> Option<RefCounted<SharedBitmapImpl>>
The counted reference to the content of the surface.
pub fn update_with_automatic_sync( &self, image: &ServerImportedGpuImage, ) -> Result<(), ServerJobError>
pub fn update_with_keyed_mutex( &self, image: &ServerImportedGpuImage, acquire_index: u32, release_index: u32, ) -> Result<(), ServerJobError>
pub fn update_with_semaphores( &self, image: &ServerImportedGpuImage, wait: &ServerImportedGpuSemaphore, signal: &ServerImportedGpuSemaphore, ) -> Result<(), ServerJobError>
pub fn update_with_timeline_semaphores( &self, image: &ServerImportedGpuImage, wait: &ServerImportedGpuSemaphore, wait_for_value: u64, signal: &ServerImportedGpuSemaphore, signal_value: u64, ) -> Result<(), ServerJobError>
Trait Implementations§
Source§impl IServerCompositionSurface for ServerCompositionDrawingSurface
impl IServerCompositionSurface for ServerCompositionDrawingSurface
Source§fn changed(&self) -> &ServerCompositionSurfaceChanged
fn changed(&self) -> &ServerCompositionSurfaceChanged
Raised when the content changed.
Source§impl IServerObject for ServerCompositionDrawingSurface
impl IServerObject for ServerCompositionDrawingSurface
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.
fn as_any(&self) -> &dyn Any
fn into_any_rc(self: Rc<Self>) -> Rc<dyn Any>
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 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_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.
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_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.
Auto Trait Implementations§
impl !Freeze for ServerCompositionDrawingSurface
impl !RefUnwindSafe for ServerCompositionDrawingSurface
impl !Send for ServerCompositionDrawingSurface
impl !Sync for ServerCompositionDrawingSurface
impl !UnwindSafe for ServerCompositionDrawingSurface
impl Unpin for ServerCompositionDrawingSurface
impl UnsafeUnpin for ServerCompositionDrawingSurface
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