diff options
Diffstat (limited to 'include/cru/ui/render')
-rw-r--r-- | include/cru/ui/render/ScrollRenderObject.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cru/ui/render/ScrollRenderObject.hpp b/include/cru/ui/render/ScrollRenderObject.hpp index 43e6d7f9..0c1fb16b 100644 --- a/include/cru/ui/render/ScrollRenderObject.hpp +++ b/include/cru/ui/render/ScrollRenderObject.hpp @@ -4,6 +4,14 @@ #include "cru/platform/graph/util/Painter.hpp" namespace cru::ui::render { +// Measure logic: +// Measure child with unspecified min and max size. +// If parent's preferred size is specified, then it is used as measure result. +// Or child's size is coerced into requirement and then used as result. +// If no child, then use the preferred size if set or min size if set or 0. +// Layout logic: +// If child is smaller than content area, layout at lefttop. +// Or layout by scroll state. class ScrollRenderObject : public RenderObject { public: ScrollRenderObject() : RenderObject(ChildMode::Single) {} |