5 #include "IStringStream.H"
11 colour mauve("mauve", 1, 0, 1);
13 lineStyle solid("Solid", 2.0, 2.0, IStringStream("1(1.0)")());
14 lineStyle broken("Broken", 2.0, 10.0, IStringStream("4(1 1 4 1)")());
24 0.5, 0.5, 0.5, 0.5, 500, 500
29 wind << rectangle2D(point2D(0.0, 0.0), point2D(100.0, 100.0));
31 wind.setColour(mauve);
32 wind.setLineStyle(solid);
34 wind << line2D(point2D(0.0, 0.0), point2D(0.0, 200.0));
35 wind << line2D(point2D(0.0, 200.0), point2D(200.0, 200.0));
37 //wind.setLineStyle(broken);
39 wind << line2D(point2D(200.0, 200.0), point2D(200.0, 0.0));
40 wind << line2D(point2D(200.0, 0.0), point2D(0.0, 0.0));
42 wind << string2D(point2D(200.0, 0.0), "Hi there");
44 } while (wind.waitForEvent());