pub struct TextLayout { /* private fields */ }Expand description
Optional text layout instructions. Omitted fields retain owner defaults.
A supplied default request is an explicit reset, distinct from no request.
Implementations§
Source§impl TextLayout
impl TextLayout
Sourcepub const fn get_alignment(&self) -> Option<TextAlignment>
pub const fn get_alignment(&self) -> Option<TextAlignment>
Inspect the requested physical line alignment.
Sourcepub fn get_fit_priority(&self) -> Option<TextFitPriority>
pub fn get_fit_priority(&self) -> Option<TextFitPriority>
Inspect the requested fitting and abbreviation priority.
Sourcepub fn get_direction(&self) -> Option<TextDirection>
pub fn get_direction(&self) -> Option<TextDirection>
Inspect the requested paragraph direction.
Sourcepub fn get_orientation(&self) -> Option<&TextOrientation>
pub fn get_orientation(&self) -> Option<&TextOrientation>
Borrow the requested orientation program.
Sourcepub fn get_rotation_mode(&self) -> Option<TextRotationMode>
pub fn get_rotation_mode(&self) -> Option<TextRotationMode>
Inspect the requested rotation-anchor relationship.
Sourcepub fn get_anchor(&self) -> Option<TextAnchor>
pub fn get_anchor(&self) -> Option<TextAnchor>
Inspect the requested measured-block anchor.
Sourcepub fn get_offset(&self) -> Option<TextOffset>
pub fn get_offset(&self) -> Option<TextOffset>
Inspect the requested signed CSS-pixel displacement.
Sourcepub fn get_bounds(&self) -> Option<TextBounds>
pub fn get_bounds(&self) -> Option<TextBounds>
Inspect the requested text-local maxima.
Sourcepub fn get_wrapping(&self) -> Option<TextWrapping>
pub fn get_wrapping(&self) -> Option<TextWrapping>
Inspect the requested soft-wrap policy.
Sourcepub fn get_overflow(&self) -> Option<&TextOverflow>
pub fn get_overflow(&self) -> Option<&TextOverflow>
Borrow the requested overflow program.
Sourcepub fn get_overlap(&self) -> Option<TextOverlap>
pub fn get_overlap(&self) -> Option<TextOverlap>
Inspect the requested peer-overlap policy.
Sourcepub fn get_visibility(&self) -> Option<&TextVisibility>
pub fn get_visibility(&self) -> Option<&TextVisibility>
Borrow the requested text-eligibility program.
Sourcepub const fn alignment(self, alignment: TextAlignment) -> Self
pub const fn alignment(self, alignment: TextAlignment) -> Self
Set physical line alignment within the text block.
Source§impl TextLayout
impl TextLayout
Sourcepub fn anchor(self, value: TextAnchor) -> Self
pub fn anchor(self, value: TextAnchor) -> Self
Replace this request’s anchor instruction.
Sourcepub fn offset(self, value: TextOffset) -> Self
pub fn offset(self, value: TextOffset) -> Self
Replace this request’s offset instruction.
Sourcepub fn bounds(self, value: TextBounds) -> Self
pub fn bounds(self, value: TextBounds) -> Self
Replace this request’s bounds instruction.
Sourcepub fn wrapping(self, value: TextWrapping) -> Self
pub fn wrapping(self, value: TextWrapping) -> Self
Replace this request’s wrapping instruction.
Sourcepub fn overflow(self, value: TextOverflow) -> Self
pub fn overflow(self, value: TextOverflow) -> Self
Replace this request’s overflow instruction.
Sourcepub fn overlap(self, value: TextOverlap) -> Self
pub fn overlap(self, value: TextOverlap) -> Self
Replace this request’s overlap instruction.
Sourcepub fn visibility(self, value: TextVisibility) -> Self
pub fn visibility(self, value: TextVisibility) -> Self
Replace this request’s visibility instruction.
Sourcepub fn orientation(self, value: TextOrientation) -> Self
pub fn orientation(self, value: TextOrientation) -> Self
Replace this request’s orientation instruction.
Sourcepub fn rotation_mode(self, value: TextRotationMode) -> Self
pub fn rotation_mode(self, value: TextRotationMode) -> Self
Replace this request’s rotation_mode instruction.
Sourcepub fn direction(self, value: TextDirection) -> Self
pub fn direction(self, value: TextDirection) -> Self
Replace this request’s direction instruction.
Sourcepub fn fit_priority(self, value: TextFitPriority) -> Self
pub fn fit_priority(self, value: TextFitPriority) -> Self
Replace this request’s fit_priority instruction.
Source§impl TextLayout
impl TextLayout
Sourcepub fn rotation(self, value: TextRotation) -> Self
pub fn rotation(self, value: TextRotation) -> Self
Replace orientation with one fixed screen angle.
Trait Implementations§
Source§impl Clone for TextLayout
impl Clone for TextLayout
Source§impl Debug for TextLayout
impl Debug for TextLayout
Source§impl Default for TextLayout
impl Default for TextLayout
impl Eq for TextLayout
Source§impl PartialEq for TextLayout
impl PartialEq for TextLayout
impl StructuralPartialEq for TextLayout
Auto Trait Implementations§
impl Forget for TextLayout
impl Freeze for TextLayout
impl Move for TextLayout
impl RefUnwindSafe for TextLayout
impl Send for TextLayout
impl Sync for TextLayout
impl Unpin for TextLayout
impl UnsafeUnpin for TextLayout
impl UnwindSafe for TextLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.