#include <Overlay.h>
Definition at line 93 of file Overlay.h.
◆ Overlay() [1/2]
◆ Overlay() [2/2]
Overlay::Overlay |
( |
const Overlay & |
| ) |
|
|
delete |
◆ ~Overlay()
◆ DoGetRectangle()
virtual std::pair< wxRect, bool > Overlay::DoGetRectangle |
( |
wxSize |
size | ) |
|
|
pure virtual |
◆ Draw()
virtual void Overlay::Draw |
( |
OverlayPanel & |
panel, |
|
|
wxDC & |
dc |
|
) |
| |
|
pure virtual |
◆ Erase()
void Overlay::Erase |
( |
wxDC & |
dc, |
|
|
wxDC & |
src |
|
) |
| |
|
virtual |
Definition at line 29 of file Overlay.cpp.
30{
31 wxRect rect(dc.GetSize());
32 rect.Intersect(src.GetSize());
34 rect.Intersect(smallRect);
35 if (!rect.IsEmpty())
36 dc.Blit(rect.x, rect.y, rect.width, rect.height,
37 &src, rect.x, rect.y);
38}
std::pair< wxRect, bool > GetRectangle(wxSize size)
References GetRectangle().
◆ GetRectangle()
std::pair< wxRect, bool > Overlay::GetRectangle |
( |
wxSize |
size | ) |
|
Definition at line 17 of file Overlay.cpp.
18{
20#ifdef __WXMAC__
21
22
23
24 result.first.Inflate(1, 0);
25#endif
26 return result;
27}
virtual std::pair< wxRect, bool > DoGetRectangle(wxSize size)=0
References DoGetRectangle(), and size.
Referenced by Erase().
◆ operator=()
◆ SequenceNumber()
virtual unsigned Overlay::SequenceNumber |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following files: