pub struct AdwaitaFrame {
Show 14 fields pub(crate) base_surface: WlSurface, pub(crate) compositor: Attached<WlCompositor>, pub(crate) subcompositor: Attached<WlSubcompositor>, pub(crate) inner: Rc<RefCell<Inner>>, pub(crate) pool: AutoMemPool, pub(crate) active: WindowState, pub(crate) hidden: bool, pub(crate) pointers: Vec<ThemedPointer>, pub(crate) themer: ThemeManager, pub(crate) surface_version: u32, pub(crate) buttons: Rc<RefCell<Buttons>>, pub(crate) colors: ColorTheme, pub(crate) title: Option<String>, pub(crate) title_text: Option<TitleText>,
}
Expand description

A simple set of decorations

Fields§

§base_surface: WlSurface§compositor: Attached<WlCompositor>§subcompositor: Attached<WlSubcompositor>§inner: Rc<RefCell<Inner>>§pool: AutoMemPool§active: WindowState§hidden: bool§pointers: Vec<ThemedPointer>§themer: ThemeManager§surface_version: u32§buttons: Rc<RefCell<Buttons>>§colors: ColorTheme§title: Option<String>§title_text: Option<TitleText>

Implementations§

source§

impl AdwaitaFrame

source

pub(crate) fn redraw_inner(&mut self) -> Option<()>

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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.