Union::Properties::OutlineProperty Class

class Union::Properties::OutlineProperty

A 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)
Union::Properties::LineProperty *bottom() const
bool hasAnyValue() const
bool isEmpty() const
Union::Properties::LineProperty *left() const
Union::Properties::LineProperty *right() const
void setBottom(std::unique_ptr<Union::Properties::LineProperty> &&newValue)
void setLeft(std::unique_ptr<Union::Properties::LineProperty> &&newValue)
void setRight(std::unique_ptr<Union::Properties::LineProperty> &&newValue)
void setTop(std::unique_ptr<Union::Properties::LineProperty> &&newValue)
QString toString(int indentation = 0, Union::Properties::ToStringFlags flags = ToStringFlags{}) const
Union::Properties::LineProperty *top() const
Union::Properties::OutlineProperty &operator=(Union::Properties::OutlineProperty &&other)
Union::Properties::OutlineProperty &operator=(const Union::Properties::OutlineProperty &other)

Static Public Members

std::unique_ptr<Union::Properties::OutlineProperty> empty()
void resolveProperties(const Union::Properties::OutlineProperty *source, Union::Properties::OutlineProperty *destination)
QDebug operator<<(QDebug debug, 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.

Union::Properties::LineProperty *OutlineProperty::bottom() const

Returns bottom if set or nullptr if not.

See also setBottom().

[static] std::unique_ptr<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.

bool OutlineProperty::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::LineProperty *OutlineProperty::left() const

Returns left if set or nullptr if not.

See also setLeft().

[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.

Returns right if set or nullptr if not.

See also setRight().

void OutlineProperty::setBottom(std::unique_ptr<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(std::unique_ptr<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(std::unique_ptr<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(std::unique_ptr<Union::Properties::LineProperty> &&newValue)

Set the value of top.

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

See also top().

QString OutlineProperty::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::LineProperty *OutlineProperty::top() const

Returns top if set or nullptr if not.

See also setTop().

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, Union::Properties::OutlineProperty *type)

QDebug support for OutlineProperty.

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

Equality comparison for OutlineProperty.