pub enum SystemFont {
Default,
Serif,
Monospace,
CompactSans,
}Expand description
User preference for text that uses the system font.
Variants§
Implementations§
Source§impl SystemFont
impl SystemFont
pub const fn from_index(index: usize) -> Self
Sourcepub fn load_session() -> Self
pub fn load_session() -> Self
Read the Spectre session preference used by native libbhoo hosts.
Sourcepub fn resolve_commands(self, commands: &mut [DrawCommand])
pub fn resolve_commands(self, commands: &mut [DrawCommand])
Apply the preference to text commands built outside a libbhoo frame.
Trait Implementations§
Source§impl Clone for SystemFont
impl Clone for SystemFont
impl Copy for SystemFont
Source§impl Debug for SystemFont
impl Debug for SystemFont
Source§impl Default for SystemFont
impl Default for SystemFont
impl Eq for SystemFont
Source§impl PartialEq for SystemFont
impl PartialEq for SystemFont
impl StructuralPartialEq for SystemFont
Auto Trait Implementations§
impl Forget for SystemFont
impl Freeze for SystemFont
impl Move for SystemFont
impl RefUnwindSafe for SystemFont
impl Send for SystemFont
impl Sync for SystemFont
impl Unpin for SystemFont
impl UnsafeUnpin for SystemFont
impl UnwindSafe for SystemFont
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