diff options
author | 杨宇千 <crupest@outlook.com> | 2019-09-16 22:11:11 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-09-16 22:11:11 +0800 |
commit | 465d89b4207cce929dc8e0b6ac93c3533ba19408 (patch) | |
tree | 157df74f42d46d9b631163c087fd126f2eed021b /include/cru/ui/render/render_object.hpp | |
parent | f1da8e06253748887ae769845a6e605d56d5789b (diff) | |
download | cru-465d89b4207cce929dc8e0b6ac93c3533ba19408.tar.gz cru-465d89b4207cce929dc8e0b6ac93c3533ba19408.tar.bz2 cru-465d89b4207cce929dc8e0b6ac93c3533ba19408.zip |
...
Diffstat (limited to 'include/cru/ui/render/render_object.hpp')
-rw-r--r-- | include/cru/ui/render/render_object.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/cru/ui/render/render_object.hpp b/include/cru/ui/render/render_object.hpp index 8ea7ca79..2394bf97 100644 --- a/include/cru/ui/render/render_object.hpp +++ b/include/cru/ui/render/render_object.hpp @@ -2,6 +2,7 @@ #include "cru/common/base.hpp" #include "../base.hpp" +#include "cru/common/event.hpp" #include <vector> @@ -15,6 +16,9 @@ class Painter; } namespace cru::ui::render { + +struct AfterLayoutEventArgs {}; + struct IRenderHost : Interface { // Mark the layout as invalid, and arrange a re-layout later. // Note this method might be called more than one times in a message cycle. So @@ -25,6 +29,8 @@ struct IRenderHost : Interface { // Note this method might be called more than one times in a message cycle. So // implementation should merge multiple request into once. virtual void InvalidatePaint() = 0; + + virtual IEvent<AfterLayoutEventArgs>* AfterLayoutEvent() = 0; }; class RenderObject : public Object { |