[][src]Struct flutter_engine::FlutterEngineArgs

pub struct FlutterEngineArgs {
    pub assets_path: String,
    pub icu_data_path: String,
    pub title: String,
    pub width: u32,
    pub height: u32,
    pub bg_color: (u8, u8, u8),
    pub window_mode: WindowMode,
    pub command_line_args: Option<Vec<String>>,
    pub window_event_handler: Option<Box<fn(_: &FlutterEngineInner, _: &mut Window, _: WindowEvent) -> bool>>,
}

Fields

assets_path: Stringicu_data_path: Stringtitle: Stringwidth: u32height: u32bg_color: (u8, u8, u8)window_mode: WindowModecommand_line_args: Option<Vec<String>>window_event_handler: Option<Box<fn(_: &FlutterEngineInner, _: &mut Window, _: WindowEvent) -> bool>>

A custom handler for glfw window events. If not None, this handler will be called for every window event and the default handler will only be called if true is returned.

Trait Implementations

impl Default for FlutterEngineArgs[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T