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]

fn drop(&mut self)[src]

Executes the destructor for this type. Read more

impl Frame for FallbackFrame[src]

type Error = Error

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

type Config = ()

Configuration for this frame

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]

Notify that a new wl_seat should be handled Read more

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]

Set the Window XDG states for the frame Read more

fn set_hidden(&mut self, hidden: bool)[src]

Hide or show the decorations Read more

fn set_resizable(&mut self, resizable: bool)[src]

Set whether interactive resize hints should be displayed and reacted to Read more

fn resize(&mut self, newsize: (u32, u32))[src]

Change the size of the decorations Read more

fn redraw(&mut self)[src]

Redraw the decorations

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]

Adds the border dimensions to the given dimensions.

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]

Sets the configuration for the frame

fn set_title(&mut self, _title: String)[src]

Sets the frames title

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.