Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
// clang-format off
|
|
|
|
// This file is generated. Do not edit.
|
|
|
|
#pragma once
|
|
|
|
#include <mln/style/conversion.hpp>
|
|
#include <mln/style/property_value.hpp>
|
|
#include <mln/style/style_property.hpp>
|
|
#include <mln/style/transition_options.hpp>
|
|
#include <mln/style/types.hpp>
|
|
#include <mln/util/immutable.hpp>
|
|
|
|
namespace mln {
|
|
namespace style {
|
|
|
|
class LightObserver;
|
|
|
|
class Light {
|
|
public:
|
|
Light();
|
|
~Light();
|
|
|
|
// Dynamic properties
|
|
std::optional<conversion::Error> setProperty(const std::string& name, const conversion::Convertible& value);
|
|
StyleProperty getProperty(const std::string&) const;
|
|
|
|
static LightAnchorType getDefaultAnchor();
|
|
PropertyValue<LightAnchorType> getAnchor() const;
|
|
void setAnchor(PropertyValue<LightAnchorType>);
|
|
void setAnchorTransition(const TransitionOptions&);
|
|
TransitionOptions getAnchorTransition() const;
|
|
|
|
static Color getDefaultColor();
|
|
PropertyValue<Color> getColor() const;
|
|
void setColor(PropertyValue<Color>);
|
|
void setColorTransition(const TransitionOptions&);
|
|
TransitionOptions getColorTransition() const;
|
|
|
|
static float getDefaultIntensity();
|
|
PropertyValue<float> getIntensity() const;
|
|
void setIntensity(PropertyValue<float>);
|
|
void setIntensityTransition(const TransitionOptions&);
|
|
TransitionOptions getIntensityTransition() const;
|
|
|
|
static Position getDefaultPosition();
|
|
PropertyValue<Position> getPosition() const;
|
|
void setPosition(PropertyValue<Position>);
|
|
void setPositionTransition(const TransitionOptions&);
|
|
TransitionOptions getPositionTransition() const;
|
|
|
|
class Impl;
|
|
Immutable<Impl> impl;
|
|
explicit Light(Immutable<Impl>);
|
|
Mutable<Impl> mutableImpl() const;
|
|
|
|
LightObserver* observer = nullptr;
|
|
void setObserver(LightObserver*);
|
|
};
|
|
|
|
} // namespace style
|
|
} // namespace mln
|
|
|
|
// clang-format on
|