mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
28 lines
663 B
C++
28 lines
663 B
C++
#ifndef OPENMW_LUAUI_CONTAINER
|
|
#define OPENMW_LUAUI_CONTAINER
|
|
|
|
#include "widget.hpp"
|
|
|
|
namespace LuaUi
|
|
{
|
|
class LuaContainer : public WidgetExtension, public MyGUI::Widget
|
|
{
|
|
MYGUI_RTTI_DERIVED(LuaContainer)
|
|
|
|
MyGUI::IntSize calculateSize() override;
|
|
void updateCoord() override;
|
|
|
|
protected:
|
|
void updateChildren() override;
|
|
MyGUI::IntSize childScalingSize() override;
|
|
MyGUI::IntSize templateScalingSize() override;
|
|
|
|
private:
|
|
void updateSizeToFit();
|
|
MyGUI::IntSize mInnerSize;
|
|
MyGUI::IntSize mOuterSize;
|
|
};
|
|
}
|
|
|
|
#endif // !OPENMW_LUAUI_CONTAINER
|