pub struct TextOptions {
pub text_rendering_mode: TextRenderingMode,
pub text_hinting_mode: TextHintingMode,
pub baseline_pixel_alignment: BaselinePixelAlignment,
}Expand description
Provides options for controlling text rendering and hinting.
Fields§
§text_rendering_mode: TextRenderingModeGets the text rendering mode.
text_hinting_mode: TextHintingModeGets the text hinting mode.
baseline_pixel_alignment: BaselinePixelAlignmentGets a value indicating whether the text baseline should be aligned to the pixel grid.
Implementations§
Source§impl TextOptions
impl TextOptions
Sourcepub fn merge_with(&self, other: TextOptions) -> TextOptions
pub fn merge_with(&self, other: TextOptions) -> TextOptions
Merges this instance with other: every unspecified value of self
is taken from other.
Sourcepub fn get_text_options(visual: &Visual) -> TextOptions
pub fn get_text_options(visual: &Visual) -> TextOptions
Gets the text options of a visual.
Sourcepub fn set_text_options(visual: &Visual, value: TextOptions)
pub fn set_text_options(visual: &Visual, value: TextOptions)
Sets the text options of a visual.
Sourcepub fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
pub fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
Gets the value of the TextRenderingMode text option for a visual.
Sourcepub fn set_text_rendering_mode(visual: &Visual, value: TextRenderingMode)
pub fn set_text_rendering_mode(visual: &Visual, value: TextRenderingMode)
Sets the value of the TextRenderingMode text option for a visual.
Sourcepub fn get_text_hinting_mode(visual: &Visual) -> TextHintingMode
pub fn get_text_hinting_mode(visual: &Visual) -> TextHintingMode
Gets the value of the TextHintingMode text option for a visual.
Sourcepub fn set_text_hinting_mode(visual: &Visual, value: TextHintingMode)
pub fn set_text_hinting_mode(visual: &Visual, value: TextHintingMode)
Sets the value of the TextHintingMode text option for a visual.
Sourcepub fn get_baseline_pixel_alignment(visual: &Visual) -> BaselinePixelAlignment
pub fn get_baseline_pixel_alignment(visual: &Visual) -> BaselinePixelAlignment
Gets the value of the BaselinePixelAlignment text option for a
visual.
Sourcepub fn set_baseline_pixel_alignment(
visual: &Visual,
value: BaselinePixelAlignment,
)
pub fn set_baseline_pixel_alignment( visual: &Visual, value: BaselinePixelAlignment, )
Sets the value of the BaselinePixelAlignment text option for a
visual.
Trait Implementations§
Source§impl BatchValue for TextOptions
impl BatchValue for TextOptions
Source§impl Clone for TextOptions
impl Clone for TextOptions
impl Copy for TextOptions
Source§impl Debug for TextOptions
impl Debug for TextOptions
Source§impl Default for TextOptions
impl Default for TextOptions
impl Eq for TextOptions
Source§impl Hash for TextOptions
impl Hash for TextOptions
Source§impl PartialEq for TextOptions
impl PartialEq for TextOptions
Source§impl ServerPropertyValue for TextOptions
impl ServerPropertyValue for TextOptions
impl StructuralPartialEq for TextOptions
Auto Trait Implementations§
impl Freeze for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnsafeUnpin for TextOptions
impl UnwindSafe for TextOptions
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more