[][src]Struct alcro::UIBuilder

pub struct UIBuilder<'a> { /* fields omitted */ }

Builder for constructing a UI instance.

Implementations

impl<'a> UIBuilder<'a>[src]

pub fn new() -> Self[src]

Default UI

pub fn run(&self) -> UI[src]

Return the UI instance

pub fn content(&mut self, content: Content<'a>) -> &mut Self[src]

Set the content (url or html text)

pub fn user_data_dir(&mut self, dir: &'a Path) -> &mut Self[src]

Set the user data directory. By default it is a temporary directory.

pub fn size(&mut self, width: i32, height: i32) -> &mut Self[src]

Set the window size

pub fn custom_args(&mut self, custom_args: &'a [&'a str]) -> &mut Self[src]

Add custom arguments to spawn chrome with

Auto Trait Implementations

impl<'a> RefUnwindSafe for UIBuilder<'a>

impl<'a> Send for UIBuilder<'a>

impl<'a> Sync for UIBuilder<'a>

impl<'a> Unpin for UIBuilder<'a>

impl<'a> UnwindSafe for UIBuilder<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,