[][src]Struct kas_gtk::Toolkit

pub struct Toolkit { /* fields omitted */ }

Object used to initialise GTK and create windows.

You should only create a single instance of this type. It is neither Send nor Sync, thus is constrained to the thread on which it is created. On OS X, it must be created on the "main thread".

Methods

impl Toolkit
[src]

pub fn new() -> Result<Self, Error>
[src]

Construct a new instance. This initialises GTK. This should only be constructed once.

Trait Implementations

impl Toolkit for Toolkit
[src]

fn add<W>(&self, window: W) where
    W: 'static + Window
[src]

Assume ownership of and display a window. Read more

Auto Trait Implementations

impl !Send for Toolkit

impl !Sync for Toolkit

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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