// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #pragma once #include #include #include #include #include #include #include #include namespace mbgl { namespace style { struct IconAllowOverlap : LayoutProperty { static constexpr const char *name() { return "icon-allow-overlap"; } static bool defaultValue() { return false; } }; struct IconAnchor : DataDrivenLayoutProperty { static constexpr const char *name() { return "icon-anchor"; } static SymbolAnchorType defaultValue() { return SymbolAnchorType::Center; } }; struct IconIgnorePlacement : LayoutProperty { static constexpr const char *name() { return "icon-ignore-placement"; } static bool defaultValue() { return false; } }; struct IconImage : DataDrivenLayoutProperty { static constexpr const char *name() { return "icon-image"; } static std::string defaultValue() { return ""; } }; struct IconKeepUpright : LayoutProperty { static constexpr const char *name() { return "icon-keep-upright"; } static bool defaultValue() { return false; } }; struct IconOffset : DataDrivenLayoutProperty> { static constexpr const char *name() { return "icon-offset"; } static std::array defaultValue() { return {{ 0, 0 }}; } }; struct IconOptional : LayoutProperty { static constexpr const char *name() { return "icon-optional"; } static bool defaultValue() { return false; } }; struct IconPadding : LayoutProperty { static constexpr const char *name() { return "icon-padding"; } static float defaultValue() { return 2; } }; struct IconPitchAlignment : LayoutProperty { static constexpr const char *name() { return "icon-pitch-alignment"; } static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct IconRotate : DataDrivenLayoutProperty { static constexpr const char *name() { return "icon-rotate"; } static float defaultValue() { return 0; } }; struct IconRotationAlignment : LayoutProperty { static constexpr const char *name() { return "icon-rotation-alignment"; } static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct IconSize : DataDrivenLayoutProperty { static constexpr const char *name() { return "icon-size"; } static float defaultValue() { return 1; } }; struct IconTextFit : LayoutProperty { static constexpr const char *name() { return "icon-text-fit"; } static IconTextFitType defaultValue() { return IconTextFitType::None; } }; struct IconTextFitPadding : LayoutProperty> { static constexpr const char *name() { return "icon-text-fit-padding"; } static std::array defaultValue() { return {{ 0, 0, 0, 0 }}; } }; struct SymbolAvoidEdges : LayoutProperty { static constexpr const char *name() { return "symbol-avoid-edges"; } static bool defaultValue() { return false; } }; struct SymbolPlacement : LayoutProperty { static constexpr const char *name() { return "symbol-placement"; } static SymbolPlacementType defaultValue() { return SymbolPlacementType::Point; } }; struct SymbolSortKey : DataDrivenLayoutProperty { static constexpr const char *name() { return "symbol-sort-key"; } static float defaultValue() { return 0; } }; struct SymbolSpacing : LayoutProperty { static constexpr const char *name() { return "symbol-spacing"; } static float defaultValue() { return 250; } }; struct SymbolZOrder : LayoutProperty { static constexpr const char *name() { return "symbol-z-order"; } static SymbolZOrderType defaultValue() { return SymbolZOrderType::Auto; } }; struct TextAllowOverlap : LayoutProperty { static constexpr const char *name() { return "text-allow-overlap"; } static bool defaultValue() { return false; } }; struct TextAnchor : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-anchor"; } static SymbolAnchorType defaultValue() { return SymbolAnchorType::Center; } }; struct TextField : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-field"; } static expression::Formatted defaultValue() { return ""; } }; struct TextFont : DataDrivenLayoutProperty> { static constexpr const char *name() { return "text-font"; } static std::vector defaultValue() { return { "Open Sans Regular", "Arial Unicode MS Regular" }; } }; struct TextIgnorePlacement : LayoutProperty { static constexpr const char *name() { return "text-ignore-placement"; } static bool defaultValue() { return false; } }; struct TextJustify : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-justify"; } static TextJustifyType defaultValue() { return TextJustifyType::Center; } }; struct TextKeepUpright : LayoutProperty { static constexpr const char *name() { return "text-keep-upright"; } static bool defaultValue() { return true; } }; struct TextLetterSpacing : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-letter-spacing"; } static float defaultValue() { return 0; } }; struct TextLineHeight : LayoutProperty { static constexpr const char *name() { return "text-line-height"; } static float defaultValue() { return 1.2; } }; struct TextMaxAngle : LayoutProperty { static constexpr const char *name() { return "text-max-angle"; } static float defaultValue() { return 45; } }; struct TextMaxWidth : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-max-width"; } static float defaultValue() { return 10; } }; struct TextOffset : DataDrivenLayoutProperty> { static constexpr const char *name() { return "text-offset"; } static std::array defaultValue() { return {{ 0, 0 }}; } }; struct TextOptional : LayoutProperty { static constexpr const char *name() { return "text-optional"; } static bool defaultValue() { return false; } }; struct TextPadding : LayoutProperty { static constexpr const char *name() { return "text-padding"; } static float defaultValue() { return 2; } }; struct TextPitchAlignment : LayoutProperty { static constexpr const char *name() { return "text-pitch-alignment"; } static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct TextRadialOffset : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-radial-offset"; } static float defaultValue() { return 0; } }; struct TextRotate : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-rotate"; } static float defaultValue() { return 0; } }; struct TextRotationAlignment : LayoutProperty { static constexpr const char *name() { return "text-rotation-alignment"; } static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct TextSize : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-size"; } static float defaultValue() { return 16; } }; struct TextTransform : DataDrivenLayoutProperty { static constexpr const char *name() { return "text-transform"; } static TextTransformType defaultValue() { return TextTransformType::None; } }; struct TextVariableAnchor : LayoutProperty> { static constexpr const char *name() { return "text-variable-anchor"; } static std::vector defaultValue() { return { }; } }; struct IconColor : DataDrivenPaintProperty { static Color defaultValue() { return Color::black(); } }; struct IconHaloBlur : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct IconHaloColor : DataDrivenPaintProperty { static Color defaultValue() { return {}; } }; struct IconHaloWidth : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct IconOpacity : DataDrivenPaintProperty { static float defaultValue() { return 1; } }; struct IconTranslate : PaintProperty> { static std::array defaultValue() { return {{ 0, 0 }}; } }; struct IconTranslateAnchor : PaintProperty { static TranslateAnchorType defaultValue() { return TranslateAnchorType::Map; } }; struct TextColor : DataDrivenPaintProperty { static Color defaultValue() { return Color::black(); } static constexpr const char *name() { return "text-color"; } static constexpr auto expressionType() { return expression::type::ColorType{}; }; template static bool hasOverride(const T& t) { return !!t.textColor; }; }; struct TextHaloBlur : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct TextHaloColor : DataDrivenPaintProperty { static Color defaultValue() { return {}; } }; struct TextHaloWidth : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct TextOpacity : DataDrivenPaintProperty { static float defaultValue() { return 1; } }; struct TextTranslate : PaintProperty> { static std::array defaultValue() { return {{ 0, 0 }}; } }; struct TextTranslateAnchor : PaintProperty { static TranslateAnchorType defaultValue() { return TranslateAnchorType::Map; } }; class SymbolLayoutProperties : public Properties< IconAllowOverlap, IconAnchor, IconIgnorePlacement, IconImage, IconKeepUpright, IconOffset, IconOptional, IconPadding, IconPitchAlignment, IconRotate, IconRotationAlignment, IconSize, IconTextFit, IconTextFitPadding, SymbolAvoidEdges, SymbolPlacement, SymbolSortKey, SymbolSpacing, SymbolZOrder, TextAllowOverlap, TextAnchor, TextField, TextFont, TextIgnorePlacement, TextJustify, TextKeepUpright, TextLetterSpacing, TextLineHeight, TextMaxAngle, TextMaxWidth, TextOffset, TextOptional, TextPadding, TextPitchAlignment, TextRadialOffset, TextRotate, TextRotationAlignment, TextSize, TextTransform, TextVariableAnchor > {}; class SymbolPaintProperties : public Properties< IconColor, IconHaloBlur, IconHaloColor, IconHaloWidth, IconOpacity, IconTranslate, IconTranslateAnchor, TextColor, TextHaloBlur, TextHaloColor, TextHaloWidth, TextOpacity, TextTranslate, TextTranslateAnchor > {}; class SymbolLayerProperties final : public LayerProperties { public: explicit SymbolLayerProperties(Immutable); SymbolLayerProperties( Immutable, SymbolPaintProperties::PossiblyEvaluated); ~SymbolLayerProperties() override; unsigned long constantsMask() const override; const SymbolLayer::Impl& layerImpl() const; // Data members. SymbolPaintProperties::PossiblyEvaluated evaluated; }; } // namespace style } // namespace mbgl