use wxOVERRIDE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -33,39 +33,39 @@ public:
|
||||
}
|
||||
|
||||
// wxDCBase operations
|
||||
virtual void Clear() { m_dc.Clear(); }
|
||||
virtual void SetFont(const wxFont& font) { m_dc.SetFont(font); }
|
||||
virtual void SetPen(const wxPen& pen) { m_dc.SetPen(pen); }
|
||||
virtual void SetBrush(const wxBrush& brush) { m_dc.SetBrush(brush); }
|
||||
virtual void SetBackground(const wxBrush& brush)
|
||||
virtual void Clear() wxOVERRIDE { m_dc.Clear(); }
|
||||
virtual void SetFont(const wxFont& font) wxOVERRIDE { m_dc.SetFont(font); }
|
||||
virtual void SetPen(const wxPen& pen) wxOVERRIDE { m_dc.SetPen(pen); }
|
||||
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE { m_dc.SetBrush(brush); }
|
||||
virtual void SetBackground(const wxBrush& brush) wxOVERRIDE
|
||||
{ m_dc.SetBackground(brush); }
|
||||
virtual void SetBackgroundMode(int mode) { m_dc.SetBackgroundMode(mode); }
|
||||
virtual void SetBackgroundMode(int mode) wxOVERRIDE { m_dc.SetBackgroundMode(mode); }
|
||||
#if wxUSE_PALETTE
|
||||
virtual void SetPalette(const wxPalette& palette)
|
||||
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE
|
||||
{ m_dc.SetPalette(palette); }
|
||||
#endif // wxUSE_PALETTE
|
||||
virtual void DestroyClippingRegion() { m_dc.DestroyClippingRegion(); }
|
||||
virtual wxCoord GetCharHeight() const { return m_dc.GetCharHeight(); }
|
||||
virtual wxCoord GetCharWidth() const { return m_dc.GetCharWidth(); }
|
||||
virtual bool CanDrawBitmap() const { return m_dc.CanDrawBitmap(); }
|
||||
virtual bool CanGetTextExtent() const { return m_dc.CanGetTextExtent(); }
|
||||
virtual int GetDepth() const { return m_dc.GetDepth(); }
|
||||
virtual wxSize GetPPI() const { return m_dc.GetPPI(); }
|
||||
virtual bool IsOk() const { return m_dc.IsOk(); }
|
||||
virtual void SetMapMode(wxMappingMode mode) { m_dc.SetMapMode(mode); }
|
||||
virtual void SetUserScale(double x, double y)
|
||||
virtual void DestroyClippingRegion() wxOVERRIDE { m_dc.DestroyClippingRegion(); }
|
||||
virtual wxCoord GetCharHeight() const wxOVERRIDE { return m_dc.GetCharHeight(); }
|
||||
virtual wxCoord GetCharWidth() const wxOVERRIDE { return m_dc.GetCharWidth(); }
|
||||
virtual bool CanDrawBitmap() const wxOVERRIDE { return m_dc.CanDrawBitmap(); }
|
||||
virtual bool CanGetTextExtent() const wxOVERRIDE { return m_dc.CanGetTextExtent(); }
|
||||
virtual int GetDepth() const wxOVERRIDE { return m_dc.GetDepth(); }
|
||||
virtual wxSize GetPPI() const wxOVERRIDE { return m_dc.GetPPI(); }
|
||||
virtual bool IsOk() const wxOVERRIDE { return m_dc.IsOk(); }
|
||||
virtual void SetMapMode(wxMappingMode mode) wxOVERRIDE { m_dc.SetMapMode(mode); }
|
||||
virtual void SetUserScale(double x, double y) wxOVERRIDE
|
||||
{ m_dc.SetUserScale(GetX(x, y), GetY(x, y)); }
|
||||
virtual void SetLogicalOrigin(wxCoord x, wxCoord y)
|
||||
virtual void SetLogicalOrigin(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{ m_dc.SetLogicalOrigin(GetX(x, y), GetY(x, y)); }
|
||||
virtual void SetDeviceOrigin(wxCoord x, wxCoord y)
|
||||
virtual void SetDeviceOrigin(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{ m_dc.SetDeviceOrigin(GetX(x, y), GetY(x, y)); }
|
||||
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp)
|
||||
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp) wxOVERRIDE
|
||||
{ m_dc.SetAxisOrientation(GetX(xLeftRight, yBottomUp),
|
||||
GetY(xLeftRight, yBottomUp)); }
|
||||
virtual void SetLogicalFunction(wxRasterOperationMode function)
|
||||
virtual void SetLogicalFunction(wxRasterOperationMode function) wxOVERRIDE
|
||||
{ m_dc.SetLogicalFunction(function); }
|
||||
|
||||
virtual void* GetHandle() const
|
||||
virtual void* GetHandle() const wxOVERRIDE
|
||||
{ return m_dc.GetHandle(); }
|
||||
|
||||
protected:
|
||||
@@ -100,30 +100,30 @@ protected:
|
||||
|
||||
// wxDCBase functions
|
||||
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE)
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE
|
||||
{
|
||||
return m_dc.DoFloodFill(GetX(x, y), GetY(x, y), col, style);
|
||||
}
|
||||
|
||||
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const
|
||||
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE
|
||||
{
|
||||
return m_dc.DoGetPixel(GetX(x, y), GetY(x, y), col);
|
||||
}
|
||||
|
||||
|
||||
virtual void DoDrawPoint(wxCoord x, wxCoord y)
|
||||
virtual void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawPoint(GetX(x, y), GetY(x, y));
|
||||
}
|
||||
|
||||
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
|
||||
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawLine(GetX(x1, y1), GetY(x1, y1), GetX(x2, y2), GetY(x2, y2));
|
||||
}
|
||||
|
||||
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
|
||||
wxCoord x2, wxCoord y2,
|
||||
wxCoord xc, wxCoord yc)
|
||||
wxCoord xc, wxCoord yc) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( wxT("this is probably wrong") );
|
||||
|
||||
@@ -133,14 +133,14 @@ protected:
|
||||
}
|
||||
|
||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h)
|
||||
wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawCheckMark(GetX(x, y), GetY(x, y),
|
||||
GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
double sa, double ea)
|
||||
double sa, double ea) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( wxT("this is probably wrong") );
|
||||
|
||||
@@ -149,49 +149,49 @@ protected:
|
||||
sa, ea);
|
||||
}
|
||||
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawRectangle(GetX(x, y), GetY(x, y), GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h,
|
||||
double radius)
|
||||
double radius) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawRoundedRectangle(GetX(x, y), GetY(x, y),
|
||||
GetX(w, h), GetY(w, h),
|
||||
radius);
|
||||
}
|
||||
|
||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
|
||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawEllipse(GetX(x, y), GetY(x, y), GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoCrossHair(wxCoord x, wxCoord y)
|
||||
virtual void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoCrossHair(GetX(x, y), GetY(x, y));
|
||||
}
|
||||
|
||||
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y)
|
||||
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawIcon(icon, GetX(x, y), GetY(x, y));
|
||||
}
|
||||
|
||||
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
|
||||
bool useMask = false)
|
||||
bool useMask = false) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawBitmap(bmp, GetX(x, y), GetY(x, y), useMask);
|
||||
}
|
||||
|
||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y)
|
||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
// this is never mirrored
|
||||
m_dc.DoDrawText(text, x, y);
|
||||
}
|
||||
|
||||
virtual void DoDrawRotatedText(const wxString& text,
|
||||
wxCoord x, wxCoord y, double angle)
|
||||
wxCoord x, wxCoord y, double angle) wxOVERRIDE
|
||||
{
|
||||
// this is never mirrored
|
||||
m_dc.DoDrawRotatedText(text, x, y, angle);
|
||||
@@ -202,7 +202,7 @@ protected:
|
||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||
wxRasterOperationMode rop = wxCOPY,
|
||||
bool useMask = false,
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord)
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE
|
||||
{
|
||||
return m_dc.DoBlit(GetX(xdest, ydest), GetY(xdest, ydest),
|
||||
GetX(w, h), GetY(w, h),
|
||||
@@ -211,18 +211,18 @@ protected:
|
||||
GetX(xsrcMask, ysrcMask), GetX(xsrcMask, ysrcMask));
|
||||
}
|
||||
|
||||
virtual void DoGetSize(int *w, int *h) const
|
||||
virtual void DoGetSize(int *w, int *h) const wxOVERRIDE
|
||||
{
|
||||
m_dc.DoGetSize(GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoGetSizeMM(int *w, int *h) const
|
||||
virtual void DoGetSizeMM(int *w, int *h) const wxOVERRIDE
|
||||
{
|
||||
m_dc.DoGetSizeMM(GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoDrawLines(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset)
|
||||
wxCoord xoffset, wxCoord yoffset) wxOVERRIDE
|
||||
{
|
||||
wxPoint* points_alloc = Mirror(n, points);
|
||||
|
||||
@@ -234,7 +234,7 @@ protected:
|
||||
|
||||
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE)
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE
|
||||
{
|
||||
wxPoint* points_alloc = Mirror(n, points);
|
||||
|
||||
@@ -245,13 +245,13 @@ protected:
|
||||
delete[] points_alloc;
|
||||
}
|
||||
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region))
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( wxT("not implemented") );
|
||||
}
|
||||
|
||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h)
|
||||
wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoSetClippingRegion(GetX(x, y), GetY(x, y), GetX(w, h), GetY(w, h));
|
||||
}
|
||||
@@ -260,7 +260,7 @@ protected:
|
||||
wxCoord *x, wxCoord *y,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *theFont = NULL) const
|
||||
const wxFont *theFont = NULL) const wxOVERRIDE
|
||||
{
|
||||
// never mirrored
|
||||
m_dc.DoGetTextExtent(string, x, y, descent, externalLeading, theFont);
|
||||
|
Reference in New Issue
Block a user