X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ab5aa90e1e05a89845c6e802ef1b2366d203aa45..f5c84f0897d9aeb7a82778610bca39f77da4fa6b:/lib/gdi/gpixmap.h diff --git a/lib/gdi/gpixmap.h b/lib/gdi/gpixmap.h index e549787c..bd7c61a0 100644 --- a/lib/gdi/gpixmap.h +++ b/lib/gdi/gpixmap.h @@ -97,22 +97,25 @@ struct gSurfaceSystem: gSurface ~gSurfaceSystem(); }; -struct gPixmap: public iObject +class gPixmap: public iObject { +private: DECLARE_REF(gPixmap); private: friend class gDC; void fill(const gRegion &clip, const gColor &color); - enum - { - blitAlphaTest=1 - }; void blit(const gPixmap &src, ePoint pos, const gRegion &clip, int flags=0); void mergePalette(const gPixmap &target); void line(const gRegion &clip, ePoint start, ePoint end, gColor color); public: + enum + { + blitAlphaTest=1, + blitAlphaBlend=2 + }; + gSurface *surface; eLock contentlock; @@ -121,11 +124,13 @@ public: gPixmap *lock(); void unlock(); - eSize getSize() const { return eSize(surface->x, surface->y); } + eSize size() const { return eSize(surface->x, surface->y); } gPixmap(gSurface *surface); gPixmap(eSize, int bpp); virtual ~gPixmap(); }; +TEMPLATE_TYPEDEF(ePtr, gPixmapPtr); + #endif