1 #include <lib/gui/epixmap.h>
2 #include <lib/gui/eskin.h>
3 #include <lib/gui/init.h>
4 #include <lib/gui/init_num.h>
6 ePixmap::ePixmap(eWidget
*parent
): eWidget(parent
)
9 setBackgroundColor(getForegroundColor());
16 void ePixmap::redrawWidget(gPainter
*paint
, const eRect
&area
)
19 paint
->blit(*pixmap
, position
);
22 void ePixmap::eraseBackground(gPainter
*target
, const eRect
&area
)
26 static eWidget
*create_ePixmap(eWidget
*parent
)
28 return new ePixmap(parent
);
36 eSkin::addWidgetCreator("ePixmap", create_ePixmap
);
40 eSkin::removeWidgetCreator("ePixmap", create_ePixmap
);
44 eAutoInitP0
<ePixmapSkinInit
> init_ePixmapSkinInit(eAutoInitNumbers::guiobject
, "ePixmap");