[−][src]Trait smithay_client_toolkit::shell::ShellSurface
Trait abstracting over shell surface protocols
This trait's API is designed to reflect the behavior of the current standard
shell surface protocol: xdg_shell. Compatibility implementations are
provided for older protocols.
Required methods
pub fn resize(&self, seat: &WlSeat, serial: u32, edges: ResizeEdge)[src]
Resizes the shell surface
pub fn move_(&self, seat: &WlSeat, serial: u32)[src]
Moves the shell surface
pub fn set_title(&self, title: String)[src]
Set the title of the shell surface
pub fn set_app_id(&self, app_id: String)[src]
Set the app id of the shell surface
pub fn set_fullscreen(&self, output: Option<&WlOutput>)[src]
Make fullscreen
pub fn unset_fullscreen(&self)[src]
Unset fullscreen
pub fn set_maximized(&self)[src]
Maximize surface
pub fn unset_maximized(&self)[src]
Unmaximize surface
pub fn set_minimized(&self)[src]
Minimize surface
pub fn set_geometry(&self, x: i32, y: i32, width: i32, height: i32)[src]
Set geometry
pub fn set_min_size(&self, size: Option<(i32, i32)>)[src]
Set minimum surface size
pub fn set_max_size(&self, size: Option<(i32, i32)>)[src]
Set maximum surface size
pub fn show_window_menu(&self, seat: &WlSeat, serial: u32, x: i32, y: i32)[src]
Show window menu.
pub fn get_xdg(&self) -> Option<&XdgToplevel>[src]
Retrive the XdgToplevel proxy if the underlying shell surface
uses the xdg_shell protocol.
This allows interactions with other protocol extensions, like
xdg_decoratins for example.