Struct dx::support::glyph::SectionText
[−]Expand description
Text to layout together using a font & scale.
Fields
text: &'a strText to render
scale: PxScalePosition on screen to render text, in pixels from top-left. Defaults to (0, 0).
font_id: FontIdFont id to use for this section.
It must be a valid id in the FontMap used for layout calls.
The default FontId(0) should always be valid.
Trait Implementations
impl<'a> Clone for SectionText<'a>
impl<'a> Clone for SectionText<'a>
fn clone(&self) -> SectionText<'a>
fn clone(&self) -> SectionText<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
impl<'a> Debug for SectionText<'a>
impl<'a> Debug for SectionText<'a>
impl Default for SectionText<'static>
impl Default for SectionText<'static>
fn default() -> SectionText<'static>
fn default() -> SectionText<'static>
Returns the “default value” for a type. Read more
impl<'a> PartialEq<SectionText<'a>> for SectionText<'a>
impl<'a> PartialEq<SectionText<'a>> for SectionText<'a>
fn eq(&self, other: &SectionText<'a>) -> bool
fn eq(&self, other: &SectionText<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &SectionText<'a>) -> bool
fn ne(&self, other: &SectionText<'a>) -> bool
This method tests for !=.
impl<'_, '_> ToSectionText for &'_ SectionText<'_>
impl<'_, '_> ToSectionText for &'_ SectionText<'_>
fn to_section_text(&self) -> SectionText<'_>
impl<'_> ToSectionText for SectionText<'_>
impl<'_> ToSectionText for SectionText<'_>
fn to_section_text(&self) -> SectionText<'_>
impl<'a> Copy for SectionText<'a>
impl<'a> StructuralPartialEq for SectionText<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SectionText<'a>
impl<'a> Send for SectionText<'a>
impl<'a> Sync for SectionText<'a>
impl<'a> Unpin for SectionText<'a>
impl<'a> UnwindSafe for SectionText<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.