| 12345678910111213141516171819202122232425262728293031323334 |
- /******************************************************************************/
- const_mem_addr STRUCT(GuiImage , GuiObj) // Gui Image !! must be stored in constant memory address !!
- //{
- Bool fit ; // if maintain proportions of the image, default=false
- ALPHA_MODE alpha_mode; // alpha blending mode , default=ALPHA_BLEND
- Color rect_color, // rectangle color , default=Gui.borderColor
- color , // image color , default=WHITE
- color_add ; // image color add , default=TRANSPARENT
- ImagePtr image ; // image
- // manage
- GuiImage& del ( ); // delete
- GuiImage& create( C ImagePtr &image=null); // create
- GuiImage& create(C Rect &rect, C ImagePtr &image=null) {create(image).rect(rect); return T;} // create
- GuiImage& create(C GuiImage &src ); // create from 'src'
- // set
- GuiImage& set(C ImagePtr &image); // set image
- // main
- virtual void draw(C GuiPC &gpc); // draw object
- #if EE_PRIVATE
- void zero();
- #endif
- ~GuiImage() {del();}
- GuiImage();
- protected:
- virtual Bool save(File &f, CChar *path=null)C;
- virtual Bool load(File &f, CChar *path=null) ;
- };
- /******************************************************************************/
|