aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/style/StyleRule.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-11 22:38:41 +0800
committercrupest <crupest@outlook.com>2022-03-11 22:38:41 +0800
commitc6d05af374ef11cec4a550eb63c73abdb2cd5f72 (patch)
treeb6161cbd8de2498f2d3870d490eec014990101cf /include/cru/ui/style/StyleRule.h
parent3d74364e78fadbc0b36081097e4a3a22a8ee26f2 (diff)
downloadcru-c6d05af374ef11cec4a550eb63c73abdb2cd5f72.tar.gz
cru-c6d05af374ef11cec4a550eb63c73abdb2cd5f72.tar.bz2
cru-c6d05af374ef11cec4a550eb63c73abdb2cd5f72.zip
...
Diffstat (limited to 'include/cru/ui/style/StyleRule.h')
-rw-r--r--include/cru/ui/style/StyleRule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/ui/style/StyleRule.h b/include/cru/ui/style/StyleRule.h
index fc37f7c7..27069930 100644
--- a/include/cru/ui/style/StyleRule.h
+++ b/include/cru/ui/style/StyleRule.h
@@ -8,6 +8,10 @@
#include <vector>
namespace cru::ui::style {
+/**
+ * \brief An immutable style rule contains a condition and a styler.
+ * \remarks This class is immutable and has value semantics.
+ */
class CRU_UI_API StyleRule : public Object {
public:
static ClonablePtr<StyleRule> Create(ClonablePtr<Condition> condition,