aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/control.h
diff options
context:
space:
mode:
Diffstat (limited to 'CruUI/ui/control.h')
-rw-r--r--CruUI/ui/control.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/CruUI/ui/control.h b/CruUI/ui/control.h
index 44fbdfba..2f23fd21 100644
--- a/CruUI/ui/control.h
+++ b/CruUI/ui/control.h
@@ -142,6 +142,15 @@ namespace cru
bool HasFocus();
+ bool IsFocusOnPressed() const
+ {
+ return is_focus_on_pressed_;
+ }
+
+ void SetFocusOnPressed(const bool value)
+ {
+ is_focus_on_pressed_ = value;
+ }
//*************** region: layout ***************
@@ -329,6 +338,8 @@ namespace cru
Size desired_size_ = Size::Zero();
std::unordered_map<String, std::any> additional_properties_{};
+
+ bool is_focus_on_pressed_ = true;
};
// Find the lowest common ancestor.