Struct me3_framework::overlay::TextFormat
source · [−]pub struct TextFormat {
pub font_id: FontId,
pub color: Color32,
pub background: Color32,
pub italics: bool,
pub underline: Stroke,
pub strikethrough: Stroke,
pub valign: Align,
}
Fields
font_id: FontId
color: Color32
Text color
background: Color32
italics: bool
underline: Stroke
strikethrough: Stroke
valign: Align
If you use a small font and Align::TOP
you
can get the effect of raised text.
Implementations
sourceimpl TextFormat
impl TextFormat
pub fn simple(font_id: FontId, color: Color32) -> TextFormat
Trait Implementations
sourceimpl Clone for TextFormat
impl Clone for TextFormat
sourcefn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TextFormat
impl Debug for TextFormat
sourceimpl Default for TextFormat
impl Default for TextFormat
sourcefn default() -> TextFormat
fn default() -> TextFormat
Returns the “default value” for a type. Read more
sourceimpl Hash for TextFormat
impl Hash for TextFormat
sourceimpl PartialEq<TextFormat> for TextFormat
impl PartialEq<TextFormat> for TextFormat
sourcefn eq(&self, other: &TextFormat) -> bool
fn eq(&self, other: &TextFormat) -> bool
impl StructuralPartialEq for TextFormat
Auto Trait Implementations
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnwindSafe for TextFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more