TextOptions
struct · ferroui-base · v0.5.0
struct TextOptions
Provides options for controlling text rendering and hinting.
Members
text_rendering_modetext_hinting_modebaseline_pixel_alignmentmerge_withget_text_optionsset_text_optionsget_text_rendering_modeset_text_rendering_modeget_text_hinting_modeset_text_hinting_modeget_baseline_pixel_alignmentset_baseline_pixel_alignment
text_rendering_mode
text_rendering_mode: crate::media::TextRenderingMode
Gets the text rendering mode.
text_hinting_mode
text_hinting_mode: crate::media::TextHintingMode
Gets the text hinting mode.
baseline_pixel_alignment
baseline_pixel_alignment: crate::media::BaselinePixelAlignment
Gets a value indicating whether the text baseline should be aligned to the pixel grid.
merge_with
fn merge_with(self: &Self, other: TextOptions) -> TextOptions
Merges this instance with other: every unspecified value of self
is taken from other.
get_text_options
fn get_text_options(visual: &Visual) -> TextOptions
Gets the text options of a visual.
set_text_options
fn set_text_options(visual: &Visual, value: TextOptions)
Sets the text options of a visual.
get_text_rendering_mode
fn get_text_rendering_mode(visual: &Visual) -> TextRenderingMode
Gets the value of the TextRenderingMode text option for a visual.
set_text_rendering_mode
fn set_text_rendering_mode(visual: &Visual, value: TextRenderingMode)
Sets the value of the TextRenderingMode text option for a visual.
get_text_hinting_mode
fn get_text_hinting_mode(visual: &Visual) -> TextHintingMode
Gets the value of the TextHintingMode text option for a visual.
set_text_hinting_mode
fn set_text_hinting_mode(visual: &Visual, value: TextHintingMode)
Sets the value of the TextHintingMode text option for a visual.
get_baseline_pixel_alignment
fn get_baseline_pixel_alignment(visual: &Visual) -> BaselinePixelAlignment
Gets the value of the BaselinePixelAlignment text option for a
visual.
set_baseline_pixel_alignment
fn set_baseline_pixel_alignment(visual: &Visual, value: BaselinePixelAlignment)
Sets the value of the BaselinePixelAlignment text option for a
visual.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHashServerPropertyValueBatchValue
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.