pub struct Subsurface(/* private fields */);Expand description
A wl_surface of our own, and while shown the subsurface role that
puts it over a window. Clones share it. Wayland proxies may be used from
any thread; the backend uses it from its UI thread.
Implementations§
Source§impl Subsurface
impl Subsurface
Sourcepub unsafe fn new(display: *mut c_void) -> Result<Subsurface, String>
pub unsafe fn new(display: *mut c_void) -> Result<Subsurface, String>
A surface on the toolkit’s connection, not shown yet.
§Safety
display is the toolkit’s live wl_display, which stays connected
as long as the process uses it.
Sourcepub fn handle(&self) -> SurfaceHandle
pub fn handle(&self) -> SurfaceHandle
What the app gets: it keeps the surface alive.
Trait Implementations§
Source§impl Clone for Subsurface
impl Clone for Subsurface
Source§impl NativeSurface for Subsurface
impl NativeSurface for Subsurface
fn window_handle(&self) -> Result<RawWindowHandle, HandleError>
fn display_handle(&self) -> Result<RawDisplayHandle, HandleError>
Auto Trait Implementations§
impl !RefUnwindSafe for Subsurface
impl !UnwindSafe for Subsurface
impl Forget for Subsurface
impl Freeze for Subsurface
impl Move for Subsurface
impl Send for Subsurface
impl Sync for Subsurface
impl Unpin for Subsurface
impl UnsafeUnpin for Subsurface
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.