pub struct CompositionRenderData { /* private fields */ }Expand description
What a visual drew, on the UI thread: the recorded stream (kept for hit testing) and the id of its server-side counterpart.
Implementations§
Source§impl CompositionRenderData
impl CompositionRenderData
Sourcepub fn server(&self) -> ServerObjectId
pub fn server(&self) -> ServerObjectId
The id of the server-side render data.
Sourcepub fn dispose(&self)
pub fn dispose(&self)
Releases the render data: the resource references it holds and its server-side counterpart.
Sourcepub fn hit_test_geometry(&self, geometry: &Ref<Geometry>) -> IntersectionResult
pub fn hit_test_geometry(&self, geometry: &Ref<Geometry>) -> IntersectionResult
How the drawn content intersects a geometry.
Trait Implementations§
Source§impl ICompositorSerializable for CompositionRenderData
impl ICompositorSerializable for CompositionRenderData
Source§fn try_get_server(&self, _c: &Compositor) -> Option<ServerObjectId>
fn try_get_server(&self, _c: &Compositor) -> Option<ServerObjectId>
The server-side counterpart of the object on compositor
c, if it
has one.Source§fn serialize_changes(&self, _c: &Compositor, writer: &mut BatchStreamWriter<'_>)
fn serialize_changes(&self, _c: &Compositor, writer: &mut BatchStreamWriter<'_>)
Writes the pending changes of the object for compositor
c.Source§fn serialization_key(&self) -> *const ()
fn serialization_key(&self) -> *const ()
The identity of the object, by which a compositor avoids queueing
it twice. The default is the address of the implementing value; an
adapter around an object returns the identity of that object.
Source§fn prepare_serialization(&self, _c: &Compositor)
fn prepare_serialization(&self, _c: &Compositor)
Called before the changes of the object are written for compositor
c. Read moreAuto Trait Implementations§
impl !Freeze for CompositionRenderData
impl !RefUnwindSafe for CompositionRenderData
impl !Send for CompositionRenderData
impl !Sync for CompositionRenderData
impl !UnwindSafe for CompositionRenderData
impl Unpin for CompositionRenderData
impl UnsafeUnpin for CompositionRenderData
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