ultimatepp/newdraw/Draw/BackDraw.cpp
cxl d7b91377fa NewDraw fixed to work in X11
git-svn-id: svn://ultimatepp.org/upp/trunk@1166 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-05-12 15:28:36 +00:00

33 lines
499 B
C++

#include "Draw.h"
NAMESPACE_UPP
SystemDraw& ScreenInfo();
/*
void BackDraw::Create(int cx, int cy)
{
DrawLock __;
Create(ScreenInfo(), cx, cy);
style = GUI|BACK;
}
*/
bool BackDraw::IsPaintingOp(const Rect& r) const
{
Rect rr = r + GetOffset();
if(!rr.Intersects(size))
return false;
return painting ? painting->IsPainting(rr + painting_offset) : true;
}
BackDraw::BackDraw()
{
painting = NULL;
painting_offset = Point(0, 0);
}
BackDraw::~BackDraw()
{
Destroy();
}
END_UPP_NAMESPACE