mirror of
https://github.com/bevyengine/bevy
synced 2024-12-24 12:03:14 +00:00
17 lines
297 B
Rust
17 lines
297 B
Rust
|
use bevy_asset::Handle;
|
||
|
use bevy_math::Size;
|
||
|
|
||
|
use crate::{Font, TextStyle};
|
||
|
|
||
|
#[derive(Debug, Default, Clone)]
|
||
|
pub struct Text {
|
||
|
pub value: String,
|
||
|
pub font: Handle<Font>,
|
||
|
pub style: TextStyle,
|
||
|
}
|
||
|
|
||
|
#[derive(Default, Copy, Clone, Debug)]
|
||
|
pub struct CalculatedSize {
|
||
|
pub size: Size,
|
||
|
}
|