33 #include "eng3d/ui/widget.hpp"
46 Image(
int x,
int y,
unsigned w,
unsigned h, std::shared_ptr<Eng3D::Texture> tex,
Widget*
parent =
nullptr);
47 Image(
int x,
int y,
unsigned w,
unsigned h,
const std::string& tex_path,
Widget*
parent =
nullptr);
48 Image(
int x,
int y,
unsigned w,
unsigned h,
const std::string& tex_path,
bool mipmap =
true,
Widget*
parent =
nullptr);
A version of the Image widget that keeps aspect ratio of the image (useful for flags)
AspectImage(int x, int y, unsigned w, unsigned max_h, std::shared_ptr< Eng3D::Texture > tex, Widget *parent=nullptr)
Image widget, can display pictures or effects on the screen.
static Image * make_transparent(int x, int y, unsigned w, unsigned h, const std::string &tex_path, Widget *parent=nullptr)
virtual ~Image() override
Image(int x, int y, unsigned w, unsigned h, Widget *parent=nullptr)