aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/helper/BorderStyle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/helper/BorderStyle.hpp')
-rw-r--r--include/cru/ui/helper/BorderStyle.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/cru/ui/helper/BorderStyle.hpp b/include/cru/ui/helper/BorderStyle.hpp
new file mode 100644
index 00000000..0ec0d9ee
--- /dev/null
+++ b/include/cru/ui/helper/BorderStyle.hpp
@@ -0,0 +1,23 @@
+#pragma once
+#include "cru/ui/Base.hpp"
+
+#include <optional>
+
+namespace cru::ui::helper {
+struct BorderStyleOfClickState {
+ BorderStyleOfClickState(std::optional<BorderStyle> focus = std::nullopt,
+ std::optional<BorderStyle> not_focus = std::nullopt)
+ : focus(std::move(focus)), not_focus(std::move(not_focus)) {}
+
+ std::optional<BorderStyle> focus;
+ std::optional<BorderStyle> not_focus;
+};
+
+struct BorderStyleList {
+ BorderStyle default_one;
+ std::optional<BorderStyleOfClickState> normal;
+ std::optional<BorderStyleOfClickState> hover;
+ std::optional<BorderStyleOfClickState> press;
+ std::optional<BorderStyleOfClickState> press_inactive;
+};
+} // namespace cru::ui::helper