[][src]Struct directwrite::font_list::FontList

#[repr(transparent)]
pub struct FontList { /* fields omitted */ }

Represents a list of fonts.

Methods

impl FontList[src]

pub fn count(&self) -> u32[src]

The number of fonts in the list

pub fn collection(&self) -> Option<FontCollection>[src]

The collection that owns these fonts

pub fn get(&self, i: u32) -> Option<Font>[src]

Get a specific font in the list at the given index.

pub fn all_fonts<'a>(&'a self) -> impl Iterator<Item = Font> + Clone + 'a[src]

Get an iterator over all fonts in the list.

Trait Implementations

impl PartialEq<FontList> for FontList[src]

impl Sync for FontList[src]

impl Clone for FontList[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for FontList[src]

impl Debug for FontList[src]

impl ComWrapper for FontList[src]

type Interface = IDWriteFontList

The raw interface type from winapi

Blanket Implementations

impl<T> FontKey for T where
    T: Send + Sync + 'static + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]