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>, }
Fields
text: String
Text to display
font_size: f32
Font size
color: [f32; 4]
Font color
font: AssetPrefab<FontAsset, F>
Font
password: bool
Password field ?
editable: Option<TextEditingPrefab>
Optionally make the text editable
Trait Implementations
impl<'a, F> PrefabData<'a> for UiTextBuilder<F> where
F: Format<FontAsset, Options = ()> + Clone,
[src]
impl<'a, F> PrefabData<'a> for UiTextBuilder<F> where
F: Format<FontAsset, Options = ()> + Clone,
type SystemData = (WriteStorage<'a, UiText>, WriteStorage<'a, TextEditing>, <AssetPrefab<FontAsset, F> as PrefabData<'a>>::SystemData, Write<'a, UiFocused>)
SystemData
needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>
[src]
fn load_prefab(
&self,
entity: Entity,
system_data: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>
Load the data for this prefab onto the given Entity
Read more
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> Result<bool, PrefabError>
[src]
fn trigger_sub_loading(
&mut self,
progress: &mut ProgressCounter,
system_data: &mut Self::SystemData
) -> Result<bool, PrefabError>
Trigger asset loading for any sub assets. Read more
Auto Trait Implementations
impl<F> Send for UiTextBuilder<F>
impl<F> Send for UiTextBuilder<F>
impl<F> Sync for UiTextBuilder<F> where
F: Sync,
impl<F> Sync for UiTextBuilder<F> where
F: Sync,