#if defined(Hiro_Canvas) namespace hiro { struct pCanvas : pWidget { Declare(Canvas, Widget) auto minimumSize() const -> Size; auto setColor(Color color) -> void; auto setDroppable(bool droppable) -> void; auto setGeometry(Geometry geometry) -> void; auto setGradient(Gradient gradient) -> void; auto setImage(const Image& image) -> void; auto update() -> void; auto _rasterize() -> void; auto _release() -> void; QtCanvas* qtCanvas = nullptr; QImage* qtImage = nullptr; unsigned qtImageWidth = 0; unsigned qtImageHeight = 0; }; } #endif