pub struct WlShell { /* private fields */ }Expand description
A wl_shell object.
See the documentation of the module for the interface description.
Implementations§
Source§impl WlShell
impl WlShell
Sourcepub fn set_handler(&self, handler: impl WlShellHandler)
pub fn set_handler(&self, handler: impl WlShellHandler)
Sets a new handler.
Sourcepub fn set_boxed_handler(&self, handler: Box<dyn WlShellHandler>)
pub fn set_boxed_handler(&self, handler: Box<dyn WlShellHandler>)
Sets a new, already boxed handler.
Source§impl WlShell
impl WlShell
Sourcepub const MSG__GET_SHELL_SURFACE__SINCE: u32 = 1u32
pub const MSG__GET_SHELL_SURFACE__SINCE: u32 = 1u32
Since when the get_shell_surface message is available.
Sourcepub fn try_send_get_shell_surface(
&self,
id: &Rc<WlShellSurface>,
surface: &Rc<WlSurface>,
) -> Result<(), ObjectError>
pub fn try_send_get_shell_surface( &self, id: &Rc<WlShellSurface>, surface: &Rc<WlSurface>, ) -> Result<(), ObjectError>
create a shell surface from a surface
Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.
Only one shell surface can be associated with a given surface.
§Arguments
id: shell surface to createsurface: surface to be given the shell surface role
Sourcepub fn send_get_shell_surface(
&self,
id: &Rc<WlShellSurface>,
surface: &Rc<WlSurface>,
)
pub fn send_get_shell_surface( &self, id: &Rc<WlShellSurface>, surface: &Rc<WlSurface>, )
create a shell surface from a surface
Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.
Only one shell surface can be associated with a given surface.
§Arguments
id: shell surface to createsurface: surface to be given the shell surface role
Sourcepub fn new_try_send_get_shell_surface(
&self,
surface: &Rc<WlSurface>,
) -> Result<Rc<WlShellSurface>, ObjectError>
pub fn new_try_send_get_shell_surface( &self, surface: &Rc<WlSurface>, ) -> Result<Rc<WlShellSurface>, ObjectError>
create a shell surface from a surface
Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.
Only one shell surface can be associated with a given surface.
§Arguments
surface: surface to be given the shell surface role
Sourcepub fn new_send_get_shell_surface(
&self,
surface: &Rc<WlSurface>,
) -> Rc<WlShellSurface>
pub fn new_send_get_shell_surface( &self, surface: &Rc<WlSurface>, ) -> Rc<WlShellSurface>
create a shell surface from a surface
Create a shell surface for an existing surface. This gives the wl_surface the role of a shell surface. If the wl_surface already has another role, it raises a protocol error.
Only one shell surface can be associated with a given surface.
§Arguments
surface: surface to be given the shell surface role
Trait Implementations§
Source§impl ConcreteObject for WlShell
impl ConcreteObject for WlShell
Source§const XML_VERSION: u32 = 1u32
const XML_VERSION: u32 = 1u32
Source§const INTERFACE: ObjectInterface = ObjectInterface::WlShell
const INTERFACE: ObjectInterface = ObjectInterface::WlShell
Source§const INTERFACE_NAME: &str = "wl_shell"
const INTERFACE_NAME: &str = "wl_shell"
Source§impl Object for WlShell
impl Object for WlShell
Source§fn core(&self) -> &ObjectCore
fn core(&self) -> &ObjectCore
ObjectCore of this object.Source§fn unset_handler(&self)
fn unset_handler(&self)
Source§fn get_handler_any_ref(
&self,
) -> Result<HandlerRef<'_, dyn Any>, HandlerAccessError>
fn get_handler_any_ref( &self, ) -> Result<HandlerRef<'_, dyn Any>, HandlerAccessError>
Source§fn get_handler_any_mut(
&self,
) -> Result<HandlerMut<'_, dyn Any>, HandlerAccessError>
fn get_handler_any_mut( &self, ) -> Result<HandlerMut<'_, dyn Any>, HandlerAccessError>
Auto Trait Implementations§
impl !Freeze for WlShell
impl !RefUnwindSafe for WlShell
impl !Send for WlShell
impl !Sync for WlShell
impl Unpin for WlShell
impl !UnwindSafe for WlShell
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
Source§impl<T> ObjectCoreApi for T
impl<T> ObjectCoreApi for T
Source§fn client(&self) -> Option<Rc<Client>>
fn client(&self) -> Option<Rc<Client>>
Client associated with this object, if any.Source§fn interface(&self) -> ObjectInterface
fn interface(&self) -> ObjectInterface
ObjectInterface of this object.