Files
MuditaOS/module-gui/gui/widgets/LayoutSizeStore.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

20 lines
435 B
C++

#pragma once
#include "Common.hpp"
namespace gui
{
class Item;
/// class for use with layouts
/// it's meant to store requested sizes from Layout to use in resizes
class LayoutSizeStore
{
public:
virtual ~LayoutSizeStore() = default;
virtual auto store(Item *, Size size) -> bool = 0;
virtual auto get(Item *) -> Size = 0;
};
} // namespace gui