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".
Construct a new instance. This initialises GTK. This should only be
constructed once.
Specialised version of add
; typically toolkits only need to implement this. Read more
Assume ownership of and display a window. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static