diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-18 00:46:27 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-18 00:46:27 +0800 |
| commit | 6b4edc9be8ec556147c195cf2047d92b9439efd7 (patch) | |
| tree | a1d7b7d1e821b4e1911fd00761f77a24ee483f4a /include/cru/ui/controls/IconButton.h | |
| parent | f7c4d19df66c602d74795e98ce2ee4390d06fbb4 (diff) | |
| download | cru-6b4edc9be8ec556147c195cf2047d92b9439efd7.tar.gz cru-6b4edc9be8ec556147c195cf2047d92b9439efd7.tar.bz2 cru-6b4edc9be8ec556147c195cf2047d92b9439efd7.zip | |
Bring back ControlHost and refactor tree management of control.
Diffstat (limited to 'include/cru/ui/controls/IconButton.h')
| -rw-r--r-- | include/cru/ui/controls/IconButton.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/cru/ui/controls/IconButton.h b/include/cru/ui/controls/IconButton.h index e52d2a26..0bbda327 100644 --- a/include/cru/ui/controls/IconButton.h +++ b/include/cru/ui/controls/IconButton.h @@ -1,18 +1,17 @@ #pragma once -#include <memory> -#include "NoChildControl.h" - #include "../helper/ClickDetector.h" #include "../render/BorderRenderObject.h" #include "../render/GeometryRenderObject.h" +#include "Control.h" #include "IBorderControl.h" #include "IClickableControl.h" #include "IContentBrushControl.h" -#include "cru/base/Event.h" -#include "cru/platform/graphics/Brush.h" + +#include <cru/base/Event.h> +#include <cru/platform/graphics/Brush.h> namespace cru::ui::controls { -class CRU_UI_API IconButton : public NoChildControl, +class CRU_UI_API IconButton : public Control, public virtual IClickableControl, public virtual IBorderControl, public virtual IContentBrushControl { |
