#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrShapeType {
None = 0,
Rectangle = 1,
Ellipse = 2,
Curve = 3,
Polygon = 4,
Bitmap = 5,
Text = 6,
Group = 7,
Layer = 8,
Extrude = 9,
Envelope = 10,
Blend = 11,
Contour = 12,
DropShadow = 13,
Lens = 14,
Perspective = 15,
PowerClip = 16,
Crop = 17,
Custom = 18,
SymbolDefinition = 19,
SymbolInstance = 20,
Connector = 21,
ArtisticMedia = 22,
Dimension = 23,
OLE = 24,
Guide = 25,
RollOver = 26,
RollOverGroup = 27,
WebObject = 28,
BarCode = 29,
}
impl cdrShapeType {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::None),
1 => Some(Self::Rectangle),
2 => Some(Self::Ellipse),
3 => Some(Self::Curve),
4 => Some(Self::Polygon),
5 => Some(Self::Bitmap),
6 => Some(Self::Text),
7 => Some(Self::Group),
8 => Some(Self::Layer),
9 => Some(Self::Extrude),
10 => Some(Self::Envelope),
11 => Some(Self::Blend),
12 => Some(Self::Contour),
13 => Some(Self::DropShadow),
14 => Some(Self::Lens),
15 => Some(Self::Perspective),
16 => Some(Self::PowerClip),
17 => Some(Self::Crop),
18 => Some(Self::Custom),
19 => Some(Self::SymbolDefinition),
20 => Some(Self::SymbolInstance),
21 => Some(Self::Connector),
22 => Some(Self::ArtisticMedia),
23 => Some(Self::Dimension),
24 => Some(Self::OLE),
25 => Some(Self::Guide),
26 => Some(Self::RollOver),
27 => Some(Self::RollOverGroup),
28 => Some(Self::WebObject),
29 => Some(Self::BarCode),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrReferencePoint {
TopLeft = 0,
TopCenter = 1,
TopRight = 2,
MiddleLeft = 3,
MiddleCenter = 4,
MiddleRight = 5,
BottomLeft = 6,
BottomCenter = 7,
BottomRight = 8,
}
impl cdrReferencePoint {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::TopLeft),
1 => Some(Self::TopCenter),
2 => Some(Self::TopRight),
3 => Some(Self::MiddleLeft),
4 => Some(Self::MiddleCenter),
5 => Some(Self::MiddleRight),
6 => Some(Self::BottomLeft),
7 => Some(Self::BottomCenter),
8 => Some(Self::BottomRight),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrAlignType {
Left = 0,
Right = 1,
Top = 2,
Bottom = 3,
CenterHoriz = 4,
CenterVert = 5,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrShapeLevel {
SameLevel = 0,
AllLevels = 1,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrWrapStyle {
None = 0,
Square = 1,
Contour = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrOutlineType {
NoOutline = 0,
}