Struct smithay_client_toolkit::window::FallbackFrame [−][src]
pub struct FallbackFrame { /* fields omitted */ }
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
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
Notify that a new wl_seat should be handled Read more
Notify that this seat has lost the pointer capability or has been lost Read more
Set the Window XDG states for the frame Read more
Hide or show the decorations Read more
Set whether interactive resize hints should be displayed and reacted to Read more
Subtracts the border dimensions from the given dimensions.
Adds the border dimensions to the given dimensions.
Returns the coordinates of the top-left corner of the borders relative to the content Read more
Sets the configuration for the frame