27 lines
453 B
C++
27 lines
453 B
C++
#pragma once
|
|
|
|
#include "Layout.hpp"
|
|
|
|
namespace Raven {
|
|
|
|
class HorizontalBoxLayout : public Layout {
|
|
private:
|
|
double m_margin { 0.0 };
|
|
public:
|
|
HorizontalBoxLayout()
|
|
: Layout() {}
|
|
|
|
HorizontalBoxLayout(double margin)
|
|
: Layout()
|
|
, m_margin(margin) {}
|
|
|
|
void run();
|
|
|
|
double margin() { return m_margin; }
|
|
void set_margin(double margin) { m_margin = margin; run(); }
|
|
|
|
virtual ~HorizontalBoxLayout() {}
|
|
};
|
|
|
|
}
|
|
|