X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e273151278d28cceefe6eee8c49bc6915306805d..cc26010927f5bb12825a32487949d063e6c605fc:/src/palmos/region.cpp?ds=sidebyside diff --git a/src/palmos/region.cpp b/src/palmos/region.cpp index c7bc88a4e7..4ac54e0165 100644 --- a/src/palmos/region.cpp +++ b/src/palmos/region.cpp @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/palmos/region.cpp -// Purpose: wxRegion implementation +// Name: src/palmos/region.cpp +// Purpose: wxRegion implementation // Author: William Osborne - minimal working wxPalmOS port // Modified by: -// Created: 10/13/04 -// RCS-ID: $Id$ -// Copyright: (c) William Osborne -// Licence: wxWindows licence +// Created: 10/13/04 +// RCS-ID: $Id$ +// Copyright: (c) William Osborne +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,19 +17,18 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "region.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ -#pragma hdrstop + #pragma hdrstop #endif #include "wx/region.h" -#include "wx/gdicmn.h" + +#ifndef WX_PRECOMP + #include "wx/gdicmn.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject) IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator, wxObject) @@ -66,7 +65,7 @@ wxRegion::wxRegion(const wxRect& rect) { } -wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle) +wxRegion::wxRegion(size_t n, const wxPoint *points, wxPolygonFillMode fillStyle) { } @@ -74,12 +73,12 @@ wxRegion::~wxRegion() { } -wxObjectRefData *wxRegion::CreateRefData() const +wxGDIRefData *wxRegion::CreateGDIRefData() const { return NULL; } -wxObjectRefData *wxRegion::CloneRefData(const wxObjectRefData *data) const +wxGDIRefData *wxRegion::CloneGDIRefData(const wxGDIRefData *data) const { return NULL; } @@ -93,26 +92,13 @@ void wxRegion::Clear() { } -bool wxRegion::Offset(wxCoord x, wxCoord y) +bool wxRegion::DoOffset(wxCoord x, wxCoord y) { return false; } // combine another region with this one -bool wxRegion::Combine(const wxRegion& rgn, wxRegionOp op) -{ - return false; -} - -// Combine rectangle (x, y, w, h) with this. -bool wxRegion::Combine(wxCoord x, wxCoord y, - wxCoord width, wxCoord height, - wxRegionOp op) -{ - return false; -} - -bool wxRegion::Combine(const wxRect& rect, wxRegionOp op) +bool wxRegion::DoCombine(const wxRegion& rgn, wxRegionOp op) { return false; } @@ -122,19 +108,20 @@ bool wxRegion::Combine(const wxRect& rect, wxRegionOp op) // ---------------------------------------------------------------------------- // Outer bounds of region -void wxRegion::GetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const +bool wxRegion::DoGetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const { + return false; } -wxRect wxRegion::GetBox() const +// Is region empty? +bool wxRegion::IsEmpty() const { - return wxRect(0, 0, 0, 0); + return true; } -// Is region empty? -bool wxRegion::Empty() const +bool wxRegion::DoIsEqual(const wxRegion& region) const { - return true; + return false; } // ---------------------------------------------------------------------------- @@ -142,26 +129,13 @@ bool wxRegion::Empty() const // ---------------------------------------------------------------------------- // Does the region contain the point (x,y)? -wxRegionContain wxRegion::Contains(wxCoord x, wxCoord y) const -{ - return wxOutRegion; -} - -// Does the region contain the point pt? -wxRegionContain wxRegion::Contains(const wxPoint& pt) const -{ - return wxOutRegion; -} - -// Does the region contain the rectangle (x, y, w, h)? -wxRegionContain wxRegion::Contains(wxCoord x, wxCoord y, - wxCoord w, wxCoord h) const +wxRegionContain wxRegion::DoContainsPoint(wxCoord x, wxCoord y) const { return wxOutRegion; } // Does the region contain the rectangle rect -wxRegionContain wxRegion::Contains(const wxRect& rect) const +wxRegionContain wxRegion::DoContainsRect(const wxRect& rect) const { return wxOutRegion; } @@ -240,4 +214,3 @@ wxCoord wxRegionIterator::GetH() const { return 0; } -