Enum directwrite::enums::ParagraphAlignment
source · #[repr(u32)]
pub enum ParagraphAlignment {
Near,
Far,
Center,
}Expand description
Specifies the alignment of paragraph text along the flow direction axis, relative to the top and bottom of the flow’s layout box.
Variants
Near
The top of the text flow is aligned to the top edge of the layout box.
Far
The bottom of the text flow is aligned to the bottom edge of the layout box.
Center
The center of the flow is aligned to the center of the layout box.
Implementations
Trait Implementations
sourceimpl CheckedEnum for ParagraphAlignment
impl CheckedEnum for ParagraphAlignment
type Storage = u32
fn try_from_storage(val: Self::Storage) -> Option<Self>
fn to_storage(self) -> Self::Storage
sourceimpl Clone for ParagraphAlignment
impl Clone for ParagraphAlignment
sourcefn clone(&self) -> ParagraphAlignment
fn clone(&self) -> ParagraphAlignment
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 moresourceimpl Debug for ParagraphAlignment
impl Debug for ParagraphAlignment
sourceimpl Hash for ParagraphAlignment
impl Hash for ParagraphAlignment
sourceimpl Ord for ParagraphAlignment
impl Ord for ParagraphAlignment
sourcefn cmp(&self, other: &ParagraphAlignment) -> Ordering
fn cmp(&self, other: &ParagraphAlignment) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ParagraphAlignment> for ParagraphAlignment
impl PartialEq<ParagraphAlignment> for ParagraphAlignment
sourcefn eq(&self, other: &ParagraphAlignment) -> bool
fn eq(&self, other: &ParagraphAlignment) -> bool
sourceimpl PartialOrd<ParagraphAlignment> for ParagraphAlignment
impl PartialOrd<ParagraphAlignment> for ParagraphAlignment
sourcefn partial_cmp(&self, other: &ParagraphAlignment) -> Option<Ordering>
fn partial_cmp(&self, other: &ParagraphAlignment) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ParagraphAlignment
impl Eq for ParagraphAlignment
impl StructuralEq for ParagraphAlignment
impl StructuralPartialEq for ParagraphAlignment
Auto Trait Implementations
impl RefUnwindSafe for ParagraphAlignment
impl Send for ParagraphAlignment
impl Sync for ParagraphAlignment
impl Unpin for ParagraphAlignment
impl UnwindSafe for ParagraphAlignment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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