Struct smithay_client_toolkit::window::FallbackFrame
source · pub struct FallbackFrame { /* private fields */ }
Expand description
A simple set of decorations that can be used as a fallback
This class drawn some simple and minimalistic decorations around a window so that it remains possible to interact with the window even when server-side decorations are not available.
FallbackFrame
is hiding its ClientSide
decorations
in a Fullscreen
state and brings them back if those are
visible when unsetting Fullscreen
state.
Trait Implementations§
source§impl Debug for FallbackFrame
impl Debug for FallbackFrame
source§impl Drop for FallbackFrame
impl Drop for FallbackFrame
source§impl Frame for FallbackFrame
impl Frame for FallbackFrame
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<FallbackFrame, 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<FallbackFrame, 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: ())
fn set_config(&mut self, _config: ())
Sets the configuration for the frame
Auto Trait Implementations§
impl !RefUnwindSafe for FallbackFrame
impl !Send for FallbackFrame
impl !Sync for FallbackFrame
impl Unpin for FallbackFrame
impl !UnwindSafe for FallbackFrame
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
Mutably borrows from an owned value. Read more