[core] Enable text-variable-anchor property

This commit is contained in:
Mikhail Pozdnyakov
2019-03-07 18:34:45 +02:00
parent 4adfc5d323
commit a6d8742e63
19 changed files with 152 additions and 4 deletions

View File

@@ -34,6 +34,11 @@ struct Converter<T, typename std::enable_if_t<std::is_enum<T>::value>> {
optional<T> operator()(const Convertible& value, Error& error) const;
};
template <class T>
struct Converter<std::vector<T>, typename std::enable_if_t<std::is_enum<T>::value>> {
optional<std::vector<T>> operator()(const Convertible& value, Error& error) const;
};
template <>
struct Converter<Color> {
optional<Color> operator()(const Convertible& value, Error& error) const;

View File

@@ -134,6 +134,10 @@ public:
PropertyValue<TextJustifyType> getTextJustify() const;
void setTextJustify(PropertyValue<TextJustifyType>);
static PropertyValue<std::vector<TextVariableAnchorType>> getDefaultTextVariableAnchor();
PropertyValue<std::vector<TextVariableAnchorType>> getTextVariableAnchor() const;
void setTextVariableAnchor(PropertyValue<std::vector<TextVariableAnchorType>>);
static PropertyValue<SymbolAnchorType> getDefaultTextAnchor();
PropertyValue<SymbolAnchorType> getTextAnchor() const;
void setTextAnchor(PropertyValue<SymbolAnchorType>);

View File

@@ -98,6 +98,8 @@ enum class SymbolAnchorType : uint8_t {
BottomRight
};
using TextVariableAnchorType = SymbolAnchorType;
enum class TextTransformType : uint8_t {
None,
Uppercase,