CPPUNIT_ASSERT_EQUAL_MESSAGE("(0,0) is outside range!", sal_uInt32(0),
utils::getCohenSutherlandClipFlags(B2IPoint(0, 0), aBox));
CPPUNIT_ASSERT_EQUAL_MESSAGE("(-1,-1) is inside range!",
utils::RectClipFlags::LEFT | utils::RectClipFlags::TOP,
utils::getCohenSutherlandClipFlags(B2IPoint(-1, -1), aBox));
CPPUNIT_ASSERT_EQUAL_MESSAGE("(9,9) is outside range!", sal_uInt32(0),
utils::getCohenSutherlandClipFlags(B2IPoint(9, 9), aBox));
CPPUNIT_ASSERT_EQUAL_MESSAGE("(10,10) is inside range!",
utils::RectClipFlags::RIGHT | utils::RectClipFlags::BOTTOM,
utils::getCohenSutherlandClipFlags(B2IPoint(10, 10), aBox));
}
// Change the following lines only, if you add, remove or rename // member functions of the current class, // because these macros are need by auto register mechanism.
CPPUNIT_TEST_SUITE(b2ibox);
CPPUNIT_TEST(TestBox);
CPPUNIT_TEST_SUITE_END();
}; // class b2ibox
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.