Struct smithay_client_toolkit::window::BasicFrame [−][src]
pub struct BasicFrame { /* fields omitted */ }A minimalistic set of decorations
This class draws minimalistic decorations, which are arguably not very beautiful, but functional.
Trait Implementations
impl Frame for BasicFrame[src]
impl Frame for BasicFrametype Error = Error
Type of errors that may occur when attempting to create a frame
fn init(
base_surface: &Proxy<WlSurface>,
compositor: &Proxy<WlCompositor>,
subcompositor: &Proxy<WlSubcompositor>,
shm: &Proxy<WlShm>,
implementation: Box<Implementation<u32, FrameRequest> + Send>
) -> Result<BasicFrame, Error>[src]
fn init(
base_surface: &Proxy<WlSurface>,
compositor: &Proxy<WlCompositor>,
subcompositor: &Proxy<WlSubcompositor>,
shm: &Proxy<WlShm>,
implementation: Box<Implementation<u32, FrameRequest> + Send>
) -> Result<BasicFrame, Error>Initialize the Frame
fn new_seat(&mut self, seat: &Proxy<WlSeat>)[src]
fn new_seat(&mut self, seat: &Proxy<WlSeat>)Notify that a new wl_seat should be handled
fn set_active(&mut self, active: bool) -> bool[src]
fn set_active(&mut self, active: bool) -> boolSet whether the decorations should be drawn as active or not Read more
Hide or show the decorations Read more
fn set_maximized(&mut self, maximized: bool) -> bool[src]
fn set_maximized(&mut self, maximized: bool) -> boolSet whether the decorations should be drawn as maximized or not Read more
fn set_resizable(&mut self, resizable: bool)[src]
fn set_resizable(&mut self, resizable: bool)Set whether interactive resize hints should be displayed and reacted to Read more
fn resize(&mut self, newsize: (u32, u32))[src]
fn resize(&mut self, newsize: (u32, u32))Change the size of the decorations Read more
fn redraw(&mut self)[src]
fn redraw(&mut self)Redraw the decorations
fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)[src]
fn subtract_borders(&self, width: i32, height: i32) -> (i32, i32)Subtracts the border dimensions from the given dimensions.
fn add_borders(&self, width: i32, height: i32) -> (i32, i32)[src]
fn add_borders(&self, width: i32, height: i32) -> (i32, i32)Adds the border dimensions to the given dimensions.
fn location(&self) -> (i32, i32)[src]
fn location(&self) -> (i32, i32)Returns the coordinates of the top-left corner of the borders relative to the content Read more
impl Drop for BasicFrame[src]
impl Drop for BasicFrameAuto Trait Implementations
impl Send for BasicFrame
impl Send for BasicFrameimpl Sync for BasicFrame
impl Sync for BasicFrame