Enum ui2::UITextSize
source · pub enum UITextSize {
Default,
Small,
}
Variants§
Default
The default size for UI text.
0.825rem
or 14px
at the default scale of 1rem
= 16px
.
Note: The absolute size of this text will change based on a user’s ui_scale
setting.
Small
The small size for UI text.
0.75rem
or 12px
at the default scale of 1rem
= 16px
.
Note: The absolute size of this text will change based on a user’s ui_scale
setting.
Implementations§
Trait Implementations§
source§impl Clone for UITextSize
impl Clone for UITextSize
source§fn clone(&self) -> UITextSize
fn clone(&self) -> UITextSize
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UITextSize
impl Debug for UITextSize
source§impl Default for UITextSize
impl Default for UITextSize
source§fn default() -> UITextSize
fn default() -> UITextSize
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UITextSize
impl Send for UITextSize
impl Sync for UITextSize
impl Unpin for UITextSize
impl UnwindSafe for UITextSize
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