pub struct Label {
pub id: WidgetId,
pub rect: Rect,
pub text: String,
pub size: f32,
pub color: Option<Color>,
pub align: TextAlign,
pub visible: bool,
}Fields§
§id: WidgetId§rect: Rect§text: String§size: f32§color: Option<Color>§align: TextAlign§visible: boolImplementations§
Trait Implementations§
Source§impl Widget for Label
impl Widget for Label
fn id(&self) -> WidgetId
fn rect(&self) -> Rect
fn set_rect(&mut self, r: Rect)
fn is_visible(&self) -> bool
fn preferred_size(&self) -> (SizeConstraint, SizeConstraint)
fn draw(&self, dl: &mut DrawList, theme: &Theme)
fn handle_input( &mut self, _input: &UiInput, _events: &mut Vec<UiEvent>, _theme: &Theme, _dt: f32, )
fn update(&mut self, _dt: f32)
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