Skip to main content

NativeDecoration

Trait NativeDecoration 

Source
pub trait NativeDecoration {
    // Required methods
    fn run(&self);
    fn new(
        title: String,
        width: f64,
        height: f64,
        theme: ThemeDefault,
    ) -> Result<Self, WResponse>
       where Self: Sized;
    fn apply_blur(&mut self) -> Result<(), WResponse>;
    fn exit(&self) -> Result<(), WResponse>;
    fn create_app_menu(&self, app_name: String) -> Result<(), WResponse>;
}
Expand description

NativeDecoration provides the necessary abstraction used inside the platform modules

Required Methods§

Source

fn run(&self)

executes the application window

Source

fn new( title: String, width: f64, height: f64, theme: ThemeDefault, ) -> Result<Self, WResponse>
where Self: Sized,

creates a new decoration on the system

Source

fn apply_blur(&mut self) -> Result<(), WResponse>

Apply blur to window

Source

fn exit(&self) -> Result<(), WResponse>

exit handler

Source

fn create_app_menu(&self, app_name: String) -> Result<(), WResponse>

App Menu Controls

Implementors§