Trait AzaleaAppExt

Source
pub trait AzaleaAppExt: Sized + 'static {
    type ConfigWrapper: Serialize + DeserializeOwned + Debug + Clone + 'static;
    type WindowWrapper;

    const CONFIG_PATH: &'static str = "azalea/config.ron";
    const STYLE_PATH: &'static str = "azalea/style.scss";
    const SOCKET_NAME: &'static str = "azalea.sock";
    const APP_ID: &'static str = "br.usp.ime.Azalea";

    // Required methods
    fn create_window(config: &Self::ConfigWrapper) -> Self::WindowWrapper;
    fn unwrap_window(window: &Self::WindowWrapper) -> &Window;
}

Provided Associated Constants§

Source

const CONFIG_PATH: &'static str = "azalea/config.ron"

Source

const STYLE_PATH: &'static str = "azalea/style.scss"

Source

const SOCKET_NAME: &'static str = "azalea.sock"

Source

const APP_ID: &'static str = "br.usp.ime.Azalea"

Required Associated Types§

Required Methods§

Source

fn create_window(config: &Self::ConfigWrapper) -> Self::WindowWrapper

Source

fn unwrap_window(window: &Self::WindowWrapper) -> &Window

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§