2021-08-06 14:22:56 +02:00
|
|
|
#ifndef BWIDGETS_ALIGNED_LAYOUT_HPP
|
|
|
|
#define BWIDGETS_ALIGNED_LAYOUT_HPP
|
|
|
|
|
|
|
|
#include <basic_widgets/w/base/layout.hpp>
|
|
|
|
|
|
|
|
namespace bwidgets
|
|
|
|
{
|
2021-08-14 11:20:26 +02:00
|
|
|
enum struct LayoutAlignment
|
|
|
|
{
|
|
|
|
HORIZONTAL,
|
|
|
|
VERTICAL
|
|
|
|
};
|
|
|
|
|
2021-08-23 23:50:14 +02:00
|
|
|
// Align vertically or horizontally widgets.
|
2021-08-17 12:10:41 +02:00
|
|
|
class AlignedLayout : public virtual Layout
|
2021-08-06 14:22:56 +02:00
|
|
|
{
|
2021-08-14 11:20:26 +02:00
|
|
|
public:
|
2021-08-17 12:10:41 +02:00
|
|
|
using Layout::Layout;
|
2021-08-06 14:22:56 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|