You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/components/lua_ui/container.hpp

29 lines
661 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)
public:
MyGUI::IntSize calculateSize() const override;
void updateCoord() override;
protected:
void updateChildren() override;
MyGUI::IntSize childScalingSize() const override;
MyGUI::IntSize templateScalingSize() const override;
private:
void updateSizeToFit();
MyGUI::IntSize mInnerSize;
MyGUI::IntSize mOuterSize;
};
}
#endif // !OPENMW_LUAUI_CONTAINER