#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrAlignment {
NoAlignment = 0,
LeftAlignment = 1,
RightAlignment = 2,
CenterAlignment = 3,
FullJustifyAlignment = 4,
ForceJustifyAlignment = 5,
MixedAlignment = 6,
}
impl cdrAlignment {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::NoAlignment),
1 => Some(Self::LeftAlignment),
2 => Some(Self::RightAlignment),
3 => Some(Self::CenterAlignment),
4 => Some(Self::FullJustifyAlignment),
5 => Some(Self::ForceJustifyAlignment),
6 => Some(Self::MixedAlignment),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrFontStyle {
Normal = 0,
Bold = 1,
Italic = 2,
BoldItalic = 3,
Thin = 4,
ThinItalic = 5,
ExtraLight = 6,
Medium = 13,
SemiBold = 14,
}
impl cdrFontStyle {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::Normal),
1 => Some(Self::Bold),
2 => Some(Self::Italic),
3 => Some(Self::BoldItalic),
4 => Some(Self::Thin),
5 => Some(Self::ThinItalic),
6 => Some(Self::ExtraLight),
13 => Some(Self::Medium),
14 => Some(Self::SemiBold),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrFontLine {
None = 0,
SingleThin = 1,
SingleThick = 2,
DoubleThin = 3,
DoubleThick = 4,
MixedFontLine = 5,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrFontCase {
Normal = 0,
SmallCaps = 1,
AllCaps = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrFontPosition {
Normal = 0,
Subscript = 1,
Superscript = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextType {
Artistic = 1,
Paragraph = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextFrames {
ThisFrameOnly = 0,
StartAtThisFrame = 1,
AllFrames = 2,
}
impl cdrTextFrames {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::ThisFrameOnly),
1 => Some(Self::StartAtThisFrame),
2 => Some(Self::AllFrames),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextIndexingType {
CharacterIndexing = 0,
WordIndexing = 1,
LineIndexing = 2,
ParagraphIndexing = 3,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextCharSet {
CharSetDefault = 0,
CharSetASCII = 1,
CharSetMacRoman = 2,
CharSetUnicode = 3,
CharSetMixed = 4,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextLanguage {
LanguageNone = 0,
EnglishUS = 1033,
EnglishUK = 2057,
ChineseSimplified = 2052,
ChineseTraditional = 1028,
ChineseSingapore = 4100,
Japanese = 1041,
Korean = 1042,
German = 1031,
French = 1036,
Spanish = 1034,
Italian = 1040,
PortugueseBrazil = 1046,
Russian = 1049,
}
impl cdrTextLanguage {
pub fn from_i32(v: i32) -> Option<Self> {
match v {
0 => Some(Self::LanguageNone),
1033 => Some(Self::EnglishUS),
2057 => Some(Self::EnglishUK),
2052 => Some(Self::ChineseSimplified),
1028 => Some(Self::ChineseTraditional),
4100 => Some(Self::ChineseSingapore),
1041 => Some(Self::Japanese),
1042 => Some(Self::Korean),
1031 => Some(Self::German),
1036 => Some(Self::French),
1034 => Some(Self::Spanish),
1040 => Some(Self::Italian),
1046 => Some(Self::PortugueseBrazil),
1049 => Some(Self::Russian),
_ => None,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextEffect {
None = 0,
Bullet = 1,
DropCap = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextChangeCase {
Uppercase = 0,
Lowercase = 1,
TitleCase = 2,
SentenceCase = 3,
ToggleCase = 4,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextTabAlignment {
Left = 0,
Right = 1,
Center = 2,
Decimal = 3,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrVerticalAlignment {
Top = 0,
Center = 1,
Bottom = 2,
Full = 3,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrLineSpacingType {
PercentOfCharacterHeight = 0,
Points = 1,
PercentOfPointSize = 2,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[repr(i32)]
#[allow(nonstandard_style)]
pub enum cdrTextPropertySet {
All = 0,
}