Struct sctk_adwaita::AdwaitaFrame
source · pub struct AdwaitaFrame { /* private fields */ }
Expand description
A simple set of decorations
Trait Implementations§
source§impl Debug for AdwaitaFrame
impl Debug for AdwaitaFrame
source§impl Drop for AdwaitaFrame
impl Drop for AdwaitaFrame
source§impl Frame for AdwaitaFrame
impl Frame for AdwaitaFrame
§type Config = FrameConfig
type Config = FrameConfig
Configuration for this frame
source§fn init(
base_surface: &WlSurface,
compositor: &Attached<WlCompositor>,
subcompositor: &Attached<WlSubcompositor>,
shm: &Attached<WlShm>,
theme_manager: Option<ThemeManager>,
implementation: Box<dyn FnMut(FrameRequest, u32, DispatchData<'_>)>
) -> Result<AdwaitaFrame, Error>
fn init( base_surface: &WlSurface, compositor: &Attached<WlCompositor>, subcompositor: &Attached<WlSubcompositor>, shm: &Attached<WlShm>, theme_manager: Option<ThemeManager>, implementation: Box<dyn FnMut(FrameRequest, u32, DispatchData<'_>)> ) -> Result<AdwaitaFrame, Error>
Initialize the Frame. Read more
source§fn new_seat(&mut self, seat: &Attached<WlSeat>)
fn new_seat(&mut self, seat: &Attached<WlSeat>)
Notify that a new wl_seat should be handled Read more
source§fn remove_seat(&mut self, seat: &WlSeat)
fn remove_seat(&mut self, seat: &WlSeat)
Notify that this seat has lost the pointer capability or
has been lost
source§fn set_states(&mut self, states: &[State]) -> bool
fn set_states(&mut self, states: &[State]) -> bool
Set the Window XDG states for the frame Read more
Hide or show the decorations Read more
source§fn set_resizable(&mut self, resizable: bool)
fn set_resizable(&mut self, resizable: bool)
Set whether interactive resize hints should be displayed
and reacted to
source§fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)
fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)
Subtracts the border dimensions from the given dimensions.
source§fn add_borders(&self, width: i32, height: i32) -> (i32, i32)
fn add_borders(&self, width: i32, height: i32) -> (i32, i32)
Adds the border dimensions to the given dimensions.
source§fn location(&self) -> (i32, i32)
fn location(&self) -> (i32, i32)
Returns the coordinates of the top-left corner of the borders relative to the content Read more
source§fn set_config(&mut self, config: FrameConfig)
fn set_config(&mut self, config: FrameConfig)
Sets the configuration for the frame