HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
hi::v1::style_attributes Class Reference

Public Member Functions

constexpr style_attributes (style_attributes const &) noexcept=default
constexpr style_attributes (style_attributes &&) noexcept=default
constexpr style_attributes & operator= (style_attributes const &) noexcept=default
constexpr style_attributes & operator= (style_attributes &&) noexcept=default
style_modify_mask set_margin (unit::length_f margin, bool important=false) noexcept
style_modify_mask set_padding (unit::length_f padding, bool important=false) noexcept
style_modify_mask set_border_radius (unit::length_f border_radius, bool important=false) noexcept
void clear () noexcept
style_modify_mask apply (style_attributes const &other) noexcept
 Apply attributes of other ontop of the current.

Friends

style_modify_mask compare (style_attributes const &lhs, style_attributes const &rhs) noexcept
 Set all attributes in other as-if they are important.

Member Function Documentation

◆ apply()

style_modify_mask hi::v1::style_attributes::apply ( style_attributes const & other)
inlinenoexcept

Apply attributes of other ontop of the current.

Parameters
otherThe attributes used to overwrite the current attributes.
Returns
A mask for what kind of values where changed.

◆ compare

style_modify_mask compare ( style_attributes const & lhs,
style_attributes const & rhs )
friend

Set all attributes in other as-if they are important.

Parameters
otherThe attributes used to overwrite the current attributes.
Returns
A mask for what kind of values where changed.

The documentation for this class was generated from the following file: