/* * File : image_box.h * COPYRIGHT (C) 2012-2017, Shanghai Real-Thread Technology Co., Ltd * * Change Logs: * Date Author Notes * 2017-11-05 realthread the first version */ #pragma once #include #include namespace Persimmon { class ImageBox : public Widget { public: ImageBox(Image *image); virtual ~ImageBox(); void setImage(Image *m); Image* getImage(void); virtual void render(struct rtgui_dc* dc, const Point &dcPoint = Point(), const Rect &srcRect = Rect(), RenderFlag flags = DrawNormal); protected: Image *image; }; }