Files
MuditaOS/module-gui/gui/widgets/Layout.hpp
pholat 331f80f185 Gui resize requests hadnling (#489)
* EGD-3229 [gui] Added Lenght & Position typedef in Common.hpp
* EGD-3229 [gui] Item & Layout: General resize requests handling mechanism
2020-07-02 10:52:03 +02:00

33 lines
673 B
C++

#pragma once
#include <memory>
#include "LayoutSizeStore.hpp"
namespace gui
{
class Item;
enum class LayoutHorizontalPolicy
{
LAYOUT_POLICY_HORIZONTAL_EXPAND = 0x01,
LAYOUT_POLICY_HORIZONTAL_SHIRNH = 0x02,
LAYOUT_POLICY_HORIZONTAL_STATIC = 0x04,
};
enum class LayoutVerticalPolicy
{
LAYOUT_POLICY_VERTICAL_EXPAND = 0x01,
LAYOUT_POLICY_VERTICAL_SHRINK = 0x02,
LAYOUT_POLICY_VERTICAL_STATIC = 0x04,
};
class Layout
{
public:
virtual ~Layout() = default;
std::unique_ptr<LayoutSizeStore> sizeStore = nullptr;
};
} /* namespace gui */