Struct Font

Source
pub struct Font { /* private fields */ }

Implementations§

Source§

impl Font

Source

pub const CHARSET_ANSI: i32 = 0i32

Source

pub const CHARSET_DEFAULT: i32 = 1i32

Source

pub const CHARSET_SYMBOL: i32 = 2i32

Source

pub const CHARSET_SHIFTJIS: i32 = 128i32

Source

pub const CHARSET_HANGEUL: i32 = 129i32

Source

pub const CHARSET_HANGUL: i32 = 129i32

Source

pub const CHARSET_GB2312: i32 = 134i32

Source

pub const CHARSET_CHINESEBIG5: i32 = 136i32

Source

pub const CHARSET_OEM: i32 = 255i32

Source

pub const CHARSET_JOHAB: i32 = 130i32

Source

pub const CHARSET_HEBREW: i32 = 177i32

Source

pub const CHARSET_ARABIC: i32 = 178i32

Source

pub const CHARSET_GREEK: i32 = 161i32

Source

pub const CHARSET_TURKISH: i32 = 162i32

Source

pub const CHARSET_VIETNAMESE: i32 = 163i32

Source

pub const CHARSET_THAI: i32 = 222i32

Source

pub const CHARSET_EASTEUROPE: i32 = 238i32

Source

pub const CHARSET_RUSSIAN: i32 = 204i32

Source

pub const CHARSET_MAC: i32 = 77i32

Source

pub const CHARSET_BALTIC: i32 = 186i32

Source

pub const UNDERLINE_NONE: &'static str = "none"

Source

pub const UNDERLINE_DOUBLE: &'static str = "double"

Source

pub const UNDERLINE_DOUBLEACCOUNTING: &'static str = "doubleAccounting"

Source

pub const UNDERLINE_SINGLE: &'static str = "single"

Source

pub const UNDERLINE_SINGLEACCOUNTING: &'static str = "singleAccounting"

Source

pub fn get_font_name(&self) -> &FontName

Source

pub fn get_font_name_mut(&mut self) -> &mut FontName

Source

pub fn set_font_name(&mut self, value: FontName) -> &mut Self

Source

pub fn get_name(&self) -> &str

Source

pub fn set_name<S: Into<String>>(&mut self, value: S) -> &mut Self

Source

pub fn set_name_with_scheme<S: Into<String>>( &mut self, name: S, scheme: S, ) -> &mut Self

Source

pub fn get_font_size(&self) -> &FontSize

Source

pub fn get_font_size_mut(&mut self) -> &mut FontSize

Source

pub fn set_font_size(&mut self, value: FontSize) -> &mut Self

Source

pub fn get_size(&self) -> &f64

Source

pub fn set_size(&mut self, value: f64) -> &mut Self

Source

pub fn get_font_family_numbering(&self) -> &FontFamilyNumbering

Source

pub fn get_font_family_numbering_mut(&mut self) -> &mut FontFamilyNumbering

Source

pub fn set_font_family_numbering( &mut self, value: FontFamilyNumbering, ) -> &mut Self

Source

pub fn get_family(&self) -> &i32

Source

pub fn set_family(&mut self, value: i32) -> &mut Self

Source

pub fn get_font_bold(&self) -> &Bold

Source

pub fn get_font_bold_mut(&mut self) -> &mut Bold

Source

pub fn set_font_bold(&mut self, value: Bold) -> &mut Self

Source

pub fn get_bold(&self) -> &bool

Source

pub fn set_bold(&mut self, value: bool) -> &mut Self

Source

pub fn get_font_italic(&self) -> &Italic

Source

pub fn get_font_italic_mut(&mut self) -> &mut Italic

Source

pub fn set_font_italic(&mut self, value: Italic) -> &mut Self

Source

pub fn get_italic(&self) -> &bool

Source

pub fn set_italic(&mut self, value: bool) -> &mut Self

Source

pub fn get_font_underline(&self) -> &Underline

Source

pub fn get_font_underline_mut(&mut self) -> &mut Underline

Source

pub fn set_font_underline(&mut self, value: Underline) -> &mut Self

Source

pub fn get_underline(&self) -> &str

Source

pub fn set_underline<S: Into<String>>(&mut self, value: S) -> &mut Self

Source

pub fn get_font_strike(&self) -> &Strike

Source

pub fn get_font_strike_mut(&mut self) -> &mut Strike

Source

pub fn set_font_strike(&mut self, value: Strike) -> &mut Self

Source

pub fn get_strikethrough(&self) -> &bool

Source

pub fn set_strikethrough(&mut self, value: bool) -> &mut Self

Source

pub fn get_color(&self) -> &Color

Source

pub fn get_color_mut(&mut self) -> &mut Color

Source

pub fn set_color(&mut self, value: Color) -> &mut Self

Source

pub fn get_font_char_set(&self) -> &FontCharSet

Source

pub fn get_font_char_set_mut(&mut self) -> &mut FontCharSet

Source

pub fn set_font_char_set(&mut self, value: FontCharSet) -> &mut Self

Source

pub fn get_charset(&self) -> &i32

Source

pub fn set_charset(&mut self, value: i32) -> &mut Self

Source

pub fn get_font_scheme(&self) -> &FontScheme

Source

pub fn get_font_scheme_mut(&mut self) -> &mut FontScheme

Source

pub fn set_font_scheme(&mut self, value: FontScheme) -> &mut Self

Source

pub fn get_scheme(&self) -> &str

Source

pub fn set_scheme<S: Into<String>>(&mut self, value: S) -> &mut Self

Source

pub fn get_vertical_text_alignment(&self) -> &VerticalTextAlignment

Source

pub fn get_vertical_text_alignment_mut(&mut self) -> &mut VerticalTextAlignment

Source

pub fn set_vertical_text_alignment( &mut self, value: VerticalTextAlignment, ) -> &mut Self

Trait Implementations§

Source§

impl Clone for Font

Source§

fn clone(&self) -> Font

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Font

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Font

Source§

fn default() -> Font

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Font

Source§

fn eq(&self, other: &Font) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Font

Source§

fn partial_cmp(&self, other: &Font) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for Font

Auto Trait Implementations§

§

impl Freeze for Font

§

impl RefUnwindSafe for Font

§

impl Send for Font

§

impl Sync for Font

§

impl Unpin for Font

§

impl UnwindSafe for Font

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.