pub struct CompositionSurface { /* private fields */ }Expand description
A surface that a surface visual shows. The server-side counterpart provides the bitmap.
Implementations§
Source§impl CompositionSurface
impl CompositionSurface
Sourcepub fn new(
compositor: &Rc<Compositor>,
server: ServerObjectId,
) -> Rc<CompositionSurface>
pub fn new( compositor: &Rc<Compositor>, server: ServerObjectId, ) -> Rc<CompositionSurface>
Creates the UI-thread side of a surface whose server side is the object with the given id.
pub fn compositor(&self) -> &Rc<Compositor>
pub fn is_disposed(&self) -> bool
pub fn dispose(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompositionSurface
impl !RefUnwindSafe for CompositionSurface
impl !Send for CompositionSurface
impl !Sync for CompositionSurface
impl !UnwindSafe for CompositionSurface
impl Unpin for CompositionSurface
impl UnsafeUnpin for CompositionSurface
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