* [ios, macos] new struct MGLTransition * [ios] MGLTransition struct moved to MGLTypes.h * [ios] MGLTransition implemented for style layer properties * [ios, macos] added support for getting property transitions * [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration * [ios, macos] added transition properties test * [ios, macos] modified key strings imp * [ios, macos] The impl for transition properties were changed to public methods * [ios, macos] Changelog update * [ios] Fixed layer space formatting * [core] The name space was fixed for getters that returned TransitionOptions * [ios, macos] Added rawLayer transition property tests * [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions) * [ios, macos] Copyedited changelog blurbs about transition properties
58 lines
2.1 KiB
C++
58 lines
2.1 KiB
C++
// This file is generated. Do not edit.
|
|
|
|
#pragma once
|
|
|
|
#include <mbgl/style/layer.hpp>
|
|
#include <mbgl/style/filter.hpp>
|
|
#include <mbgl/style/property_value.hpp>
|
|
#include <mbgl/style/data_driven_property_value.hpp>
|
|
|
|
#include <mbgl/util/color.hpp>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
|
|
class TransitionOptions;
|
|
|
|
class BackgroundLayer : public Layer {
|
|
public:
|
|
BackgroundLayer(const std::string& layerID);
|
|
~BackgroundLayer() final;
|
|
|
|
// Paint properties
|
|
|
|
static PropertyValue<Color> getDefaultBackgroundColor();
|
|
PropertyValue<Color> getBackgroundColor(const optional<std::string>& klass = {}) const;
|
|
void setBackgroundColor(PropertyValue<Color>, const optional<std::string>& klass = {});
|
|
void setBackgroundColorTransition(const TransitionOptions&, const optional<std::string>& klass = {});
|
|
TransitionOptions getBackgroundColorTransition(const optional<std::string>& klass = {}) const;
|
|
|
|
static PropertyValue<std::string> getDefaultBackgroundPattern();
|
|
PropertyValue<std::string> getBackgroundPattern(const optional<std::string>& klass = {}) const;
|
|
void setBackgroundPattern(PropertyValue<std::string>, const optional<std::string>& klass = {});
|
|
void setBackgroundPatternTransition(const TransitionOptions&, const optional<std::string>& klass = {});
|
|
TransitionOptions getBackgroundPatternTransition(const optional<std::string>& klass = {}) const;
|
|
|
|
static PropertyValue<float> getDefaultBackgroundOpacity();
|
|
PropertyValue<float> getBackgroundOpacity(const optional<std::string>& klass = {}) const;
|
|
void setBackgroundOpacity(PropertyValue<float>, const optional<std::string>& klass = {});
|
|
void setBackgroundOpacityTransition(const TransitionOptions&, const optional<std::string>& klass = {});
|
|
TransitionOptions getBackgroundOpacityTransition(const optional<std::string>& klass = {}) const;
|
|
|
|
// Private implementation
|
|
|
|
class Impl;
|
|
Impl* const impl;
|
|
|
|
BackgroundLayer(const Impl&);
|
|
BackgroundLayer(const BackgroundLayer&) = delete;
|
|
};
|
|
|
|
template <>
|
|
inline bool Layer::is<BackgroundLayer>() const {
|
|
return type == Type::Background;
|
|
}
|
|
|
|
} // namespace style
|
|
} // namespace mbgl
|