Widgets Additions and sketch3d new gui
This commit is contained in:
parent
aecc75828b
commit
762268387e
44 changed files with 1015 additions and 322 deletions
33
Widgets/public/layouts/SimpleLayouts.hpp
Normal file
33
Widgets/public/layouts/SimpleLayouts.hpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
|
||||
#include "Layout.hpp"
|
||||
|
||||
namespace tp {
|
||||
|
||||
class OverlayLayout : public WidgetLayout {
|
||||
friend class DebugManager;
|
||||
|
||||
public:
|
||||
explicit OverlayLayout(Widget* widget) : WidgetLayout(widget) {}
|
||||
|
||||
void updateLayout(bool vertical) override;
|
||||
|
||||
void pickRect(bool vertical) override {}
|
||||
void clampRect() override {}
|
||||
};
|
||||
|
||||
class ToolBarLayout : public WidgetLayout {
|
||||
friend class DebugManager;
|
||||
|
||||
public:
|
||||
explicit ToolBarLayout(Widget* widget) : WidgetLayout(widget) {}
|
||||
|
||||
void updateLayout(bool vertical) override;
|
||||
|
||||
void pickRect(bool vertical) override {}
|
||||
void clampRect() override {}
|
||||
|
||||
private:
|
||||
halnf mToolBarHeight = 55;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue