1 /* 2 * Copyright 2007, Ingo Weinhold <bonefish@cs.tu-berlin.de>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef WIDGET_LAYOUT_TEST_TEST_VIEW_H 6 #define WIDGET_LAYOUT_TEST_TEST_VIEW_H 7 8 9 #include <View.h> 10 11 12 class TestView : public BView { 13 public: 14 TestView(BSize minSize, BSize maxSize, 15 BSize preferredSize); 16 17 virtual BSize MinSize(); 18 virtual BSize MaxSize(); 19 virtual BSize PreferredSize(); 20 21 virtual void Draw(BRect updateRect); 22 23 private: 24 BSize fMinSize; 25 BSize fMaxSize; 26 BSize fPreferredSize; 27 }; 28 29 30 #endif // WIDGET_LAYOUT_TEST_TEST_VIEW_H 31