Crate bevy_quill
source ·Modules§
Structs§
- Contains a reference to a callback.
Pis the type of the props. - A conditional view which renders one of two children depending on the condition expression.
- A context parameter that is passed to views and callbacks. It contains the reactive tracking scope, which is used to manage reactive dependencies, as well as a reference to the Bevy world.
- A view which understands that it’s children may change type. When this happens, the old children are razed and the new children are built.
- A view which generates an entity bundle.
- A namespace that contains constructor functions for various kinds of for-loops:
- Contains a reference to a reactive mutable variable.
- A
Portalrepresents a UI node that is displayed with no parent node, causing it’s location to be relative to the window rather than any parent node. This only affects the display hierarchy, theViewhierarchy is unaffected. - A component that tracks the dependencies of a reactive task.
- A resource which, if inserted, displays the view entities that have reacted this frame.
- A
ViewAdapteris a stateless object that can be used to access an object implementingViewin a type-erased fashion, without needing to store adyn View. This allows querying for ECS components that contain implementations of theViewtrait without knowing the concrete type. Note that it must be stateless since it is created statically, and passed around by static reference. - A wrapper around a type-erased view. This is useful when passing views as parameters.
- An ECS component which marks a view entity as being the root of a view hierarchy. This is used as a starting point for top-down traversals.
- Combination of a
Viewand it’s built state, stored as a trait object within a component. - An ECS component which wraps a type-erasee
ViewAdapter.
Enums§
- Hierarchical data structure representing an ordered sequence of entities. This is the rendered output of a
View. This gets flattened before attaching to the parent UiNode.
Traits§
- A type-erased [
ViewTuple]. - The dynamic trait used by
ViewAdapter. See alsoViewThunk. - Trait for low-level read-access to mutables given an entity id.
- An object which produces one or more display nodes. The
Viewis itself immutable and stateless, but it can produce a mutable state object which is updated when the view is rebuilt. This state object must be managed externally, and is passed to theViewmethods as a parameter. - Trait for low-level write-access to mutables given an entity id.