// clang-format off // 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 LineCap : LayoutProperty { static constexpr const char *name() { return "line-cap"; } static LineCapType defaultValue() { return LineCapType::Butt; } }; struct LineJoin : DataDrivenLayoutProperty { static constexpr const char *name() { return "line-join"; } static LineJoinType defaultValue() { return LineJoinType::Miter; } }; struct LineMiterLimit : LayoutProperty { static constexpr const char *name() { return "line-miter-limit"; } static float defaultValue() { return 2; } }; struct LineRoundLimit : LayoutProperty { static constexpr const char *name() { return "line-round-limit"; } static float defaultValue() { return 1; } }; struct LineSortKey : DataDrivenLayoutProperty { static constexpr const char *name() { return "line-sort-key"; } static float defaultValue() { return 0; } }; struct LineBlur : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct LineColor : DataDrivenPaintProperty { static Color defaultValue() { return Color::black(); } }; struct LineDasharray : CrossFadedPaintProperty> { static std::vector defaultValue() { return {}; } }; struct LineFloorWidth : DataDrivenPaintProperty { static float defaultValue() { return 1; } using EvaluatorType = DataDrivenPropertyEvaluator; }; struct LineGapWidth : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct LineGradient : ColorRampProperty { }; struct LineOffset : DataDrivenPaintProperty { static float defaultValue() { return 0; } }; struct LineOpacity : DataDrivenPaintProperty { static float defaultValue() { return 1; } }; struct LinePattern : CrossFadedDataDrivenPaintProperty { static expression::Image defaultValue() { return {}; } }; struct LineTranslate : PaintProperty> { static std::array defaultValue() { return {{0, 0}}; } }; struct LineTranslateAnchor : PaintProperty { static TranslateAnchorType defaultValue() { return TranslateAnchorType::Map; } }; struct LineWidth : DataDrivenPaintProperty { static float defaultValue() { return 1; } }; class LineLayoutProperties : public Properties< LineCap, LineJoin, LineMiterLimit, LineRoundLimit, LineSortKey > {}; class LinePaintProperties : public Properties< LineBlur, LineColor, LineDasharray, LineFloorWidth, LineGapWidth, LineGradient, LineOffset, LineOpacity, LinePattern, LineTranslate, LineTranslateAnchor, LineWidth > {}; class LineLayerProperties final : public LayerProperties { public: explicit LineLayerProperties(Immutable); LineLayerProperties( Immutable, CrossfadeParameters, LinePaintProperties::PossiblyEvaluated); ~LineLayerProperties() override; unsigned long constantsMask() const override; const LineLayer::Impl& layerImpl() const; // Data members. CrossfadeParameters crossfade; LinePaintProperties::PossiblyEvaluated evaluated; }; } // namespace style } // namespace mbgl // clang-format on