pub struct Label {
pub text: Text,
pub sprite_sheet: Option<String>,
pub sprite: String,
pub text_alignment: u32,
pub orientation: u32,
pub min_text_width: i32,
pub gap: i32,
pub icon_size: [i32; 2],
}Expand description
A label’s description: text with an optional icon.
Fields§
§text: TextThe text.
sprite_sheet: Option<String>The icon’s sprite sheet.
sprite: StringThe icon’s sprite name.
text_alignment: u32The alignment of the text.
orientation: u321 stacks icon above text, otherwise icon left of text (
LabelElement::ComputeSize).
min_text_width: i32The smallest width of the text, in pixels.
gap: i32The space between the icon and the text, in pixels.
icon_size: [i32; 2]The icon’s size, in pixels.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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