pub struct Font { /* private fields */ }Implementations§
Source§impl Font
impl Font
pub const CHARSET_ANSI: i32 = 0
pub const CHARSET_ARABIC: i32 = 178
pub const CHARSET_BALTIC: i32 = 186
pub const CHARSET_CHINESEBIG5: i32 = 136
pub const CHARSET_DEFAULT: i32 = 1
pub const CHARSET_EASTEUROPE: i32 = 238
pub const CHARSET_GB2312: i32 = 134
pub const CHARSET_GREEK: i32 = 161
pub const CHARSET_HANGEUL: i32 = 129
pub const CHARSET_HANGUL: i32 = 129
pub const CHARSET_HEBREW: i32 = 177
pub const CHARSET_JOHAB: i32 = 130
pub const CHARSET_MAC: i32 = 77
pub const CHARSET_OEM: i32 = 255
pub const CHARSET_RUSSIAN: i32 = 204
pub const CHARSET_SHIFTJIS: i32 = 128
pub const CHARSET_SYMBOL: i32 = 2
pub const CHARSET_THAI: i32 = 222
pub const CHARSET_TURKISH: i32 = 162
pub const CHARSET_VIETNAMESE: i32 = 163
pub const UNDERLINE_DOUBLE: &'static str = "double"
pub const UNDERLINE_DOUBLEACCOUNTING: &'static str = "doubleAccounting"
pub const UNDERLINE_NONE: &'static str = "none"
pub const UNDERLINE_SINGLE: &'static str = "single"
pub const UNDERLINE_SINGLEACCOUNTING: &'static str = "singleAccounting"
pub fn font_name(&self) -> &FontName
pub fn get_font_name(&self) -> &FontName
👎Deprecated since 3.0.0:
Use font_name()
pub fn font_name_mut(&mut self) -> &mut FontName
pub fn get_font_name_mut(&mut self) -> &mut FontName
👎Deprecated since 3.0.0:
Use font_name_mut()
pub fn set_font_name(&mut self, value: FontName) -> &mut Self
pub fn name(&self) -> &str
pub fn get_name(&self) -> &str
👎Deprecated since 3.0.0:
Use name()
pub fn set_name<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_name_with_scheme<S: Into<String>>( &mut self, name: S, scheme: S, ) -> &mut Self
pub fn font_size(&self) -> &FontSize
pub fn get_font_size(&self) -> &FontSize
👎Deprecated since 3.0.0:
Use font_size()
pub fn font_size_mut(&mut self) -> &mut FontSize
pub fn get_font_size_mut(&mut self) -> &mut FontSize
👎Deprecated since 3.0.0:
Use font_size_mut()
pub fn set_font_size(&mut self, value: FontSize) -> &mut Self
pub fn size(&self) -> f64
pub fn get_size(&self) -> f64
👎Deprecated since 3.0.0:
Use size()
pub fn set_size(&mut self, value: f64) -> &mut Self
pub fn font_family_numbering(&self) -> &FontFamilyNumbering
pub fn get_font_family_numbering(&self) -> &FontFamilyNumbering
👎Deprecated since 3.0.0:
Use font_family_numbering()
pub fn font_family_numbering_mut(&mut self) -> &mut FontFamilyNumbering
pub fn get_font_family_numbering_mut(&mut self) -> &mut FontFamilyNumbering
👎Deprecated since 3.0.0:
Use font_family_numbering_mut()
pub fn set_font_family_numbering( &mut self, value: FontFamilyNumbering, ) -> &mut Self
pub fn family(&self) -> i32
pub fn get_family(&self) -> i32
👎Deprecated since 3.0.0:
Use family()
pub fn set_family(&mut self, value: i32) -> &mut Self
pub fn font_bold(&self) -> &Bold
pub fn get_font_bold(&self) -> &Bold
👎Deprecated since 3.0.0:
Use font_bold()
pub fn font_bold_mut(&mut self) -> &mut Bold
pub fn get_font_bold_mut(&mut self) -> &mut Bold
👎Deprecated since 3.0.0:
Use font_bold_mut()
pub fn set_font_bold(&mut self, value: Bold) -> &mut Self
pub fn bold(&self) -> bool
pub fn get_bold(&self) -> bool
👎Deprecated since 3.0.0:
Use bold()
pub fn set_bold(&mut self, value: bool) -> &mut Self
pub fn font_italic(&self) -> &Italic
pub fn get_font_italic(&self) -> &Italic
👎Deprecated since 3.0.0:
Use font_italic()
pub fn font_italic_mut(&mut self) -> &mut Italic
pub fn get_font_italic_mut(&mut self) -> &mut Italic
👎Deprecated since 3.0.0:
Use font_italic_mut()
pub fn set_font_italic(&mut self, value: Italic) -> &mut Self
pub fn italic(&self) -> bool
pub fn get_italic(&self) -> bool
👎Deprecated since 3.0.0:
Use italic()
pub fn set_italic(&mut self, value: bool) -> &mut Self
pub fn font_underline(&self) -> &Underline
pub fn get_font_underline(&self) -> &Underline
👎Deprecated since 3.0.0:
Use font_underline()
pub fn font_underline_mut(&mut self) -> &mut Underline
pub fn get_font_underline_mut(&mut self) -> &mut Underline
👎Deprecated since 3.0.0:
Use font_underline_mut()
pub fn set_font_underline(&mut self, value: Underline) -> &mut Self
pub fn underline(&self) -> &str
pub fn get_underline(&self) -> &str
👎Deprecated since 3.0.0:
Use underline()
pub fn set_underline<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn font_strike(&self) -> &Strike
pub fn get_font_strike(&self) -> &Strike
👎Deprecated since 3.0.0:
Use font_strike()
pub fn font_strike_mut(&mut self) -> &mut Strike
pub fn get_font_strike_mut(&mut self) -> &mut Strike
👎Deprecated since 3.0.0:
Use font_strike_mut()
pub fn set_font_strike(&mut self, value: Strike) -> &mut Self
pub fn strikethrough(&self) -> bool
pub fn get_strikethrough(&self) -> bool
👎Deprecated since 3.0.0:
Use strikethrough()
pub fn set_strikethrough(&mut self, value: bool) -> &mut Self
pub fn color(&self) -> &Color
pub fn get_color(&self) -> &Color
👎Deprecated since 3.0.0:
Use color()
pub fn color_mut(&mut self) -> &mut Color
pub fn get_color_mut(&mut self) -> &mut Color
👎Deprecated since 3.0.0:
Use color_mut()
pub fn set_color(&mut self, value: Color) -> &mut Self
pub fn font_char_set(&self) -> &FontCharSet
pub fn get_font_char_set(&self) -> &FontCharSet
👎Deprecated since 3.0.0:
Use font_char_set()
pub fn font_char_set_mut(&mut self) -> &mut FontCharSet
pub fn get_font_char_set_mut(&mut self) -> &mut FontCharSet
👎Deprecated since 3.0.0:
Use font_char_set_mut()
pub fn set_font_char_set(&mut self, value: FontCharSet) -> &mut Self
pub fn charset(&self) -> i32
pub fn get_charset(&self) -> i32
👎Deprecated since 3.0.0:
Use charset()
pub fn set_charset(&mut self, value: i32) -> &mut Self
pub fn font_scheme(&self) -> &FontScheme
pub fn get_font_scheme(&self) -> &FontScheme
👎Deprecated since 3.0.0:
Use font_scheme()
pub fn font_scheme_mut(&mut self) -> &mut FontScheme
pub fn get_font_scheme_mut(&mut self) -> &mut FontScheme
👎Deprecated since 3.0.0:
Use font_scheme_mut()
pub fn set_font_scheme(&mut self, value: FontScheme) -> &mut Self
pub fn scheme(&self) -> &str
pub fn get_scheme(&self) -> &str
👎Deprecated since 3.0.0:
Use scheme()
pub fn set_scheme<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn vertical_text_alignment(&self) -> &VerticalTextAlignment
pub fn get_vertical_text_alignment(&self) -> &VerticalTextAlignment
👎Deprecated since 3.0.0:
Use vertical_text_alignment()
pub fn vertical_text_alignment_mut(&mut self) -> &mut VerticalTextAlignment
pub fn get_vertical_text_alignment_mut(&mut self) -> &mut VerticalTextAlignment
👎Deprecated since 3.0.0:
Use vertical_text_alignment_mut()
pub fn set_vertical_text_alignment( &mut self, value: VerticalTextAlignment, ) -> &mut Self
Trait Implementations§
Source§impl PartialOrd for Font
impl PartialOrd for Font
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 UnsafeUnpin for Font
impl UnwindSafe for Font
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