Union::Properties::OutlinePropertyGroup Class
class Union::Properties::OutlinePropertyGroupA property group containing properties of an element's outline. More...
| Header: | #include <OutlinePropertyGroup.h> |
| CMake: | find_package(Union REQUIRED)target_link_libraries(mytarget PRIVATE Union::Union) |
Public Functions
| OutlinePropertyGroup() | |
| OutlinePropertyGroup(const Union::Properties::OutlinePropertyGroup &other) | |
| OutlinePropertyGroup(Union::Properties::OutlinePropertyGroup &&other) | |
| Union::Properties::LinePropertyGroup * | bottom() const |
| bool | hasAnyValue() const |
| bool | isEmpty() const |
| Union::Properties::LinePropertyGroup * | left() const |
| Union::Properties::LinePropertyGroup * | right() const |
| void | setBottom(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue) |
| void | setLeft(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue) |
| void | setRight(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue) |
| void | setTop(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue) |
| QString | toString(int indentation = 0, Union::Properties::ToStringFlags flags = ToStringFlags{}) const |
| Union::Properties::LinePropertyGroup * | top() const |
| Union::Properties::OutlinePropertyGroup & | operator=(Union::Properties::OutlinePropertyGroup &&other) |
| Union::Properties::OutlinePropertyGroup & | operator=(const Union::Properties::OutlinePropertyGroup &other) |
Static Public Members
| std::unique_ptr<Union::Properties::OutlinePropertyGroup> | empty() |
| void | resolveProperties(const Union::Properties::OutlinePropertyGroup *source, Union::Properties::OutlinePropertyGroup *destination) |
Related Non-Members
| QDebug | operator<<(QDebug debug, Union::Properties::OutlinePropertyGroup *type) |
| bool | operator==(const Union::Properties::OutlinePropertyGroup &left, const Union::Properties::OutlinePropertyGroup &right) |
Detailed Description
Member Function Documentation
OutlinePropertyGroup::OutlinePropertyGroup()
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.
OutlinePropertyGroup::OutlinePropertyGroup(const Union::Properties::OutlinePropertyGroup &other)
Copy constructor.
OutlinePropertyGroup::OutlinePropertyGroup(Union::Properties::OutlinePropertyGroup &&other)
Move constructor.
Union::Properties::LinePropertyGroup *OutlinePropertyGroup::bottom() const
A property group containing the properties of a line.
See also setBottom().
[static] std::unique_ptr<Union::Properties::OutlinePropertyGroup> OutlinePropertyGroup::empty()
Create and return an empty OutlinePropertyGroup instance.
This will create an empty OutlinePropertyGroup 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 OutlinePropertyGroup::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 OutlinePropertyGroup::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::LinePropertyGroup *OutlinePropertyGroup::left() const
A property group containing the properties of a line.
See also setLeft().
[static] void OutlinePropertyGroup::resolveProperties(const Union::Properties::OutlinePropertyGroup *source, Union::Properties::OutlinePropertyGroup *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.
Union::Properties::LinePropertyGroup *OutlinePropertyGroup::right() const
A property group containing the properties of a line.
See also setRight().
void OutlinePropertyGroup::setBottom(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue)
Set the value of bottom.
newValue The new value or std::nullopt to unset the value.
See also bottom().
void OutlinePropertyGroup::setLeft(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue)
Set the value of left.
newValue The new value or std::nullopt to unset the value.
See also left().
void OutlinePropertyGroup::setRight(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue)
Set the value of right.
newValue The new value or std::nullopt to unset the value.
See also right().
void OutlinePropertyGroup::setTop(std::unique_ptr<Union::Properties::LinePropertyGroup> &&newValue)
Set the value of top.
newValue The new value or std::nullopt to unset the value.
See also top().
QString OutlinePropertyGroup::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::LinePropertyGroup *OutlinePropertyGroup::top() const
A property group containing the properties of a line.
See also setTop().
Union::Properties::OutlinePropertyGroup &OutlinePropertyGroup::operator=(Union::Properties::OutlinePropertyGroup &&other)
Move assignment operator.
Union::Properties::OutlinePropertyGroup &OutlinePropertyGroup::operator=(const Union::Properties::OutlinePropertyGroup &other)
Copy assignment operator.
Related Non-Members
QDebug operator<<(QDebug debug, Union::Properties::OutlinePropertyGroup *type)
QDebug support for OutlinePropertyGroup.
bool operator==(const Union::Properties::OutlinePropertyGroup &left, const Union::Properties::OutlinePropertyGroup &right)
Equality comparison for OutlinePropertyGroup.