18#include <AUI/Util/AMetric.h>
19#include "AUI/Common/IStringable.h"
33 MaxSize(
const unset_wrap <AMetric>& width,
const unset_wrap <AMetric>& height) : width(width), height(height) {}
34 explicit MaxSize(
const AMetric& side) : width(side), height(side) {}
44 Property(
const MaxSize& info) : mInfo(info) {
48 void applyFor(
AView* view)
override;
51 const auto& value()
const noexcept {
56 return "MaxSize({}, {})"_format(mInfo.width, mInfo.height);
Stores dimensions in scalable units (dp, pt, etc...).
Definition AMetric.h:75
Represents a Unicode character string.
Definition AString.h:37
Base class of all UI objects.
Definition AView.h:78
Object that can be converted to string.
Definition IStringable.h:29
Controls the max size of AView.
Definition MaxSize.h:29
Base class for all properties.
Definition IPropertyBase.h:50
AString toString() const override
Definition MaxSize.h:55