1 // This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
2 
3 #pragma once
4 
5 #include <mbgl/style/types.hpp>
6 #include <mbgl/style/layout_property.hpp>
7 #include <mbgl/style/paint_property.hpp>
8 #include <mbgl/style/properties.hpp>
9 #include <mbgl/programs/attributes.hpp>
10 #include <mbgl/programs/uniforms.hpp>
11 
12 namespace mbgl {
13 namespace style {
14 
15 struct FillAntialias : PaintProperty<bool> {
defaultValuembgl::style::FillAntialias16     static bool defaultValue() { return true; }
17 };
18 
19 struct FillOpacity : DataDrivenPaintProperty<float, attributes::a_opacity, uniforms::u_opacity> {
defaultValuembgl::style::FillOpacity20     static float defaultValue() { return 1; }
21 };
22 
23 struct FillColor : DataDrivenPaintProperty<Color, attributes::a_color, uniforms::u_color> {
defaultValuembgl::style::FillColor24     static Color defaultValue() { return Color::black(); }
25 };
26 
27 struct FillOutlineColor : DataDrivenPaintProperty<Color, attributes::a_outline_color, uniforms::u_outline_color> {
defaultValuembgl::style::FillOutlineColor28     static Color defaultValue() { return {}; }
29 };
30 
31 struct FillTranslate : PaintProperty<std::array<float, 2>> {
defaultValuembgl::style::FillTranslate32     static std::array<float, 2> defaultValue() { return {{ 0, 0 }}; }
33 };
34 
35 struct FillTranslateAnchor : PaintProperty<TranslateAnchorType> {
defaultValuembgl::style::FillTranslateAnchor36     static TranslateAnchorType defaultValue() { return TranslateAnchorType::Map; }
37 };
38 
39 struct FillPattern : CrossFadedPaintProperty<std::string> {
defaultValuembgl::style::FillPattern40     static std::string defaultValue() { return ""; }
41 };
42 
43 class FillPaintProperties : public Properties<
44     FillAntialias,
45     FillOpacity,
46     FillColor,
47     FillOutlineColor,
48     FillTranslate,
49     FillTranslateAnchor,
50     FillPattern
51 > {};
52 
53 } // namespace style
54 } // namespace mbgl
55