Add some widget layout and ability event handling.
This commit is contained in:
parent
b99708e7d3
commit
4e85edacc8
24 changed files with 285 additions and 31 deletions
23
src/ui_elements/widgets/VerticalSpacer.h
Normal file
23
src/ui_elements/widgets/VerticalSpacer.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma once
|
||||
|
||||
#include "Widget.h"
|
||||
|
||||
class VerticalSpacer : public Widget
|
||||
{
|
||||
std::vector<double> mScales;
|
||||
|
||||
public:
|
||||
VerticalSpacer();
|
||||
|
||||
static std::unique_ptr<VerticalSpacer> Create();
|
||||
|
||||
void AddWidget(WidgetUPtr widget) override;
|
||||
|
||||
void AddWidgetWithScale(WidgetUPtr widget, double scale);
|
||||
|
||||
void AddChildLayers(const PaintEvent* event) override;
|
||||
|
||||
void OnPaintEvent(const PaintEvent* event) override;
|
||||
};
|
||||
|
||||
using VerticalSpacerUPtr = std::unique_ptr<VerticalSpacer>;
|
Loading…
Add table
Add a link
Reference in a new issue