aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/Button.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/Button.hpp')
-rw-r--r--include/cru/ui/controls/Button.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/cru/ui/controls/Button.hpp b/include/cru/ui/controls/Button.hpp
index 0d2f4898..7299c146 100644
--- a/include/cru/ui/controls/Button.hpp
+++ b/include/cru/ui/controls/Button.hpp
@@ -2,11 +2,15 @@
#include "ContentControl.hpp"
#include "../helper/ClickDetector.hpp"
+#include "IBorderControl.hpp"
#include "IClickableControl.hpp"
#include "cru/common/Event.hpp"
+#include "cru/ui/style/ApplyBorderStyleInfo.hpp"
namespace cru::ui::controls {
-class Button : public ContentControl, public virtual IClickableControl {
+class Button : public ContentControl,
+ public virtual IClickableControl,
+ public virtual IBorderControl {
public:
static constexpr std::u16string_view control_type = u"Button";
@@ -35,6 +39,8 @@ class Button : public ContentControl, public virtual IClickableControl {
return click_detector_.StateChangeEvent();
}
+ void ApplyBorderStyle(const style::ApplyBorderStyleInfo& style) override;
+
const ButtonStyle& GetStyle() const { return style_; }
void SetStyle(ButtonStyle style);