pub struct TextBox {Show 13 fields
pub text: String,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub font_size: f32,
pub min_font_size: f32,
pub line_height: f32,
pub max_lines: Option<usize>,
pub horizontal_align: TextHorizontalAlign,
pub vertical_align: TextVerticalAlign,
pub overflow: TextOverflow,
pub font_sources: Vec<String>,
}Expand description
Font-aware text box request resolved before nodes are added to a Scene.
Fields§
§text: String§x: f32§y: f32§width: f32§height: f32§font_size: f32§min_font_size: f32§line_height: f32Multiplier applied to the resolved font size.
max_lines: Option<usize>§horizontal_align: TextHorizontalAlign§vertical_align: TextVerticalAlign§overflow: TextOverflow§font_sources: Vec<String>Implementations§
Trait Implementations§
impl StructuralPartialEq for TextBox
Auto Trait Implementations§
impl Freeze for TextBox
impl RefUnwindSafe for TextBox
impl Send for TextBox
impl Sync for TextBox
impl Unpin for TextBox
impl UnsafeUnpin for TextBox
impl UnwindSafe for TextBox
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more