alternative to assert
[gtkD.git] / gtkD / demos / gtkD / TestAspectFrame.d
blobb72707c042f95ec0370adb8dfc150534e575579d
1 /*
2 * This file is part of gtkD.
3 *
4 * gtkD 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.
8 *
9 * gtkD 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 gtkD; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 module gtkD.TestAspectFrame;
21 private import gtk.AspectFrame;
23 private import gtkD.TestDrawingArea;
25 /**
26 * This tests the DUI aspect frame
28 class TestAspectFrame : AspectFrame
30 this()
32 // char[] label, gfloat xalign, gfloat yalign, gfloat ratio, bit obeyChild)
33 super("Aspect 3x1", .5, .5, 3.0, false);
34 add(new TestDrawingArea());