aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/render_object.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-12-13 22:25:29 +0800
committercrupest <crupest@outlook.com>2019-12-13 22:25:29 +0800
commit3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa (patch)
tree3e2b75cfb70e96d4b5f4a0b5cb19a8c3cd20cf53 /src/ui/render/render_object.cpp
parent9110574bb51e9e2959842a7641f598d34c3cd847 (diff)
downloadcru-3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa.tar.gz
cru-3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa.tar.bz2
cru-3d3290a60d328b6d2a6d3fc4d8d7483583ed13aa.zip
...
Diffstat (limited to 'src/ui/render/render_object.cpp')
-rw-r--r--src/ui/render/render_object.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ui/render/render_object.cpp b/src/ui/render/render_object.cpp
index 8e65dad0..b6a9e8e4 100644
--- a/src/ui/render/render_object.cpp
+++ b/src/ui/render/render_object.cpp
@@ -42,14 +42,23 @@ void RenderObject::Layout(const Rect& rect) {
}
void RenderObject::OnParentChanged(RenderObject* old_parent,
- RenderObject* new_parent) {}
+ RenderObject* new_parent) {
+ CRU_UNUSED(old_parent)
+ CRU_UNUSED(new_parent)
+}
void RenderObject::OnAddChild(RenderObject* new_child, int position) {
+ CRU_UNUSED(new_child)
+ CRU_UNUSED(position)
+
InvalidateLayout();
InvalidatePaint();
}
void RenderObject::OnRemoveChild(RenderObject* removed_child, int position) {
+ CRU_UNUSED(removed_child)
+ CRU_UNUSED(position)
+
InvalidateLayout();
InvalidatePaint();
}