48 Margins(
int horiz_px,
int vert_px);
49 Margins(
int left_px,
int top_px,
int right_px,
int bottom_px);
65 static void debug_PrintPreferredSizes(
Layout1D* layout,
74 const std::vector<std::shared_ptr<Widget>>& children);
77 int GetSpacing()
const;
78 const Margins& GetMargins()
const;
80 Size CalcPreferredSize(
const Theme& theme)
const override;
81 void Layout(
const Theme& theme)
override;
84 void AddFixed(
int size);
95 Size CalcPreferredSize(
const Theme& theme)
const override;
103 Size CalcPreferredSize(
const Theme& theme)
const override;
111 std::unique_ptr<Impl> impl_;
117 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
118 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
126 const std::vector<std::shared_ptr<Widget>>& children);
147 void SetIsOpen(
bool is_open);
149 Size CalcPreferredSize(
const Theme& theme)
const override;
150 void Layout(
const Theme& theme)
override;
155 std::unique_ptr<Impl> impl_;
161 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
162 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
163 static std::shared_ptr<Horiz> MakeCentered(std::shared_ptr<Widget> w);
171 const std::vector<std::shared_ptr<Widget>>& children);
185 int GetSpacing()
const;
186 const Margins& GetMargins()
const;
188 Size CalcPreferredSize(
const Theme& theme)
const override;
189 void Layout(
const Theme& theme)
override;
193 std::unique_ptr<Impl> impl_;
Dir
Definition: Layout.h:63
Margins()
Definition: Layout.cpp:125
Definition: Layout.cpp:330
int bottom
Definition: Layout.h:38
int left
Definition: Layout.h:35
int GetVert() const
Convenience function that returns top + bottom.
Definition: Layout.cpp:134
int size
Definition: FilePCD.cpp:57
Definition: Layout.cpp:454
int GetHoriz() const
Convenience function that returns left + right.
Definition: Layout.cpp:132
Lays out widgets horizontally.
Definition: Layout.h:159
Definition: Open3DViewer.h:29
Lays out widgets vertically.
Definition: Layout.h:115
int right
Definition: Layout.h:37
int top
Definition: Layout.h:36