alternative to assert
[gtkD.git] / demos / gtk / HelloWorld.d
blob45f8ceacce890a6063f9ef5c10d3457d29480812
1 /*
2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 module gtk.HelloWorld;
21 private import gtk.MainWindow;
22 private import gtk.Label;
23 private import gtk.Duit;
25 class HelloWorld : MainWindow
27 this()
29 super("Duit");
30 add(new Label("Hello World"));
31 showAll();
35 private import lib.Loader;
37 void main(char[][] args)
40 Linker.dumpFailedLoads();
42 Duit.init(args);
43 new HelloWorld();
44 Duit.main();