Struct smithay_client_toolkit::window::ConceptFrame [−][src]
pub struct ConceptFrame { /* fields omitted */ }
A clean, modern and stylish set of decorations.
This class draws clean and modern decorations with buttons inspired by breeze, material hover shade and a white header background.
ConceptFrame
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 ConceptFrame
[src]
impl Frame for ConceptFrame
[src]
type Error = Error
Type of errors that may occur when attempting to create a frame
type Config = ConceptConfig
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<ConceptFrame, Error>
[src]
base_surface: &WlSurface,
compositor: &Attached<WlCompositor>,
subcompositor: &Attached<WlSubcompositor>,
shm: &Attached<WlShm>,
theme_manager: Option<ThemeManager>,
implementation: Box<dyn FnMut(FrameRequest, u32, DispatchData<'_>)>
) -> Result<ConceptFrame, Error>
fn new_seat(&mut self, seat: &Attached<WlSeat>)
[src]
fn remove_seat(&mut self, seat: &WlSeat)
[src]
fn set_states(&mut self, states: &[State]) -> bool
[src]
fn set_hidden(&mut self, hidden: bool)
[src]
fn set_resizable(&mut self, resizable: bool)
[src]
fn resize(&mut self, newsize: (u32, u32))
[src]
fn redraw(&mut self)
[src]
fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)
[src]
fn add_borders(&self, width: i32, height: i32) -> (i32, i32)
[src]
fn location(&self) -> (i32, i32)
[src]
fn set_config(&mut self, config: ConceptConfig)
[src]
fn set_title(&mut self, title: String)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ConceptFrame
impl !Send for ConceptFrame
impl !Sync for ConceptFrame
impl Unpin for ConceptFrame
impl !UnwindSafe for ConceptFrame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,