Crate bevy_ui_dsl

Source
Expand description

This crate simplifies the process of creating widgets in bevy using a simple extensible DSL.

Structs§

UiChildBuilder
Wrapper for ChildBuilder that also propogates an AssetServer for the children that need it.
UiEntityCommands
Wrapper for EntityCommands that also propagates an AssetServer for the children that need it.

Traits§

AssetClass
Something that can overwrite a value, typically a node bundle. Depends on an AssetServer, unlike Class.
Class
Something that can overwrite a value, typically a node bundle.
EntityWriter
Adds a helper method to Entity that allows it to be sent to an Option 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 of NodeBundle cells in the form of a grid. The callback function argument spawns the contents of those cells.
gridi
Spawns a NodeBundle composed of NodeBundle 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 single TextBundle as its child.
text_buttoni
Spawns a ButtonBundle with a single TextBundle as its child.
texti
Spawns a TextBundle.