Enum arcdps_imgui::FontSource
source · pub enum FontSource<'a> {
DefaultFontData {
config: Option<FontConfig>,
},
TtfData {
data: &'a [u8],
size_pixels: f32,
config: Option<FontConfig>,
},
}
Expand description
A source for binary font data
Variants§
DefaultFontData
Fields
§
config: Option<FontConfig>
Default font included with the library (ProggyClean.ttf)
TtfData
Binary TTF/OTF font data
Trait Implementations§
source§impl<'a> Clone for FontSource<'a>
impl<'a> Clone for FontSource<'a>
source§fn clone(&self) -> FontSource<'a>
fn clone(&self) -> FontSource<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for FontSource<'a>
impl<'a> RefUnwindSafe for FontSource<'a>
impl<'a> !Send for FontSource<'a>
impl<'a> !Sync for FontSource<'a>
impl<'a> Unpin for FontSource<'a>
impl<'a> UnwindSafe for FontSource<'a>
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