17#include <AUI/Util/AMetric.h>
18#include <AUI/Traits/values.h>
19#include <AUI/Common/IStringable.h>
29 aui::float_within_0_1 opacity;
31 explicit Opacity(
float opacity) : opacity(opacity) {}
41 Property(
const Opacity& info) : mInfo(info) {
45 void applyFor(
AView* view)
override;
48 const auto& value()
const noexcept {
53 return "Opacity({})"_format(mInfo.opacity);
Represents a Unicode character string.
Definition AString.h:38
Base class of all UI objects.
Definition AView.h:78
Object that can be converted to string.
Definition IStringable.h:29
Controls the opacity of AView.
Definition Opacity.h:28
Base class for all properties.
Definition IPropertyBase.h:50
AString toString() const override
Definition Opacity.h:52