I've no idea here...
[gtkD.git] / demos / cairo / main.d
blob0da4664bf2dae6c5454dac54ece33be6accf5865
1 /**
2 * main.d
4 * A Duit main window that uses the clock widget from clock.d
6 * Based on the Gtkmm example by:
7 * Jonathon Jongsma
9 * and the original GTK+ example by:
10 * (c) 2005-2006, Davyd Madeley
12 * Authors:
13 * Joonas Kiviharju (D version)
14 * Jonathon Jongsma (C++ version)
15 * Davyd Madeley (C version)
19 * from http://www.dsource.org/forums/viewtopic.php?t=1666
20 * satelliittipupu wrote:
21 * You can use it for Duit demos!
24 module cairo.main;
26 private import cairo.clock;
28 private import gtk.MainWindow;
29 private import gtk.Duit;
31 void main(char[][] args)
33 Duit.init(args);
35 MainWindow win = new MainWindow("Duit Cairo Clock");
37 win.setDefaultSize( 250, 250 );
39 Clock c = new Clock();
40 win.add(c);
41 c.show();
42 win.showAll();
44 Duit.main();