Enum buffer_graphics_lib::text::TextSize
source · pub enum TextSize {
Small,
Normal,
Large,
}
Expand description
TextSize is used to set the size and positioning in pixels of text
Variants§
Implementations§
source§impl TextSize
impl TextSize
sourcepub const fn get_spacing(&self) -> usize
pub const fn get_spacing(&self) -> usize
Returns the spacing between letters in pixels
pub const fn get_px_ascii(&self, code: u8) -> &[bool]
sourcepub const fn px_to_cols(&self, px: usize) -> usize
pub const fn px_to_cols(&self, px: usize) -> usize
Converts pixels to columns
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§
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.