Union::Properties::OutlineProperty Class
class Union::Properties::OutlinePropertyA property group containing properties of an element's outline. More...
| Header: | #include <OutlineProperty> |
| CMake: | find_package(Union REQUIRED)target_link_libraries(mytarget PRIVATE Union::Union) |
Public Functions
| OutlineProperty() | |
| OutlineProperty(const Union::Properties::OutlineProperty &other) | |
| OutlineProperty(Union::Properties::OutlineProperty &&other) | |
| std::optional<Union::Properties::LineProperty> | bottom() const |
| Union::Properties::LineProperty | bottom_or_new() const |
| bool | hasAnyValue() const |
| std::optional<Union::Properties::LineProperty> | left() const |
| Union::Properties::LineProperty | left_or_new() const |
| std::optional<Union::Properties::LineProperty> | right() const |
| Union::Properties::LineProperty | right_or_new() const |
| void | setBottom(const std::optional<Union::Properties::LineProperty> &newValue) |
| void | setLeft(const std::optional<Union::Properties::LineProperty> &newValue) |
| void | setRight(const std::optional<Union::Properties::LineProperty> &newValue) |
| void | setTop(const std::optional<Union::Properties::LineProperty> &newValue) |
| std::optional<Union::Properties::LineProperty> | top() const |
| Union::Properties::LineProperty | top_or_new() const |
| Union::Properties::OutlineProperty & | operator=(Union::Properties::OutlineProperty &&other) |
| Union::Properties::OutlineProperty & | operator=(const Union::Properties::OutlineProperty &other) |
Static Public Members
| Union::Properties::OutlineProperty | empty() |
| void | resolveProperties(const Union::Properties::OutlineProperty &source, Union::Properties::OutlineProperty &destination) |
Related Non-Members
| QDebug | operator<<(QDebug debug, const Union::Properties::OutlineProperty &type) |
| bool | operator==(const Union::Properties::OutlineProperty &left, const Union::Properties::OutlineProperty &right) |
Detailed Description
Member Function Documentation
OutlineProperty::OutlineProperty()
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.
OutlineProperty::OutlineProperty(const Union::Properties::OutlineProperty &other)
Copy constructor.
OutlineProperty::OutlineProperty(Union::Properties::OutlineProperty &&other)
Move constructor.
std::optional<Union::Properties::LineProperty> OutlineProperty::bottom() const
Returns the value of bottom.
See also setBottom().
Union::Properties::LineProperty OutlineProperty::bottom_or_new() const
Returns bottom if set or a new LineProperty if not.
[static] Union::Properties::OutlineProperty OutlineProperty::empty()
Create and return an empty OutlineProperty instance.
This will create an empty OutlineProperty 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 OutlineProperty::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.
std::optional<Union::Properties::LineProperty> OutlineProperty::left() const
Returns the value of left.
See also setLeft().
Union::Properties::LineProperty OutlineProperty::left_or_new() const
Returns left if set or a new LineProperty if not.
[static] void OutlineProperty::resolveProperties(const Union::Properties::OutlineProperty &source, Union::Properties::OutlineProperty &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.
std::optional<Union::Properties::LineProperty> OutlineProperty::right() const
Returns the value of right.
See also setRight().
Union::Properties::LineProperty OutlineProperty::right_or_new() const
Returns right if set or a new LineProperty if not.
void OutlineProperty::setBottom(const std::optional<Union::Properties::LineProperty> &newValue)
Set the value of bottom.
newValue The new value or std::nullopt to unset the value.
See also bottom().
void OutlineProperty::setLeft(const std::optional<Union::Properties::LineProperty> &newValue)
Set the value of left.
newValue The new value or std::nullopt to unset the value.
See also left().
void OutlineProperty::setRight(const std::optional<Union::Properties::LineProperty> &newValue)
Set the value of right.
newValue The new value or std::nullopt to unset the value.
See also right().
void OutlineProperty::setTop(const std::optional<Union::Properties::LineProperty> &newValue)
Set the value of top.
newValue The new value or std::nullopt to unset the value.
See also top().
std::optional<Union::Properties::LineProperty> OutlineProperty::top() const
Returns the value of top.
See also setTop().
Union::Properties::LineProperty OutlineProperty::top_or_new() const
Returns top if set or a new LineProperty if not.
Union::Properties::OutlineProperty &OutlineProperty::operator=(Union::Properties::OutlineProperty &&other)
Move assignment operator.
Union::Properties::OutlineProperty &OutlineProperty::operator=(const Union::Properties::OutlineProperty &other)
Copy assignment operator.
Related Non-Members
QDebug operator<<(QDebug debug, const Union::Properties::OutlineProperty &type)
QDebug support for OutlineProperty.
bool operator==(const Union::Properties::OutlineProperty &left, const Union::Properties::OutlineProperty &right)
Equality comparison for OutlineProperty.