Struct smithay_client_toolkit::window::FallbackFrame [−][src]
pub struct FallbackFrame { /* fields omitted */ }
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
impl Drop for FallbackFrame
[src]
impl Drop for FallbackFrame
[src]impl Frame for FallbackFrame
[src]
impl Frame for FallbackFrame
[src]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>
[src]
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>
[src]Initialize the Frame. Read more
fn new_seat(&mut self, seat: &Attached<WlSeat>)
[src]
fn new_seat(&mut self, seat: &Attached<WlSeat>)
[src]Notify that a new wl_seat should be handled Read more
fn remove_seat(&mut self, seat: &WlSeat)
[src]
fn remove_seat(&mut self, seat: &WlSeat)
[src]Notify that this seat has lost the pointer capability or has been lost Read more
fn set_states(&mut self, states: &[State]) -> bool
[src]
fn set_states(&mut self, states: &[State]) -> bool
[src]Set the Window XDG states for the frame Read more
fn set_hidden(&mut self, hidden: bool)
[src]
fn set_hidden(&mut self, hidden: bool)
[src]Hide or show the decorations Read more
fn set_resizable(&mut self, resizable: bool)
[src]
fn set_resizable(&mut self, resizable: bool)
[src]Set whether interactive resize hints should be displayed and reacted to Read more
fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)
[src]
fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)
[src]Subtracts the border dimensions from the given dimensions.
fn add_borders(&self, width: i32, height: i32) -> (i32, i32)
[src]
fn add_borders(&self, width: i32, height: i32) -> (i32, i32)
[src]Adds the border dimensions to the given dimensions.
fn location(&self) -> (i32, i32)
[src]
fn location(&self) -> (i32, i32)
[src]Returns the coordinates of the top-left corner of the borders relative to the content Read more
fn set_config(&mut self, _config: ())
[src]
fn set_config(&mut self, _config: ())
[src]Sets the configuration for the frame