mirror of https://github.com/bsnes-emu/bsnes.git
28 lines
563 B
C++
28 lines
563 B
C++
#if defined(Hiro_Canvas)
|
|
|
|
namespace hiro {
|
|
|
|
struct pCanvas : pWidget {
|
|
Declare(Canvas, Widget)
|
|
|
|
auto minimumSize() const -> Size override;
|
|
auto setColor(Color color) -> void;
|
|
auto setDroppable(bool droppable) -> void;
|
|
auto setGeometry(Geometry geometry) -> void override;
|
|
auto setGradient(Gradient gradient) -> void;
|
|
auto setImage(const Image& image) -> void;
|
|
auto update() -> void;
|
|
|
|
auto _paint() -> void;
|
|
auto _rasterize() -> void;
|
|
auto _redraw() -> void;
|
|
|
|
vector<uint32_t> pixels;
|
|
signed width = 0;
|
|
signed height = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|