Expand description
This crate is part of the zng project.
App process implementation.
§Widget Instantiation
See enable_widget_macros! if you want to instantiate widgets without depending on the zng crate.
Modules§
- Accessibility/automation events.
- App event and commands API.
- Handler types and macros.
- Frame render and metadata API.
- Key combination types.
- Third party licenses service and types.
- App timers, deadlines and timeouts.
- App updates API.
- View process connection and other types.
- Widget, UI node API.
- Window context API.
Macros§
- Declare a mutable clone-move app event handler.
- Declare a clone-move app event handler that is only called once.
- Declare an async clone-move app event handler.
- Declare an async clone-move app event handler that is only called once.
- Declare an async clone-move event handler.
- Declare an async clone-move event handler that is only called once.
- Declares new
Commandstatic items. - Enable widget instantiation in crates that can’t depend on the
zngcrate. - Declares new
EventArgstypes. - Declares new
Event<A>static items. - Declare a mutable clone-move event handler.
- Declare a clone-move event handler that is only called once.
- New
Box<PropertyArgs>box from a property and value. - New
PropertyIdthat represents the type and name. - New
PropertyInfofrom property path. - Gets the strong input storage types from a property path.
- Creates a
Shortcut. - New
SourceLocationthat represents the location you call this macro. - Creates an
UiNodeVeccontaining the arguments. - Implement a property on the widget to strongly associate it with the widget.
- Sets properties and when condition on a widget builder.
- Gets the
WidgetTypeinfo of a widget.
Structs§
- Start and manage an app process.
- A sender that can awake apps and insert events into the main loop.
- Represents a channel receiver in an app extension.
- Represents a channel sender that causes an extensions update for each value transferred.
- Error when the app connected to a sender/receiver channel has disconnected.
- Application builder.
- Info about an app-extension.
- List of app-extensions that are part of an app.
- Duration elapsed since an epoch.
- Represents a timeout instant.
- Cancellation message of an exit request.
- Arguments for
EXIT_REQUESTED_EVENT. - A headless app controller.
- Instant service.
Enums§
- Desired next step of app main loop.
- Defines how the
INSTANT.nowvalue updates in the app.
Statics§
- Represents the app process
exitrequest. - Cancellable event raised when app process exit is requested.
Traits§
- Observer for
HeadlessApp::update_observed. - An app extension.
Functions§
- Print
tracingevents if a subscriber is not already set. - Modifies the
print_tracingsubscriber to panic for error logs in the current app.