#include <lib/gdi/erect.h>
#include <lib/gdi/gpixmap.h>
#include <lib/gdi/region.h>
#include <lib/gdi/erect.h>
#include <lib/gdi/gpixmap.h>
#include <lib/gdi/region.h>
setOffset,
setClip, addClip, popClip,
setOffset,
setClip, addClip, popClip,
- void submit(const gOpcode &o)
- {
- static int collected=0;
- queue.enqueue(o);
- collected++;
-// if (o.opcode==gOpcode::end||o.opcode==gOpcode::shutdown)
- {
- queuelock.unlock(collected);
-#ifdef SYNC_PAINT
- thread();
-#endif
- collected=0;
- }
- }
+ void submit(const gOpcode &o);
+
+ Signal0<void> notify;
void setFont(gFont *font);
/* flags only THESE: */
enum
{
// todo, make mask. you cannot align both right AND center AND block ;)
void setFont(gFont *font);
/* flags only THESE: */
enum
{
// todo, make mask. you cannot align both right AND center AND block ;)
void blit(gPixmap *pixmap, ePoint pos, const eRect &what=eRect(), int flags=0);
void setPalette(gRGB *colors, int start=0, int len=256);
void blit(gPixmap *pixmap, ePoint pos, const eRect &what=eRect(), int flags=0);
void setPalette(gRGB *colors, int start=0, int len=256);
void mergePalette(gPixmap *target);
void line(ePoint start, ePoint end);
void mergePalette(gPixmap *target);
void line(ePoint start, ePoint end);
gRegion &getClip() { return m_current_clip; }
int getPixmap(ePtr<gPixmap> &pm) { pm = m_pixmap; return 0; }
gRGB getRGB(gColor col);
gRegion &getClip() { return m_current_clip; }
int getPixmap(ePtr<gPixmap> &pm) { pm = m_pixmap; return 0; }
gRGB getRGB(gColor col);