58 explicit Widget(
const std::vector<std::shared_ptr<Widget>>& children);
61 void AddChild(std::shared_ptr<Widget> child);
62 const std::vector<std::shared_ptr<Widget>> GetChildren()
const;
65 const Rect& GetFrame()
const;
72 virtual void SetFrame(
const Rect& f);
74 const Color& GetBackgroundColor()
const;
75 bool IsDefaultBackgroundColor()
const;
78 bool IsVisible()
const;
79 virtual void SetVisible(
bool vis);
81 bool IsEnabled()
const;
82 virtual void SetEnabled(
bool enabled);
84 static constexpr
int DIM_GROW = 10000;
115 void DrawImGuiPushEnabledState();
116 void DrawImGuiPopEnabledState();
120 std::unique_ptr<Impl> impl_;
int screenWidth
Definition: Widget.h:47
int emPx
Definition: Widget.h:49
float frameDelta
Definition: Widget.h:50
const Theme & theme
Definition: Widget.h:44
int screenHeight
Definition: Widget.h:48
math::float4 color
Definition: LineSetBuffers.cpp:46
Definition: Open3DViewer.h:29
int uiOffsetY
Definition: Widget.h:46
int uiOffsetX
Definition: Widget.h:45