// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #pragma once #include #include #include namespace mbgl { namespace style { struct SymbolPlacement : LayoutProperty { static constexpr const char * key = "symbol-placement"; static SymbolPlacementType defaultValue() { return SymbolPlacementType::Point; } }; struct SymbolSpacing : LayoutProperty { static constexpr const char * key = "symbol-spacing"; static float defaultValue() { return 250; } }; struct SymbolAvoidEdges : LayoutProperty { static constexpr const char * key = "symbol-avoid-edges"; static bool defaultValue() { return false; } }; struct IconAllowOverlap : LayoutProperty { static constexpr const char * key = "icon-allow-overlap"; static bool defaultValue() { return false; } }; struct IconIgnorePlacement : LayoutProperty { static constexpr const char * key = "icon-ignore-placement"; static bool defaultValue() { return false; } }; struct IconOptional : LayoutProperty { static constexpr const char * key = "icon-optional"; static bool defaultValue() { return false; } }; struct IconRotationAlignment : LayoutProperty { static constexpr const char * key = "icon-rotation-alignment"; static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct IconSize : LayoutProperty { static constexpr const char * key = "icon-size"; static float defaultValue() { return 1; } }; struct IconTextFit : LayoutProperty { static constexpr const char * key = "icon-text-fit"; static IconTextFitType defaultValue() { return IconTextFitType::None; } }; struct IconTextFitPadding : LayoutProperty> { static constexpr const char * key = "icon-text-fit-padding"; static std::array defaultValue() { return {{ 0, 0, 0, 0 }}; } }; struct IconImage : LayoutProperty { static constexpr const char * key = "icon-image"; static std::string defaultValue() { return ""; } }; struct IconRotate : LayoutProperty { static constexpr const char * key = "icon-rotate"; static float defaultValue() { return 0; } }; struct IconPadding : LayoutProperty { static constexpr const char * key = "icon-padding"; static float defaultValue() { return 2; } }; struct IconKeepUpright : LayoutProperty { static constexpr const char * key = "icon-keep-upright"; static bool defaultValue() { return false; } }; struct IconOffset : LayoutProperty> { static constexpr const char * key = "icon-offset"; static std::array defaultValue() { return {{ 0, 0 }}; } }; struct TextPitchAlignment : LayoutProperty { static constexpr const char * key = "text-pitch-alignment"; static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct TextRotationAlignment : LayoutProperty { static constexpr const char * key = "text-rotation-alignment"; static AlignmentType defaultValue() { return AlignmentType::Auto; } }; struct TextField : LayoutProperty { static constexpr const char * key = "text-field"; static std::string defaultValue() { return ""; } }; struct TextFont : LayoutProperty> { static constexpr const char * key = "text-font"; static std::vector defaultValue() { return { "Open Sans Regular", "Arial Unicode MS Regular" }; } }; struct TextSize : LayoutProperty { static constexpr const char * key = "text-size"; static float defaultValue() { return 16; } }; struct TextMaxWidth : LayoutProperty { static constexpr const char * key = "text-max-width"; static float defaultValue() { return 10; } }; struct TextLineHeight : LayoutProperty { static constexpr const char * key = "text-line-height"; static float defaultValue() { return 1.2; } }; struct TextLetterSpacing : LayoutProperty { static constexpr const char * key = "text-letter-spacing"; static float defaultValue() { return 0; } }; struct TextJustify : LayoutProperty { static constexpr const char * key = "text-justify"; static TextJustifyType defaultValue() { return TextJustifyType::Center; } }; struct TextAnchor : LayoutProperty { static constexpr const char * key = "text-anchor"; static TextAnchorType defaultValue() { return TextAnchorType::Center; } }; struct TextMaxAngle : LayoutProperty { static constexpr const char * key = "text-max-angle"; static float defaultValue() { return 45; } }; struct TextRotate : LayoutProperty { static constexpr const char * key = "text-rotate"; static float defaultValue() { return 0; } }; struct TextPadding : LayoutProperty { static constexpr const char * key = "text-padding"; static float defaultValue() { return 2; } }; struct TextKeepUpright : LayoutProperty { static constexpr const char * key = "text-keep-upright"; static bool defaultValue() { return true; } }; struct TextTransform : LayoutProperty { static constexpr const char * key = "text-transform"; static TextTransformType defaultValue() { return TextTransformType::None; } }; struct TextOffset : LayoutProperty> { static constexpr const char * key = "text-offset"; static std::array defaultValue() { return {{ 0, 0 }}; } }; struct TextAllowOverlap : LayoutProperty { static constexpr const char * key = "text-allow-overlap"; static bool defaultValue() { return false; } }; struct TextIgnorePlacement : LayoutProperty { static constexpr const char * key = "text-ignore-placement"; static bool defaultValue() { return false; } }; struct TextOptional : LayoutProperty { static constexpr const char * key = "text-optional"; static bool defaultValue() { return false; } }; struct IconOpacity : PaintProperty { static float defaultValue() { return 1; } }; struct IconColor : PaintProperty { static Color defaultValue() { return Color::black(); } }; struct IconHaloColor : PaintProperty { static Color defaultValue() { return {}; } }; struct IconHaloWidth : PaintProperty { static float defaultValue() { return 0; } }; struct IconHaloBlur : PaintProperty { static float defaultValue() { return 0; } }; struct IconTranslate : PaintProperty> { static std::array defaultValue() { return {{ 0, 0 }}; } }; struct IconTranslateAnchor : PaintProperty { static TranslateAnchorType defaultValue() { return TranslateAnchorType::Map; } }; struct TextOpacity : PaintProperty { static float defaultValue() { return 1; } }; struct TextColor : PaintProperty { static Color defaultValue() { return Color::black(); } }; struct TextHaloColor : PaintProperty { static Color defaultValue() { return {}; } }; struct TextHaloWidth : PaintProperty { static float defaultValue() { return 0; } }; struct TextHaloBlur : PaintProperty { static float defaultValue() { return 0; } }; struct TextTranslate : PaintProperty> { static std::array defaultValue() { return {{ 0, 0 }}; } }; struct TextTranslateAnchor : PaintProperty { static TranslateAnchorType defaultValue() { return TranslateAnchorType::Map; } }; class SymbolLayoutProperties : public LayoutProperties< SymbolPlacement, SymbolSpacing, SymbolAvoidEdges, IconAllowOverlap, IconIgnorePlacement, IconOptional, IconRotationAlignment, IconSize, IconTextFit, IconTextFitPadding, IconImage, IconRotate, IconPadding, IconKeepUpright, IconOffset, TextPitchAlignment, TextRotationAlignment, TextField, TextFont, TextSize, TextMaxWidth, TextLineHeight, TextLetterSpacing, TextJustify, TextAnchor, TextMaxAngle, TextRotate, TextPadding, TextKeepUpright, TextTransform, TextOffset, TextAllowOverlap, TextIgnorePlacement, TextOptional > {}; class SymbolPaintProperties : public PaintProperties< IconOpacity, IconColor, IconHaloColor, IconHaloWidth, IconHaloBlur, IconTranslate, IconTranslateAnchor, TextOpacity, TextColor, TextHaloColor, TextHaloWidth, TextHaloBlur, TextTranslate, TextTranslateAnchor > {}; } // namespace style } // namespace mbgl