pub struct FontEnumeratorIsOwned<const OWNED: bool>(/* private fields */);
Expand description
wxFontEnumerator enumerates either all available fonts on the system or only the ones with given attributes - either only fixed-width (suited for use in programs such as terminal emulators and the like) or the fonts available in the given encoding).
FontEnumerator
represents a C++wxFontEnumerator
class instance which your code has ownership,FontEnumeratorIsOwned
<false>
represents one which don’t own.- Use
FontEnumerator
’snew()
orBuildable::builder()
(if available) to create an instance of this class. - See C++
wxFontEnumerator
class’s documentation for more details.
Implementations§
Source§impl<const OWNED: bool> FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> FontEnumeratorIsOwned<OWNED>
Trait Implementations§
Source§impl Clone for FontEnumeratorIsOwned<false>
impl Clone for FontEnumeratorIsOwned<false>
Source§impl<const OWNED: bool> Drop for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> Drop for FontEnumeratorIsOwned<OWNED>
Source§impl<const OWNED: bool> FontEnumeratorMethods for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> FontEnumeratorMethods for FontEnumeratorIsOwned<OWNED>
Source§fn enumerate_encodings(&self, font: &str) -> bool
fn enumerate_encodings(&self, font: &str) -> bool
Call OnFontEncoding() for each encoding supported by the given font - or for each encoding supported by at least some font if font is not specified. Read more
Source§fn on_facename(&self, font: &str) -> bool
fn on_facename(&self, font: &str) -> bool
Called by EnumerateFacenames() for each match. Read more
Source§fn on_font_encoding(&self, font: &str, encoding: &str) -> bool
fn on_font_encoding(&self, font: &str, encoding: &str) -> bool
Called by EnumerateEncodings() for each match. Read more
Source§fn get_encodings(facename: &str) -> ArrayString
fn get_encodings(facename: &str) -> ArrayString
Return array of strings containing all encodings found by EnumerateEncodings(). Read more
Source§fn is_valid_facename(facename: &str) -> bool
fn is_valid_facename(facename: &str) -> bool
Returns true if the given string is valid face name, i.e. Read more
Source§fn invalidate_cache()
fn invalidate_cache()
Invalidate cache used by some of the methods of this class internally. Read more
Source§impl<const OWNED: bool> WxRustMethods for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for FontEnumeratorIsOwned<OWNED>
type Unowned = FontEnumeratorIsOwned<false>
unsafe fn as_ptr(&self) -> *mut c_void
unsafe fn from_ptr(ptr: *mut c_void) -> Self
unsafe fn from_unowned_ptr(ptr: *mut c_void) -> Self::Unowned
unsafe fn with_ptr<F: Fn(&Self)>(ptr: *mut c_void, closure: F)
unsafe fn option_from(ptr: *mut c_void) -> Option<Self::Unowned>where
Self: Sized,
Auto Trait Implementations§
impl<const OWNED: bool> Freeze for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> !Send for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> !Sync for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> Unpin for FontEnumeratorIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for FontEnumeratorIsOwned<OWNED>
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