[−][src]Struct egui::widgets::Label
Static text.
Implementations
impl Label[src]
pub fn new(text: impl Into<String>) -> Self[src]
pub fn text(&self) -> &str[src]
pub fn multiline(self, multiline: bool) -> Self[src]
pub fn text_style(self, text_style: TextStyle) -> Self[src]
If you do not set a TextStyle, the default style.text_style.
pub fn heading(self) -> Self[src]
pub fn monospace(self) -> Self[src]
pub fn small(self) -> Self[src]
pub fn text_color(self, text_color: Srgba) -> Self[src]
pub fn layout(&self, ui: &Ui) -> Galley[src]
pub fn layout_width(&self, ui: &Ui, max_width: f32) -> Galley[src]
pub fn font_height(&self, fonts: &Fonts, style: &Style) -> f32[src]
pub fn paint_galley(&self, ui: &mut Ui, pos: Pos2, galley: Galley)[src]
pub fn text_style_or_default(&self, style: &Style) -> TextStyle[src]
Read the text style, or get the default for the current style
Trait Implementations
impl<'_> Into<Label> for &'_ str[src]
impl<'_> Into<Label> for &'_ String[src]
impl Into<Label> for String[src]
impl Widget for Label[src]
Auto Trait Implementations
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,