Enum fontdue::layout::CoordinateSystem
source · [−]pub enum CoordinateSystem {
PositiveYUp,
PositiveYDown,
}
Expand description
The direction that the Y coordinate increases in. Layout needs to be aware of your coordinate system to place the glyphs correctly.
Variants
PositiveYUp
The Y coordinate increases up relative to the window or image. The higher up on the window, the more positive Y becomes.
PositiveYDown
The Y coordinate increases down relative to the window or image. The lower down on the window, the more positive Y becomes.
Trait Implementations
sourceimpl Clone for CoordinateSystem
impl Clone for CoordinateSystem
sourcefn clone(&self) -> CoordinateSystem
fn clone(&self) -> CoordinateSystem
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
sourceimpl PartialEq<CoordinateSystem> for CoordinateSystem
impl PartialEq<CoordinateSystem> for CoordinateSystem
impl Copy for CoordinateSystem
impl StructuralPartialEq for CoordinateSystem
Auto Trait Implementations
impl RefUnwindSafe for CoordinateSystem
impl Send for CoordinateSystem
impl Sync for CoordinateSystem
impl Unpin for CoordinateSystem
impl UnwindSafe for CoordinateSystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more