mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
38 lines
785 B
C++
38 lines
785 B
C++
|
#ifndef OPENMW_LUAUI_IMAGE
|
||
|
#define OPENMW_LUAUI_IMAGE
|
||
|
|
||
|
#include <MyGUI_TileRect.h>
|
||
|
#include <MyGUI_ImageBox.h>
|
||
|
|
||
|
#include "widget.hpp"
|
||
|
|
||
|
namespace LuaUi
|
||
|
{
|
||
|
class LuaTileRect : public MyGUI::TileRect
|
||
|
{
|
||
|
MYGUI_RTTI_DERIVED(LuaTileRect)
|
||
|
|
||
|
public:
|
||
|
void _setAlign(const MyGUI::IntSize& _oldsize) override;
|
||
|
|
||
|
void updateSize(MyGUI::IntSize tileSize) { mSetTileSize = tileSize; }
|
||
|
|
||
|
protected:
|
||
|
MyGUI::IntSize mSetTileSize;
|
||
|
};
|
||
|
|
||
|
class LuaImage : public MyGUI::ImageBox, public WidgetExtension
|
||
|
{
|
||
|
MYGUI_RTTI_DERIVED(LuaImage)
|
||
|
|
||
|
public:
|
||
|
LuaImage();
|
||
|
|
||
|
protected:
|
||
|
virtual void updateProperties() override;
|
||
|
LuaTileRect* mTileRect;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif // OPENMW_LUAUI_IMAGE
|