pub struct TextFacetOptions {
pub horizontal_alignment: TextHorizontalAlignment,
pub vertical_alignment: TextVerticalAlignment,
pub visual: bool,
pub color: Color,
pub background_color: Option<Color>,
pub max_width: Option<f32>,
}
Expand description
Options for a text facet.
Fields§
§horizontal_alignment: TextHorizontalAlignment
Possibly obsolete horizontal alignment.
vertical_alignment: TextVerticalAlignment
Possibly obsolete vertical alignment.
visual: bool
Use visual alignment, vs purely font metrics
color: Color
Foreground color for the text.
background_color: Option<Color>
Background color for the text.
max_width: Option<f32>
Optional maximum width. If present, text is word wrapped to attempt to be no wider than maximum width.
Trait Implementations§
Source§impl Clone for TextFacetOptions
impl Clone for TextFacetOptions
Source§fn clone(&self) -> TextFacetOptions
fn clone(&self) -> TextFacetOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for TextFacetOptions
impl Default for TextFacetOptions
Source§fn default() -> TextFacetOptions
fn default() -> TextFacetOptions
Returns the “default value” for a type. Read more
impl Copy for TextFacetOptions
Auto Trait Implementations§
impl Freeze for TextFacetOptions
impl RefUnwindSafe for TextFacetOptions
impl Send for TextFacetOptions
impl Sync for TextFacetOptions
impl Unpin for TextFacetOptions
impl UnwindSafe for TextFacetOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)