pub struct AdwaitaFrame { /* private fields */ }
Expand description

A simple set of decorations

Trait Implementations§

source§

impl Debug for AdwaitaFrame

source§

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

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

impl Drop for AdwaitaFrame

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Frame for AdwaitaFrame

§

type Error = Error

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

type Config = FrameConfig

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<AdwaitaFrame, 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: FrameConfig)

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.