Struct amethyst_ui::UiTextBuilder[][src]

pub struct UiTextBuilder<F = FontFormat> where
    F: Format<FontAsset, Options = ()>, 
{ pub text: String, pub font_size: f32, pub color: [f32; 4], pub font: AssetPrefab<FontAsset, F>, pub password: bool, pub editable: Option<TextEditingPrefab>, }

Loadable UiText data

Type parameters:

  • F: Format used for loading FontAsset

Fields

Text to display

Font size

Font color

Font

Password field ?

Optionally make the text editable

Trait Implementations

impl<'a, F> PrefabData<'a> for UiTextBuilder<F> where
    F: Format<FontAsset, Options = ()> + Clone
[src]

SystemData needed to perform the load

The result type returned by the load operation

Load the data for this prefab onto the given Entity Read more

Trigger asset loading for any sub assets. Read more

Auto Trait Implementations

impl<F> Send for UiTextBuilder<F>

impl<F> Sync for UiTextBuilder<F> where
    F: Sync