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§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more