diff options
author | crupest <crupest@outlook.com> | 2020-10-30 11:25:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-30 11:25:57 +0800 |
commit | a176c40ba0f913f98e966f11bad557833ae6dc57 (patch) | |
tree | 717f43cb8d6c8c189840d00df68c3d0463d94bdd /include/cru/ui/render | |
parent | 624552fb112f29b91dd96f9543e813b5ee16e87b (diff) | |
download | cru-a176c40ba0f913f98e966f11bad557833ae6dc57.tar.gz cru-a176c40ba0f913f98e966f11bad557833ae6dc57.tar.bz2 cru-a176c40ba0f913f98e966f11bad557833ae6dc57.zip |
...
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r-- | include/cru/ui/render/RenderObject.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/cru/ui/render/RenderObject.hpp b/include/cru/ui/render/RenderObject.hpp index 436cf6b2..635a541e 100644 --- a/include/cru/ui/render/RenderObject.hpp +++ b/include/cru/ui/render/RenderObject.hpp @@ -39,7 +39,7 @@ namespace cru::ui::render { // Size OnMeasureContent(const MeasureRequirement& requirement) override; // void OnLayoutContent(const Rect& content_rect) override; class RenderObject : public Object { - friend WindowHost; + friend host::WindowHost; CRU_DEFINE_CLASS_LOG_TAG(u"cru::ui::render::RenderObject") @@ -65,7 +65,7 @@ class RenderObject : public Object { Control* GetAttachedControl() const { return control_; } void SetAttachedControl(Control* new_control) { control_ = new_control; } - WindowHost* GetWindowHost() const { return window_host_; } + host::WindowHost* GetWindowHost() const { return window_host_; } RenderObject* GetParent() const { return parent_; } @@ -135,7 +135,7 @@ class RenderObject : public Object { // Add offset before pass point to children. virtual RenderObject* HitTest(const Point& point) = 0; - IEvent<WindowHost*>* AttachToHostEvent() { return &attach_to_host_event_; } + IEvent<host::WindowHost*>* AttachToHostEvent() { return &attach_to_host_event_; } IEvent<std::nullptr_t>* DetachFromHostEvent() { return &detach_from_host_event_; } @@ -205,11 +205,11 @@ class RenderObject : public Object { private: void SetParent(RenderObject* new_parent); - void SetWindowHostRecursive(WindowHost* host); + void SetWindowHostRecursive(host::WindowHost* host); private: Control* control_ = nullptr; - WindowHost* window_host_ = nullptr; + host::WindowHost* window_host_ = nullptr; RenderObject* parent_ = nullptr; std::vector<RenderObject*> children_{}; @@ -225,7 +225,7 @@ class RenderObject : public Object { Thickness margin_{}; Thickness padding_{}; - Event<WindowHost*> attach_to_host_event_; + Event<host::WindowHost*> attach_to_host_event_; Event<std::nullptr_t> detach_from_host_event_; }; } // namespace cru::ui::render |