Enum harfbuzz::Direction [−][src]
pub enum Direction { Invalid, LTR, RTL, TTB, BTT, }
Direction of text flow during layout.
This maps to the hb_direction_t
from
harfbuzz-sys
. It can be converted to
or from hb_direction_t
using the From
and Into
traits:
assert_eq!(Direction::from(sys::HB_DIRECTION_LTR), Direction::LTR); assert_eq!(sys::hb_direction_t::from(Direction::BTT), sys::HB_DIRECTION_BTT); let hb_dir: sys::hb_direction_t = Direction::LTR.into(); assert_eq!(hb_dir, sys::HB_DIRECTION_LTR); let dir: Direction = sys::HB_DIRECTION_TTB.into(); assert_eq!(dir, Direction::TTB);
Variants
Initial, unset direction.
This corresponds to HB_DIRECTION_INVALID
.
Text is set horizontally from left to right.
This corresponds to HB_DIRECTION_LTR
.
Text is set horizontally from right to left.
This corresponds to HB_DIRECTION_RTL
.
Text is set vertically from top to bottom.
This corresponds to HB_DIRECTION_TTB
.
Text is set vertically from bottom to top.
This corresponds to HB_DIRECTION_BTT
.
Trait Implementations
impl PartialOrd<Direction> for Direction
[src]
impl PartialOrd<Direction> for Direction
[src]fn partial_cmp(&self, other: &Direction) -> Option<Ordering>
[src][−]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src][−]
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool