Struct sctk_adwaita::AdwaitaFrame
source · [−]pub struct AdwaitaFrame { /* private fields */ }
Expand description
A simple set of decorations
Trait Implementations
sourceimpl Debug for AdwaitaFrame
impl Debug for AdwaitaFrame
sourceimpl Drop for AdwaitaFrame
impl Drop for AdwaitaFrame
sourceimpl Frame for AdwaitaFrame
impl Frame for AdwaitaFrame
type Config = FrameConfig
type Config = FrameConfig
Configuration for this frame
sourcefn 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
sourcefn 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
sourcefn 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 Read more
sourcefn 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
sourcefn set_resizable(&mut self, resizable: bool)
fn set_resizable(&mut self, resizable: bool)
Set whether interactive resize hints should be displayed
and reacted to Read more
sourcefn 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.
sourcefn 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.
sourcefn 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
sourcefn set_config(&mut self, config: FrameConfig)
fn set_config(&mut self, config: FrameConfig)
Sets the configuration for the frame
Auto Trait Implementations
impl !RefUnwindSafe for AdwaitaFrame
impl !Send for AdwaitaFrame
impl !Sync for AdwaitaFrame
impl Unpin for AdwaitaFrame
impl !UnwindSafe for AdwaitaFrame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more