pub struct NativeTypefaces {
pub button: Option<FontFace>,
pub body: Option<FontFace>,
}Expand description
The native-control typeface binding: a display/button face and a body face, either of which may be left unset (falling back to whatever the native host resolves without it — see the module doc).
Default is both slots unset, i.e. “attached but selecting nothing” —
equivalent to not attaching the extension at all as far as a host’s
fallback ladder is concerned.
Fields§
The face a native button/display control resolves to.
body: Option<FontFace>The face a native body-text control (label, switch, and any other text-bearing control) resolves to.
Implementations§
Trait Implementations§
Source§impl Clone for NativeTypefaces
impl Clone for NativeTypefaces
impl Copy for NativeTypefaces
Source§impl Debug for NativeTypefaces
impl Debug for NativeTypefaces
Source§impl Default for NativeTypefaces
impl Default for NativeTypefaces
impl Eq for NativeTypefaces
Source§impl Hash for NativeTypefaces
impl Hash for NativeTypefaces
Source§impl PartialEq for NativeTypefaces
impl PartialEq for NativeTypefaces
impl StructuralPartialEq for NativeTypefaces
Auto Trait Implementations§
impl Freeze for NativeTypefaces
impl RefUnwindSafe for NativeTypefaces
impl Send for NativeTypefaces
impl Sync for NativeTypefaces
impl Unpin for NativeTypefaces
impl UnsafeUnpin for NativeTypefaces
impl UnwindSafe for NativeTypefaces
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.