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,
76 const std::vector<std::shared_ptr<Widget>>& children);
79 int GetSpacing()
const;
80 const Margins& GetMargins()
const;
83 void SetSpacing(
int spacing);
86 void SetMargins(
const Margins& margins);
93 void AddFixed(
int size);
118 int GetMinorAxisPreferredSize()
const;
119 void SetMinorAxisPreferredSize(
int size);
122 std::vector<std::shared_ptr<Widget>> GetVisibleChildren()
const;
126 std::unique_ptr<Impl> impl_;
132 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
133 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
141 const std::vector<std::shared_ptr<Widget>>& children);
144 int GetPreferredWidth()
const;
145 void SetPreferredWidth(
int w);
165 void SetIsOpen(
bool is_open);
171 void SetFontId(
FontId font_id);
180 std::unique_ptr<Impl> impl_;
192 const std::vector<std::shared_ptr<Widget>>& children);
199 std::unique_ptr<Impl> impl_;
205 static std::shared_ptr<Layout1D::Fixed> MakeFixed(
int size);
206 static std::shared_ptr<Layout1D::Stretch> MakeStretch();
207 static std::shared_ptr<Horiz> MakeCentered(std::shared_ptr<Widget> w);
215 const std::vector<std::shared_ptr<Widget>>& children);
218 int GetPreferredHeight()
const;
219 void SetPreferredHeight(
int h);
232 int GetSpacing()
const;
233 const Margins& GetMargins()
const;
235 int GetPreferredWidth()
const;
236 void SetPreferredWidth(
int w);
244 std::unique_ptr<Impl> impl_;
void Draw(const std::vector< std::shared_ptr< geometry::Geometry3D >> &geometries, const std::string &window_name, int width, int height, const std::vector< DrawAction > &actions)
Definition: Draw.cpp:63
Lays out widgets vertically.
Definition: Layout.h:130
unsigned int FontId
Definition: Gui.h:87
ImGuiContext * context
Definition: Window.cpp:95
Dir
Definition: Layout.h:64
int GetVert() const
Convenience function that returns top + bottom.
Definition: Layout.cpp:139
int GetHoriz() const
Convenience function that returns left + right.
Definition: Layout.cpp:137
Definition: PinholeCameraIntrinsic.cpp:35
int right
Definition: Layout.h:38
Definition: Layout.cpp:394
Margins()
Definition: Layout.cpp:130
int top
Definition: Layout.h:37
Lays out widgets horizontally.
Definition: Layout.h:203
int left
Definition: Layout.h:36
int bottom
Definition: Layout.h:39
Definition: Layout.cpp:575