mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
26 lines
420 B
C++
26 lines
420 B
C++
#include "SystemDraw.h"
|
|
|
|
NAMESPACE_UPP
|
|
|
|
SystemDraw& ScreenInfo();
|
|
|
|
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
|