]> git.saurik.com Git - wxWidgets.git/commit
Document and test behaviour of wxRegion methods when it is invalid.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2011 21:56:48 +0000 (21:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 18 Oct 2011 21:56:48 +0000 (21:56 +0000)
commitdd4eefcb295ebf35917a8e3d11fa3082019cf86f
treeba4a03e0944db69803e65fa176bdae26f739fbd6
parentcaab08ee9b59f92e2c54219c822e732a97dbf11d
Document and test behaviour of wxRegion methods when it is invalid.

Document which wxRegion methods can and can't be used when the region itself
is invalid.

Apply the minor changes to wxGTK (Xor() didn't do the right thing, Offset()
didn't assert) and wxOSX (Offset() crashed) to make their behaviour consistent
with wxMSW.

Add a (trivial, so far, but to be extended later) wxRegion unit test checking
that the methods do indeed behave as documented.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
14 files changed:
interface/wx/region.h
src/gtk/region.cpp
src/osx/carbon/region.cpp
tests/Makefile.in
tests/geometry/region.cpp [new file with mode: 0644]
tests/makefile.bcc
tests/makefile.gcc
tests/makefile.vc
tests/makefile.wat
tests/test.bkl
tests/test_test_gui.dsp
tests/test_vc7_test_gui.vcproj
tests/test_vc8_test_gui.vcproj
tests/test_vc9_test_gui.vcproj