2022-01-29 22:40:31 +00:00
|
|
|
#ifndef OPENMW_LUAUI_CONTAINER
|
|
|
|
#define OPENMW_LUAUI_CONTAINER
|
|
|
|
|
|
|
|
#include "widget.hpp"
|
|
|
|
|
|
|
|
namespace LuaUi
|
|
|
|
{
|
|
|
|
class LuaContainer : public WidgetExtension, public MyGUI::Widget
|
|
|
|
{
|
|
|
|
MYGUI_RTTI_DERIVED(LuaContainer)
|
|
|
|
|
2023-11-11 13:07:36 +00:00
|
|
|
public:
|
2024-03-28 19:01:50 +00:00
|
|
|
MyGUI::IntSize calculateSize() const override;
|
2022-05-14 10:27:30 +00:00
|
|
|
void updateCoord() override;
|
|
|
|
|
2022-01-29 22:40:31 +00:00
|
|
|
protected:
|
2022-02-06 20:22:38 +00:00
|
|
|
void updateChildren() override;
|
2024-03-28 19:01:50 +00:00
|
|
|
MyGUI::IntSize childScalingSize() const override;
|
|
|
|
MyGUI::IntSize templateScalingSize() const override;
|
2022-01-29 22:40:31 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void updateSizeToFit();
|
2022-05-14 10:27:30 +00:00
|
|
|
MyGUI::IntSize mInnerSize;
|
|
|
|
MyGUI::IntSize mOuterSize;
|
2022-01-29 22:40:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // !OPENMW_LUAUI_CONTAINER
|