21 enum_<para::Affinity>(
"Affinity")
22 .value(
"Upstream", para::Affinity::kUpstream)
23 .value(
"Downstream", para::Affinity::kDownstream);
25 enum_<para::TextDecorationStyle>(
"DecorationStyle")
26 .value(
"Solid", para::TextDecorationStyle::kSolid)
27 .value(
"Double", para::TextDecorationStyle::kDouble)
28 .value(
"Dotted", para::TextDecorationStyle::kDotted)
29 .value(
"Dashed", para::TextDecorationStyle::kDashed)
30 .value(
"Wavy", para::TextDecorationStyle::kWavy);
32 enum_<SkFontStyle::Slant>(
"FontSlant")
37 enum_<SkFontStyle::Weight>(
"FontWeight")
50 enum_<SkFontStyle::Width>(
"FontWidth")
61 enum_<para::PlaceholderAlignment>(
"PlaceholderAlignment")
62 .value(
"Baseline", para::PlaceholderAlignment::kBaseline)
63 .value(
"AboveBaseline", para::PlaceholderAlignment::kAboveBaseline)
64 .value(
"BelowBaseline", para::PlaceholderAlignment::kBelowBaseline)
65 .value(
"Top", para::PlaceholderAlignment::kTop)
66 .value(
"Bottom", para::PlaceholderAlignment::kBottom)
67 .value(
"Middle", para::PlaceholderAlignment::kMiddle);
69 enum_<para::RectHeightStyle>(
"RectHeightStyle")
70 .value(
"Tight", para::RectHeightStyle::kTight)
71 .value(
"Max", para::RectHeightStyle::kMax)
72 .value(
"IncludeLineSpacingMiddle", para::RectHeightStyle::kIncludeLineSpacingMiddle)
73 .value(
"IncludeLineSpacingTop", para::RectHeightStyle::kIncludeLineSpacingTop)
74 .value(
"IncludeLineSpacingBottom", para::RectHeightStyle::kIncludeLineSpacingBottom)
75 .value(
"Strut", para::RectHeightStyle::kStrut);
77 enum_<para::RectWidthStyle>(
"RectWidthStyle")
78 .value(
"Tight", para::RectWidthStyle::kTight)
79 .value(
"Max", para::RectWidthStyle::kMax);
81 enum_<para::TextAlign>(
"TextAlign")
82 .value(
"Left", para::TextAlign::kLeft)
83 .value(
"Right", para::TextAlign::kRight)
84 .value(
"Center", para::TextAlign::kCenter)
85 .value(
"Justify", para::TextAlign::kJustify)
86 .value(
"Start", para::TextAlign::kStart)
87 .value(
"End", para::TextAlign::kEnd);
89 enum_<para::TextBaseline>(
"TextBaseline")
90 .value(
"Alphabetic", para::TextBaseline::kAlphabetic)
91 .value(
"Ideographic", para::TextBaseline::kIdeographic);
93 enum_<para::TextDirection>(
"TextDirection")
94 .value(
"LTR", para::TextDirection::kLtr)
95 .value(
"RTL", para::TextDirection::kRtl);
97 enum_<para::TextHeightBehavior>(
"TextHeightBehavior")
98 .value(
"All", para::TextHeightBehavior::kAll)
99 .value(
"DisableFirstAscent", para::TextHeightBehavior::kDisableFirstAscent)
100 .value(
"DisableLastDescent", para::TextHeightBehavior::kDisableLastDescent)
101 .value(
"DisableAll", para::TextHeightBehavior::kDisableAll);
103 enum_<SkUnicode::LineBreakType>(
"LineBreakType")