aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render/stack_layout_render_object.hpp
blob: c259b98d14c637f30171d87e46cc3b34088a0a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include "layout_render_object.hpp"

namespace cru::ui::render {
class StackLayoutRenderObject
    : public LayoutRenderObject<StackChildLayoutData> {
 public:
  StackLayoutRenderObject() = default;
  CRU_DELETE_COPY(StackLayoutRenderObject)
  CRU_DELETE_MOVE(StackLayoutRenderObject)
  ~StackLayoutRenderObject() = default;

 protected:
  Size OnMeasureContent(const Size& available_size) override;
  void OnLayoutContent(const Rect& content_rect) override;
};
}  // namespace cru::ui::render