pub struct NativeFontInfoIsOwned<const OWNED: bool>(/* private fields */);Expand description
wxNativeFontInfo is platform-specific font representation: this class should be considered as an opaque font description only used by the native functions, the user code can only get the objects of this type from somewhere and pass it somewhere else (possibly save them somewhere using ToString() and restore them using FromString())
NativeFontInforepresents a C++wxNativeFontInfoclass instance which your code has ownership,NativeFontInfoIsOwned<false>represents one which don’t own.- Use
NativeFontInfo’snew()orBuildable::builder()(if available) to create an instance of this class. - See C++
wxNativeFontInfoclass’s documentation for more details.
Implementations§
Source§impl<const OWNED: bool> NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> NativeFontInfoIsOwned<OWNED>
Sourcepub fn new() -> NativeFontInfoIsOwned<OWNED>
pub fn new() -> NativeFontInfoIsOwned<OWNED>
Sourcepub fn new_with_nativefontinfo<N: NativeFontInfoMethods>(
info: &N,
) -> NativeFontInfoIsOwned<OWNED>
pub fn new_with_nativefontinfo<N: NativeFontInfoMethods>( info: &N, ) -> NativeFontInfoIsOwned<OWNED>
pub fn none() -> Option<&'static Self>
Trait Implementations§
Source§impl Clone for NativeFontInfoIsOwned<false>
impl Clone for NativeFontInfoIsOwned<false>
Source§impl<const OWNED: bool> Drop for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> Drop for NativeFontInfoIsOwned<OWNED>
Source§impl<const OWNED: bool> NativeFontInfoMethods for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> NativeFontInfoMethods for NativeFontInfoIsOwned<OWNED>
Source§fn init_from_font<F: FontMethods>(&self, font: &F)
fn init_from_font<F: FontMethods>(&self, font: &F)
Source§fn get_numeric_weight(&self) -> c_int
fn get_numeric_weight(&self) -> c_int
Source§fn set_point_size(&self, pointsize: c_int)
fn set_point_size(&self, pointsize: c_int)
Source§fn set_pixel_size<S: SizeMethods>(&self, pixel_size: &S)
fn set_pixel_size<S: SizeMethods>(&self, pixel_size: &S)
Source§fn set_numeric_weight(&self, weight: c_int)
fn set_numeric_weight(&self, weight: c_int)
Source§fn set_underlined(&self, underlined: bool)
fn set_underlined(&self, underlined: bool)
Source§fn set_face_name_str(&self, facename: &str) -> bool
fn set_face_name_str(&self, facename: &str) -> bool
Source§fn set_face_name_arraystring<A: ArrayStringMethods>(&self, facenames: &A)
fn set_face_name_arraystring<A: ArrayStringMethods>(&self, facenames: &A)
Source§fn from_string(&self, s: &str) -> bool
fn from_string(&self, s: &str) -> bool
Source§fn from_user_string(&self, s: &str) -> bool
fn from_user_string(&self, s: &str) -> bool
Source§impl<const OWNED: bool> WxRustMethods for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> WxRustMethods for NativeFontInfoIsOwned<OWNED>
type Unowned = NativeFontInfoIsOwned<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 NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> RefUnwindSafe for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> !Send for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> !Sync for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> Unpin for NativeFontInfoIsOwned<OWNED>
impl<const OWNED: bool> UnwindSafe for NativeFontInfoIsOwned<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