#[repr(u32)]pub enum GEUnit {
GE_DEVICE = 0,
GE_NDC = 1,
GE_INCHES = 2,
GE_CM = 3,
}
Expand description
The graphics engine will only accept locations and dimensions in native device coordinates, but it provides the following functions for converting between a couple of simple alternative coordinate systems and device coordinates: DEVICE = native units of the device NDC = Normalised device coordinates INCHES = inches (!) CM = centimetres (!!)
Variants§
GE_DEVICE = 0
native device coordinates (rasters)
GE_NDC = 1
normalised device coordinates x=(0,1), y=(0,1)
GE_INCHES = 2
GE_CM = 3
Trait Implementations§
source§impl PartialEq for GEUnit
impl PartialEq for GEUnit
impl Copy for GEUnit
impl Eq for GEUnit
impl StructuralPartialEq for GEUnit
Auto Trait Implementations§
impl Freeze for GEUnit
impl RefUnwindSafe for GEUnit
impl Send for GEUnit
impl Sync for GEUnit
impl Unpin for GEUnit
impl UnwindSafe for GEUnit
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
Mutably borrows from an owned value. Read more