aboutsummaryrefslogtreecommitdiff
path: root/src/ui/control.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-10 20:56:03 +0800
committercrupest <crupest@outlook.com>2018-11-10 20:56:03 +0800
commitcfcd03f564e82419345a7a6900fdc17c5b8c2631 (patch)
treefb944f2081047e7898ed1f558fb08b40aa5f6ed9 /src/ui/control.hpp
parent370ed80687ac9758b21335d3951828838796f9b3 (diff)
parent7c2fb4578b6997b5ab0d98121cda253f734139c1 (diff)
downloadcru-cfcd03f564e82419345a7a6900fdc17c5b8c2631.tar.gz
cru-cfcd03f564e82419345a7a6900fdc17c5b8c2631.tar.bz2
cru-cfcd03f564e82419345a7a6900fdc17c5b8c2631.zip
Merge branch 'master' into listitem
Diffstat (limited to 'src/ui/control.hpp')
-rw-r--r--src/ui/control.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/control.hpp b/src/ui/control.hpp
index 8ac9ae72..7afc0c4e 100644
--- a/src/ui/control.hpp
+++ b/src/ui/control.hpp
@@ -221,7 +221,9 @@ namespace cru::ui
events::FocusChangeEvent get_focus_event;
events::FocusChangeEvent lose_focus_event;
- events::DrawEvent draw_event;
+ events::DrawEvent draw_content_event;
+ events::DrawEvent draw_background_event;
+ events::DrawEvent draw_foreground_event;
events::PositionChangedEvent position_changed_event;
events::SizeChangedEvent size_changed_event;
@@ -238,10 +240,12 @@ namespace cru::ui
virtual void OnDetachToWindow(Window* window);
private:
- void OnDraw(ID2D1DeviceContext* device_context);
+ void OnDrawCore(ID2D1DeviceContext* device_context);
protected:
virtual void OnDrawContent(ID2D1DeviceContext* device_context);
+ virtual void OnDrawForeground(ID2D1DeviceContext* device_context);
+ virtual void OnDrawBackground(ID2D1DeviceContext* device_context);
// For a event, the window event system will first dispatch event to core functions.
// Therefore for particular controls, you should do essential actions in core functions,