pub trait ShellSurface: Debug + Send + Sync {
Show 14 methods // Required methods fn resize(&self, seat: &WlSeat, serial: u32, edges: ResizeEdge); fn move_(&self, seat: &WlSeat, serial: u32); fn set_title(&self, title: String); fn set_app_id(&self, app_id: String); fn set_fullscreen(&self, output: Option<&WlOutput>); fn unset_fullscreen(&self); fn set_maximized(&self); fn unset_maximized(&self); fn set_minimized(&self); fn set_geometry(&self, x: i32, y: i32, width: i32, height: i32); fn set_min_size(&self, size: Option<(i32, i32)>); fn set_max_size(&self, size: Option<(i32, i32)>); fn show_window_menu(&self, seat: &WlSeat, serial: u32, x: i32, y: i32); fn get_xdg(&self) -> Option<&XdgToplevel>;
}
Expand description

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§

source

fn resize(&self, seat: &WlSeat, serial: u32, edges: ResizeEdge)

Resizes the shell surface

source

fn move_(&self, seat: &WlSeat, serial: u32)

Moves the shell surface

source

fn set_title(&self, title: String)

Set the title of the shell surface

source

fn set_app_id(&self, app_id: String)

Set the app id of the shell surface

source

fn set_fullscreen(&self, output: Option<&WlOutput>)

Make fullscreen

source

fn unset_fullscreen(&self)

Unset fullscreen

source

fn set_maximized(&self)

Maximize surface

source

fn unset_maximized(&self)

Unmaximize surface

source

fn set_minimized(&self)

Minimize surface

source

fn set_geometry(&self, x: i32, y: i32, width: i32, height: i32)

Set geometry

source

fn set_min_size(&self, size: Option<(i32, i32)>)

Set minimum surface size

source

fn set_max_size(&self, size: Option<(i32, i32)>)

Set maximum surface size

source

fn show_window_menu(&self, seat: &WlSeat, serial: u32, x: i32, y: i32)

Show window menu.

source

fn get_xdg(&self) -> Option<&XdgToplevel>

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.

Implementors§