#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrPageOrientation {
Portrait = 0,
Landscape = 1,
}
impl cdrPageOrientation {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::Portrait),
1 => Some(Self::Landscape),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrPageBackground {
PageBackgroundNone = 0,
PageBackgroundSolid = 1,
PageBackgroundBitmap = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrUnit {
TenthMicron = 0,
Inch = 1,
Foot = 2,
Millimeter = 3,
Centimeter = 4,
Pixel = 5,
Mile = 6,
Meter = 7,
Kilometer = 8,
Didots = 9,
Agate = 10,
Yard = 11,
Pica = 12,
Cicero = 13,
Point = 14,
UnitQ = 15,
UnitH = 16,
}
impl cdrUnit {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::TenthMicron),
1 => Some(Self::Inch),
2 => Some(Self::Foot),
3 => Some(Self::Millimeter),
4 => Some(Self::Centimeter),
5 => Some(Self::Pixel),
6 => Some(Self::Mile),
7 => Some(Self::Meter),
8 => Some(Self::Kilometer),
9 => Some(Self::Didots),
10 => Some(Self::Agate),
11 => Some(Self::Yard),
12 => Some(Self::Pica),
13 => Some(Self::Cicero),
14 => Some(Self::Point),
15 => Some(Self::UnitQ),
16 => Some(Self::UnitH),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrGuideType {
AllGuides = -1,
HorizontalGuide = 0,
VerticalGuide = 1,
SlantedGuide = 2,
}
impl cdrGuideType {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
-1 => Some(Self::AllGuides),
0 => Some(Self::HorizontalGuide),
1 => Some(Self::VerticalGuide),
2 => Some(Self::SlantedGuide),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrGridType {
GridDot = 0,
GridLine = 1,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrSpreadType {
Left = 0,
Right = 1,
Full = 2,
}