#[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 {
NoBackground = 0,
SolidBackground = 1,
BitmapBackground = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrUnit {
Inch = 0,
Millimeter = 1,
Pica = 2,
Point = 3,
Centimeter = 4,
Pixel = 5,
Cicero = 6,
Didot = 7,
Foot = 8,
Yard = 9,
Meter = 10,
Kilometer = 11,
Mile = 12,
Pica2 = 13,
Agate = 14,
}
impl cdrUnit {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::Inch),
1 => Some(Self::Millimeter),
2 => Some(Self::Pica),
3 => Some(Self::Point),
4 => Some(Self::Centimeter),
5 => Some(Self::Pixel),
6 => Some(Self::Cicero),
7 => Some(Self::Didot),
8 => Some(Self::Foot),
9 => Some(Self::Yard),
10 => Some(Self::Meter),
11 => Some(Self::Kilometer),
12 => Some(Self::Mile),
13 => Some(Self::Pica2),
14 => Some(Self::Agate),
_ => 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 {
Rectangular = 0,
Polar = 1,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrSpreadType {
Left = 0,
Right = 1,
Full = 2,
}