Enum buffer_graphics_lib::text::TextSize
source · [−]pub enum TextSize {
Small,
Normal,
}
Expand description
TextSize is used to set the size and positioning in pixels of text
Variants
Small
Normal
Implementations
sourceimpl TextSize
impl TextSize
sourcepub fn get_margin(&self) -> usize
pub fn get_margin(&self) -> usize
Returns the spacing between letters in pixels
Trait Implementations
impl Copy for TextSize
Auto Trait Implementations
impl RefUnwindSafe for TextSize
impl Send for TextSize
impl Sync for TextSize
impl Unpin for TextSize
impl UnwindSafe for TextSize
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