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
sourceimpl Debug for FallbackFrame
impl Debug for FallbackFrame
sourceimpl Drop for FallbackFrame
impl Drop for FallbackFrame
sourceimpl Frame for FallbackFrame
impl Frame for FallbackFrame
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<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
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: ())
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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