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
This commit is contained in:
@@ -136,6 +136,7 @@ TEST_GUI_OBJECTS = \
|
||||
$(OBJS)\test_gui_rect.obj \
|
||||
$(OBJS)\test_gui_size.obj \
|
||||
$(OBJS)\test_gui_point.obj \
|
||||
$(OBJS)\test_gui_region.obj \
|
||||
$(OBJS)\test_gui_bitmap.obj \
|
||||
$(OBJS)\test_gui_colour.obj \
|
||||
$(OBJS)\test_gui_ellipsization.obj \
|
||||
@@ -746,6 +747,9 @@ $(OBJS)\test_gui_size.obj: .\geometry\size.cpp
|
||||
$(OBJS)\test_gui_point.obj: .\geometry\point.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\geometry\point.cpp
|
||||
|
||||
$(OBJS)\test_gui_region.obj: .\geometry\region.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\geometry\region.cpp
|
||||
|
||||
$(OBJS)\test_gui_bitmap.obj: .\graphics\bitmap.cpp
|
||||
$(CXX) -q -c -P -o$@ $(TEST_GUI_CXXFLAGS) .\graphics\bitmap.cpp
|
||||
|
||||
|
Reference in New Issue
Block a user