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/image.hpp

36 lines
740 B
C++

#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;
LuaTileRect* mTileRect;
};
}
#endif // OPENMW_LUAUI_IMAGE