Struct limn_core::resources::font::FontDescriptor
[−]
[src]
pub struct FontDescriptor { pub family_name: String, pub italic: bool, pub bold: bool, }
Set of properties used to specify a font
Fields
family_name: String
italic: bool
bold: bool
Methods
impl FontDescriptor
[src]
pub fn from_family(family_name: &str) -> Self
[src]
Trait Implementations
impl Default for FontDescriptor
[src]
fn default() -> FontDescriptor
[src]
Returns the "default value" for a type. Read more
impl PartialEq for FontDescriptor
[src]
fn eq(&self, __arg_0: &FontDescriptor) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FontDescriptor) -> bool
[src]
This method tests for !=
.
impl Eq for FontDescriptor
[src]
impl Hash for FontDescriptor
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for FontDescriptor
[src]
fn clone(&self) -> FontDescriptor
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more