Union::Properties::CornersProperty Class

class Union::Properties::CornersProperty

A property group containing properties of a background's corners. More...

Header: #include <CornersProperty>
CMake: find_package(Union REQUIRED)
target_link_libraries(mytarget PRIVATE Union::Union)

Public Functions

CornersProperty()
CornersProperty(const Union::Properties::CornersProperty &other)
CornersProperty(Union::Properties::CornersProperty &&other)
std::optional<Union::Properties::CornerProperty> bottomLeft() const
std::optional<Union::Properties::CornerProperty> bottomRight() const
bool hasAnyValue() const
void setBottomLeft(const std::optional<Union::Properties::CornerProperty> &newValue)
void setBottomRight(const std::optional<Union::Properties::CornerProperty> &newValue)
void setTopLeft(const std::optional<Union::Properties::CornerProperty> &newValue)
void setTopRight(const std::optional<Union::Properties::CornerProperty> &newValue)
std::optional<Union::Properties::CornerProperty> topLeft() const
std::optional<Union::Properties::CornerProperty> topRight() const
Union::Properties::CornersProperty &operator=(Union::Properties::CornersProperty &&other)
Union::Properties::CornersProperty &operator=(const Union::Properties::CornersProperty &other)

Static Public Members

Union::Properties::CornersProperty empty()
void resolveProperties(const Union::Properties::CornersProperty &source, Union::Properties::CornersProperty &destination)
QDebug operator<<(QDebug debug, const Union::Properties::CornersProperty &type)
bool operator==(const Union::Properties::CornersProperty &left, const Union::Properties::CornersProperty &right)

Detailed Description

Member Function Documentation

CornersProperty::CornersProperty()

Default constructor. Constructs a null instance.

A null instance in this case means an instance that does not have any values for its properties. This includes property groups.

CornersProperty::CornersProperty(const Union::Properties::CornersProperty &other)

Copy constructor.

CornersProperty::CornersProperty(Union::Properties::CornersProperty &&other)

Move constructor.

std::optional<Union::Properties::CornerProperty> CornersProperty::bottomLeft() const

Returns the value of bottomLeft.

See also setBottomLeft().

std::optional<Union::Properties::CornerProperty> CornersProperty::bottomRight() const

Returns the value of bottomRight.

See also setBottomRight().

[static] Union::Properties::CornersProperty CornersProperty::empty()

Create and return an empty CornersProperty instance.

This will create an empty CornersProperty instance, which is defined as an instance with all of its values default-constructed. Note that this is different from a default-constructed instance which will have all its values unset.

bool CornersProperty::hasAnyValue() const

Returns if this property group has any value set.

Note that for any property that is also a property group, this will also check if that group has any value.

[static] void CornersProperty::resolveProperties(const Union::Properties::CornersProperty &source, Union::Properties::CornersProperty &destination)

Copy property values from source to destination if destination does not have a property value.

This will recursively copy property values of grouped properties.

source The source property group to copy from. destination The destination property group to copy to.

void CornersProperty::setBottomLeft(const std::optional<Union::Properties::CornerProperty> &newValue)

Set the value of bottomLeft.

newValue The new value or std::nullopt to unset the value.

See also bottomLeft().

void CornersProperty::setBottomRight(const std::optional<Union::Properties::CornerProperty> &newValue)

Set the value of bottomRight.

newValue The new value or std::nullopt to unset the value.

See also bottomRight().

void CornersProperty::setTopLeft(const std::optional<Union::Properties::CornerProperty> &newValue)

Set the value of topLeft.

newValue The new value or std::nullopt to unset the value.

See also topLeft().

void CornersProperty::setTopRight(const std::optional<Union::Properties::CornerProperty> &newValue)

Set the value of topRight.

newValue The new value or std::nullopt to unset the value.

See also topRight().

std::optional<Union::Properties::CornerProperty> CornersProperty::topLeft() const

Returns the value of topLeft.

See also setTopLeft().

std::optional<Union::Properties::CornerProperty> CornersProperty::topRight() const

Returns the value of topRight.

See also setTopRight().

Union::Properties::CornersProperty &CornersProperty::operator=(Union::Properties::CornersProperty &&other)

Move assignment operator.

Union::Properties::CornersProperty &CornersProperty::operator=(const Union::Properties::CornersProperty &other)

Copy assignment operator.

Related Non-Members

QDebug operator<<(QDebug debug, const Union::Properties::CornersProperty &type)

QDebug support for CornersProperty.

bool operator==(const Union::Properties::CornersProperty &left, const Union::Properties::CornersProperty &right)

Equality comparison for CornersProperty.