pub struct XdgToplevel { /* private fields */ }
Expand description
XdgToplevel
is a surface that should appear as a top-level window.
XdgToplevel
will be implemented as a scenic View
/ViewProvider
that
hosts the surface contents. The actual presentation of the View
will be
deferred to whatever user shell is used.
Implementations§
Source§impl XdgToplevel
impl XdgToplevel
Sourcepub fn configure(
this: ObjectRef<Self>,
client: &mut Client,
) -> Result<(), Error>
pub fn configure( this: ObjectRef<Self>, client: &mut Client, ) -> Result<(), Error>
Performs a configure sequence for the XdgToplevel object referenced by
this
.
Sourcepub fn set_parent(&mut self, parent: Option<ObjectRef<XdgToplevel>>)
pub fn set_parent(&mut self, parent: Option<ObjectRef<XdgToplevel>>)
Sets the parent for this XdgToplevel
.
Sourcepub fn new(
xdg_surface_ref: ObjectRef<XdgSurface>,
client: &mut Client,
flatland: FlatlandPtr,
) -> Result<Self, Error>
pub fn new( xdg_surface_ref: ObjectRef<XdgSurface>, client: &mut Client, flatland: FlatlandPtr, ) -> Result<Self, Error>
Creates a new XdgToplevel
surface.
pub fn finalize_commit( this: ObjectRef<Self>, client: &mut Client, ) -> Result<bool, Error>
pub fn shutdown(&self, client: &Client)
Trait Implementations§
Source§impl RequestReceiver<XdgToplevel> for XdgToplevel
impl RequestReceiver<XdgToplevel> for XdgToplevel
Auto Trait Implementations§
impl Freeze for XdgToplevel
impl !RefUnwindSafe for XdgToplevel
impl !Send for XdgToplevel
impl !Sync for XdgToplevel
impl Unpin for XdgToplevel
impl !UnwindSafe for XdgToplevel
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