32 namespace visualization {
49 Margins(
int horiz_px,
int vert_px);
50 Margins(
int left_px,
int top_px,
int right_px,
int bottom_px);
66 static void debug_PrintPreferredSizes(
Layout1D* layout,
75 const std::vector<std::shared_ptr<Widget>>& children);
78 int GetSpacing()
const;
79 const Margins& GetMargins()
const;
82 void SetSpacing(
int spacing);
85 void SetMargins(
const Margins& margins);
87 Size CalcPreferredSize(
const Theme& theme)
const override;
88 void Layout(
const Theme& theme)
override;
91 void AddFixed(
int size);
102 Size CalcPreferredSize(
const Theme& theme)
const override;
110 Size CalcPreferredSize(
const Theme& theme)
const override;
118 std::unique_ptr<Impl> impl_;
124 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
125 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
133 const std::vector<std::shared_ptr<Widget>>& children);
154 void SetIsOpen(
bool is_open);
156 Size CalcPreferredSize(
const Theme& theme)
const override;
157 void Layout(
const Theme& theme)
override;
162 std::unique_ptr<Impl> impl_;
168 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
169 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
170 static std::shared_ptr<Horiz> MakeCentered(std::shared_ptr<Widget> w);
178 const std::vector<std::shared_ptr<Widget>>& children);
192 int GetSpacing()
const;
193 const Margins& GetMargins()
const;
195 Size CalcPreferredSize(
const Theme& theme)
const override;
196 void Layout(
const Theme& theme)
override;
200 std::unique_ptr<Impl> impl_;
Lays out widgets vertically.
Definition: Layout.h:122
int size
Definition: FilePCD.cpp:59
Dir
Definition: Layout.h:64
int GetVert() const
Convenience function that returns top + bottom.
Definition: Layout.cpp:136
int GetHoriz() const
Convenience function that returns left + right.
Definition: Layout.cpp:134
Definition: PinholeCameraIntrinsic.cpp:35
int right
Definition: Layout.h:38
Definition: Layout.cpp:335
Margins()
Definition: Layout.cpp:127
int top
Definition: Layout.h:37
Lays out widgets horizontally.
Definition: Layout.h:166
int left
Definition: Layout.h:36
int bottom
Definition: Layout.h:39
Definition: Layout.cpp:457