[−][src]Struct directwrite::font_list::FontList
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(&self) -> 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
unsafe fn get_raw(&self) -> *mut IDWriteFontList
[src]
unsafe fn from_raw(ptr: *mut IDWriteFontList) -> Self
[src]
unsafe fn into_raw(self) -> *mut IDWriteFontList
[src]
unsafe fn from_ptr(ptr: ComPtr<IDWriteFontList>) -> Self
[src]
unsafe fn into_ptr(self) -> ComPtr<IDWriteFontList>
[src]
Blanket Implementations
impl<T> FontKey for T where
T: Send + Sync + 'static + ?Sized,
[src]
T: Send + Sync + 'static + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,