Expand description
This crate simplifies the process of creating widgets in bevy using a simple extensible DSL.
Structs§
- UiChild
Builder - Wrapper for
ChildBuilder
that also propogates anAssetServer
for the children that need it. - UiEntity
Commands - Wrapper for
EntityCommands
that also propagates anAssetServer
for the children that need it.
Traits§
- Asset
Class - Something that can overwrite a value, typically a node bundle.
Depends on an
AssetServer
, unlikeClass
. - Class
- Something that can overwrite a value, typically a node bundle.
- Entity
Writer - Adds a helper method to
Entity
that allows it to be sent to anOption
ergonomically.
Functions§
- blank
- Spawns a clear
NodeBundle
that takes up the full space of its parent. Often required for embedding other widgets after the initial widget is spawned. - blanki
- Spawns a clear
NodeBundle
that takes up the full space of its parent. Often required for embedding other widgets after the initial widget is spawned. - button
- Spawns a
ButtonBundle
with children. - buttoni
- Spawns a
ButtonBundle
with children. - grid
- Spawns a
NodeBundle
composed ofNodeBundle
cells in the form of a grid. The callback function argument spawns the contents of those cells. - gridi
- Spawns a
NodeBundle
composed ofNodeBundle
cells in the form of a grid. The callback function argument spawns the contents of those cells. - image
- Spawns an
ImageBundle
. - image_
pane - Spawns an
ImageBundle
with children. - image_
panei - Spawns an
ImageBundle
with children. - imagei
- Spawns an
ImageBundle
. - node
- Spawns a
NodeBundle
with children. - nodei
- Spawns a
NodeBundle
with children. - root
- Spawns a
NodeBundle
as the root with children. - rooti
- Spawns a
NodeBundle
as the root with children. - simple_
button - Spawns a
ButtonBundle
without children. - simple_
buttoni - Spawns a
ButtonBundle
without children. - text
- Spawns a
TextBundle
. - text_
button - Spawns a
ButtonBundle
with a singleTextBundle
as its child. - text_
buttoni - Spawns a
ButtonBundle
with a singleTextBundle
as its child. - texti
- Spawns a
TextBundle
.