mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-02 08:53:42 +00:00
21 lines
328 B
C++
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;
|
|
};
|