1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/components/lua_ui/image.hpp

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

36 lines
740 B
C++
Raw Normal View History

2022-01-28 09:31:45 +00:00
#ifndef OPENMW_LUAUI_IMAGE
#define OPENMW_LUAUI_IMAGE
#include <MyGUI_ImageBox.h>
#include <MyGUI_TileRect.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)
protected:
void initialize() override;
void updateProperties() override;
2022-01-28 09:31:45 +00:00
LuaTileRect* mTileRect;
};
}
#endif // OPENMW_LUAUI_IMAGE