Enum kas_text::Align [−][src]
pub enum Align {
Default,
TL,
Centre,
BR,
Stretch,
}
Expand description
Alignment of contents
Note that alignment information is often passed as a (horiz, vert)
pair.
Variants
Default alignment
This is context dependent. For example, for Left-To-Right text it means
TL
; for things which want to stretch it may mean Stretch
.
Align to top or left
Align to centre
Align to bottom or right
Stretch to fill space
For text, this is known as “justified alignment”.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Align
impl UnwindSafe for Align
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast to integer, truncating Read more
Cast to the nearest integer Read more
Cast the floor to an integer Read more
Try converting to integer with truncation Read more
Try converting to the nearest integer Read more
Try converting the floor to an integer Read more
Try convert the ceiling to an integer Read more