comparison gui.d @ 3:7d57cae10805

Renamed geometry2 to geometry
author David Bryant <daveb@acres.com.au>
date Fri, 10 Jul 2009 15:25:48 +0930
parents d6f44347373d
children 936feb16eed4
comparison
equal deleted inserted replaced
2:d6f44347373d 3:7d57cae10805
9 import tk.geometry; 9 import tk.geometry;
10 import tk.types; 10 import tk.types;
11 import tk.events; 11 import tk.events;
12 12
13 import std.stdio; 13 import std.stdio;
14 import tk.geometry2; 14 import tk.geometry;
15 15
16 void main(string[] args) { 16 void main(string[] args) {
17 Main.init(args); 17 Main.init(args);
18 auto window = new MainWindow("Title"); 18 auto window = new MainWindow("Title");
19 auto event_handler = new ToolStack(); 19 auto event_handler = new ToolStack();
21 window.add(canvas); 21 window.add(canvas);
22 window.showAll(); 22 window.showAll();
23 Main.run(); 23 Main.run();
24 24
25 /* 25 /*
26 Point2 p3 = Point2.DEFAULT; 26 Point p3 = Point.DEFAULT;
27 27
28 Point2 p1 = Point2(3.0, 5.0); 28 Point p1 = Point(3.0, 5.0);
29 writefln("%s", p1); 29 writefln("%s", p1);
30 30
31 Point2 p2 = Point2(1.0, 2.0); 31 Point p2 = Point(1.0, 2.0);
32 writefln("%s", p2); 32 writefln("%s", p2);
33 33
34 writefln("%s", p1 - p2); 34 writefln("%s", p1 - p2);
35 35
36 Rectangle2 r = Rectangle2(p1, p2); 36 Rectangle r = Rectangle(p1, p2);
37 writefln("%s", r); 37 writefln("%s", r);
38 */ 38 */
39 } 39 }