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

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for FallbackFrame

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Frame for FallbackFrame

§

type Error = Error

Type of errors that may occur when attempting to create a frame
§

type Config = ()

Configuration for this frame
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>

Initialize the Frame. Read more
source§

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)

Notify that this seat has lost the pointer capability or has been lost
source§

fn set_states(&mut self, states: &[State]) -> bool

Set the Window XDG states for the frame Read more
source§

fn set_hidden(&mut self, hidden: bool)

Hide or show the decorations Read more
source§

fn set_resizable(&mut self, resizable: bool)

Set whether interactive resize hints should be displayed and reacted to
source§

fn resize(&mut self, newsize: (u32, u32))

Change the size of the decorations Read more
source§

fn redraw(&mut self)

Redraw the decorations
source§

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)

Adds the border dimensions to the given dimensions.
source§

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: ())

Sets the configuration for the frame
source§

fn set_title(&mut self, _title: String)

Sets the frames title

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.