aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/style
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-02-16 17:30:49 +0800
committercrupest <crupest@outlook.com>2022-02-16 17:30:49 +0800
commitda6f0bcfc6ec786cf14f67f100b4c50cf2325db4 (patch)
tree8e9a2c5389ba9f352f5823c0eec525a04993f2b4 /include/cru/ui/style
parent674e8af2e92074b71c77e656a54244ce2693460c (diff)
downloadcru-da6f0bcfc6ec786cf14f67f100b4c50cf2325db4.tar.gz
cru-da6f0bcfc6ec786cf14f67f100b4c50cf2325db4.tar.bz2
cru-da6f0bcfc6ec786cf14f67f100b4c50cf2325db4.zip
...
Diffstat (limited to 'include/cru/ui/style')
-rw-r--r--include/cru/ui/style/Condition.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cru/ui/style/Condition.h b/include/cru/ui/style/Condition.h
index 1038c34b..446e5bc0 100644
--- a/include/cru/ui/style/Condition.h
+++ b/include/cru/ui/style/Condition.h
@@ -89,6 +89,8 @@ class CRU_UI_API FocusCondition : public Condition {
return new FocusCondition(has_focus_);
}
+ bool IsHasFocus() const { return has_focus_; }
+
private:
bool has_focus_;
};