ImagePanel.cpp 555 B

1234567891011121314151617181920212223242526272829303132
  1. #include "UnitTest.h"
  2. #include "Gwen/Controls/ImagePanel.h"
  3. using namespace Gwen;
  4. class ImagePanel : public GUnit
  5. {
  6. public:
  7. GWEN_CONTROL_INLINE( ImagePanel, GUnit )
  8. {
  9. // Normal
  10. {
  11. Controls::ImagePanel* img = new Controls::ImagePanel( this );
  12. img->SetImage( L"gwen.png" );
  13. img->SetBounds( 10, 10, 100, 100 );
  14. }
  15. // Missing
  16. {
  17. Controls::ImagePanel* img = new Controls::ImagePanel( this );
  18. img->SetImage( L"missingimage.png" );
  19. img->SetBounds( 120, 10, 100, 100 );
  20. }
  21. }
  22. };
  23. DEFINE_UNIT_TEST( ImagePanel, L"ImagePanel" );