1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/lua_ui/container.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
661 B
C++
Raw Normal View History

#ifndef OPENMW_LUAUI_CONTAINER
#define OPENMW_LUAUI_CONTAINER
#include "widget.hpp"
namespace LuaUi
{
class LuaContainer : public WidgetExtension, public MyGUI::Widget
{
MYGUI_RTTI_DERIVED(LuaContainer)
public:
MyGUI::IntSize calculateSize() const override;
2022-05-14 10:27:30 +00:00
void updateCoord() override;
protected:
void updateChildren() override;
MyGUI::IntSize childScalingSize() const override;
MyGUI::IntSize templateScalingSize() const override;
private:
void updateSizeToFit();
2022-05-14 10:27:30 +00:00
MyGUI::IntSize mInnerSize;
MyGUI::IntSize mOuterSize;
};
}
#endif // !OPENMW_LUAUI_CONTAINER