Trait NativeFontInfoMethods

Source
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§

Source

fn init(&self)

Source

fn init_from_font<F: FontMethods>(&self, font: &F)

Source

fn get_point_size(&self) -> c_int

Source

fn get_pixel_size(&self) -> Size

Source

fn get_numeric_weight(&self) -> c_int

Source

fn get_underlined(&self) -> bool

Source

fn get_face_name(&self) -> String

Source

fn set_point_size(&self, pointsize: c_int)

Source

fn set_pixel_size<S: SizeMethods>(&self, pixel_size: &S)

Source

fn set_numeric_weight(&self, weight: c_int)

Source

fn set_underlined(&self, underlined: bool)

Source

fn set_face_name_str(&self, facename: &str) -> bool

Source

fn set_face_name_arraystring<A: ArrayStringMethods>(&self, facenames: &A)

Source

fn from_string(&self, s: &str) -> bool

Source

fn to_string(&self) -> String

Source

fn from_user_string(&self, s: &str) -> bool

Source

fn to_user_string(&self) -> String

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.

Implementors§