pub trait NativeFontInfoMethods: WxRustMethods {
Show 17 methods
// Provided methods
fn init(&self) { ... }
fn init_from_font<F: FontMethods>(&self, font: &F) { ... }
fn get_point_size(&self) -> c_int { ... }
fn get_pixel_size(&self) -> Size { ... }
fn get_numeric_weight(&self) -> c_int { ... }
fn get_underlined(&self) -> bool { ... }
fn get_face_name(&self) -> String { ... }
fn set_point_size(&self, pointsize: c_int) { ... }
fn set_pixel_size<S: SizeMethods>(&self, pixel_size: &S) { ... }
fn set_numeric_weight(&self, weight: c_int) { ... }
fn set_underlined(&self, underlined: bool) { ... }
fn set_face_name_str(&self, facename: &str) -> bool { ... }
fn set_face_name_arraystring<A: ArrayStringMethods>(&self, facenames: &A) { ... }
fn from_string(&self, s: &str) -> bool { ... }
fn to_string(&self) -> String { ... }
fn from_user_string(&self, s: &str) -> bool { ... }
fn to_user_string(&self) -> String { ... }
}
Expand description
This trait represents C++ wxNativeFontInfo
class’s methods and inheritance.
See NativeFontInfoIsOwned
documentation for the class usage.
Provided Methods§
Sourcefn init_from_font<F: FontMethods>(&self, font: &F)
fn init_from_font<F: FontMethods>(&self, font: &F)
Sourcefn get_pixel_size(&self) -> Size
fn get_pixel_size(&self) -> Size
Sourcefn get_numeric_weight(&self) -> c_int
fn get_numeric_weight(&self) -> c_int
Sourcefn get_face_name(&self) -> String
fn get_face_name(&self) -> String
Sourcefn set_point_size(&self, pointsize: c_int)
fn set_point_size(&self, pointsize: c_int)
Sourcefn set_pixel_size<S: SizeMethods>(&self, pixel_size: &S)
fn set_pixel_size<S: SizeMethods>(&self, pixel_size: &S)
Sourcefn set_numeric_weight(&self, weight: c_int)
fn set_numeric_weight(&self, weight: c_int)
Sourcefn set_underlined(&self, underlined: bool)
fn set_underlined(&self, underlined: bool)
Sourcefn set_face_name_str(&self, facename: &str) -> bool
fn set_face_name_str(&self, facename: &str) -> bool
Sourcefn set_face_name_arraystring<A: ArrayStringMethods>(&self, facenames: &A)
fn set_face_name_arraystring<A: ArrayStringMethods>(&self, facenames: &A)
Sourcefn from_string(&self, s: &str) -> bool
fn from_string(&self, s: &str) -> bool
Sourcefn from_user_string(&self, s: &str) -> bool
fn from_user_string(&self, s: &str) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.