gzdoom/libraries/ZWidget/include/zwidget/widgets/imagebox/imagebox.h
Magnus Norddahl 113fdc5fcc Add zwidget
2024-01-02 16:54:51 +01:00

21 lines
328 B
C++

#pragma once
#include "../../core/widget.h"
#include "../../core/image.h"
class ImageBox : public Widget
{
public:
ImageBox(Widget* parent);
void SetImage(std::shared_ptr<Image> newImage);
double GetPreferredHeight() const;
protected:
void OnPaint(Canvas* canvas) override;
private:
std::shared_ptr<Image> image;
};