crashreporter.png |
|
1562 |
gtk.rs |
|
31756 |
macos |
|
|
mod.rs |
The UI model, UI implementations, and functions using them.
UIs must implement:
* a `fn run_loop(&self, app: model::Application)` method which should display the UI and block while
handling events until the application terminates,
* a `fn invoke(&self, f: model::InvokeFn)` method which invokes the given function
asynchronously (without blocking) on the UI loop thread. |
11514 |
model |
|
|
test.rs |
A renderer for use in tests, which doesn't actually render a GUI but allows programmatic
interaction.
The [`ui!`](super::ui) macro supports labeling any element with a string identifier, which can
be used to access the element in this UI.
The [`Interact`] hook must be created to interact with the test UI, before the UI is run and on
the same thread as the UI.
See how this UI is used in [`crate::test`]. |
8885 |
windows |
|
|