aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/event
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-05-24 23:45:58 +0800
committercrupest <crupest@outlook.com>2019-05-24 23:45:58 +0800
commitb6db663269201fa14a6a4aa1b9042645a9e8f859 (patch)
tree1984e2c2784fb9623d4c20fbdd6fc650792e133c /include/cru/ui/event
parentb9df1bcaea0c19b2e29479cdb1ad5a39e23c4ee7 (diff)
downloadcru-b6db663269201fa14a6a4aa1b9042645a9e8f859.tar.gz
cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.tar.bz2
cru-b6db663269201fa14a6a4aa1b9042645a9e8f859.zip
...
Diffstat (limited to 'include/cru/ui/event')
-rw-r--r--include/cru/ui/event/ui_event.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/event/ui_event.hpp b/include/cru/ui/event/ui_event.hpp
index c84116b9..2704cc4f 100644
--- a/include/cru/ui/event/ui_event.hpp
+++ b/include/cru/ui/event/ui_event.hpp
@@ -8,7 +8,7 @@
#include <optional>
namespace cru::platform::graph {
-struct Painter;
+struct IPainter;
}
namespace cru::ui {
@@ -113,7 +113,7 @@ class MouseWheelEventArgs : public MouseEventArgs {
class PaintEventArgs : public UiEventArgs {
public:
PaintEventArgs(Object* sender, Object* original_sender,
- platform::graph::Painter* painter)
+ platform::graph::IPainter* painter)
: UiEventArgs(sender, original_sender), painter_(painter) {}
PaintEventArgs(const PaintEventArgs& other) = default;
PaintEventArgs(PaintEventArgs&& other) = default;
@@ -121,10 +121,10 @@ class PaintEventArgs : public UiEventArgs {
PaintEventArgs& operator=(PaintEventArgs&& other) = default;
~PaintEventArgs() = default;
- platform::graph::Painter* GetPainter() const { return painter_; }
+ platform::graph::IPainter* GetPainter() const { return painter_; }
private:
- platform::graph::Painter* painter_;
+ platform::graph::IPainter* painter_;
};
class FocusChangeEventArgs : public UiEventArgs {