Union::Properties::CornersProperty Class
class Union::Properties::CornersPropertyA 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) | |
| Union::Properties::CornerProperty * | bottomLeft() const |
| Union::Properties::CornerProperty * | bottomRight() const |
| bool | hasAnyValue() const |
| bool | isEmpty() const |
| Union::Properties::CornersProperty::CornerRadii | radii() const |
| void | setBottomLeft(std::unique_ptr<Union::Properties::CornerProperty> &&newValue) |
| void | setBottomRight(std::unique_ptr<Union::Properties::CornerProperty> &&newValue) |
| void | setTopLeft(std::unique_ptr<Union::Properties::CornerProperty> &&newValue) |
| void | setTopRight(std::unique_ptr<Union::Properties::CornerProperty> &&newValue) |
| QString | toString(int indentation = 0, Union::Properties::ToStringFlags flags = ToStringFlags{}) const |
| Union::Properties::CornerProperty * | topLeft() const |
| 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
| std::unique_ptr<Union::Properties::CornersProperty> | empty() |
| void | resolveProperties(const Union::Properties::CornersProperty *source, Union::Properties::CornersProperty *destination) |
Related Non-Members
| QDebug | operator<<(QDebug debug, 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.
Union::Properties::CornerProperty *CornersProperty::bottomLeft() const
Returns bottomLeft if set or nullptr if not.
See also setBottomLeft().
Union::Properties::CornerProperty *CornersProperty::bottomRight() const
Returns bottomRight if set or nullptr if not.
See also setBottomRight().
[static] std::unique_ptr<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.
bool CornersProperty::isEmpty() const
Returns if this property is considered empty.
A property is considered empty if it has no values or if the values it contains are all considered empty values.
Union::Properties::CornersProperty::CornerRadii CornersProperty::radii() const
Returns the radii of all corners
[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(std::unique_ptr<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(std::unique_ptr<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(std::unique_ptr<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(std::unique_ptr<Union::Properties::CornerProperty> &&newValue)
Set the value of topRight.
newValue The new value or std::nullopt to unset the value.
See also topRight().
QString CornersProperty::toString(int indentation = 0, Union::Properties::ToStringFlags flags = ToStringFlags{}) const
Returns a string representation of this property group.
This is intended for debugging.
indentation The amount of indentation to apply. Defaults to 0. flags A set of flags that control conversion behavior.
Union::Properties::CornerProperty *CornersProperty::topLeft() const
Returns topLeft if set or nullptr if not.
See also setTopLeft().
Union::Properties::CornerProperty *CornersProperty::topRight() const
Returns topRight if set or nullptr if not.
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, Union::Properties::CornersProperty *type)
QDebug support for CornersProperty.
bool operator==(const Union::Properties::CornersProperty &left, const Union::Properties::CornersProperty &right)
Equality comparison for CornersProperty.