2 // "$Id: tile.cxx 7903 2010-11-28 21:06:39Z matt $"
4 // Tile test program for the Fast Light Tool Kit (FLTK).
6 // Copyright 1998-2010 by Bill Spitzak and others.
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Library General Public License for more details.
18 // You should have received a copy of the GNU Library General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23 // Please report all bugs and problems on the following page:
25 // http://www.fltk.org/str.php
29 #include <FL/Fl_Double_Window.H>
30 #include <FL/Fl_Tile.H>
31 #include <FL/Fl_Box.H>
33 //#define TEST_INACTIVE
35 int main(int argc
, char** argv
) {
36 Fl_Double_Window
window(300,300);
37 window
.box(FL_NO_BOX
);
38 window
.resizable(window
);
39 Fl_Tile
tile(0,0,300,300);
40 Fl_Box
box0(0,0,150,150,"0");
41 box0
.box(FL_DOWN_BOX
);
44 box0
.align(FL_ALIGN_CLIP
);
45 Fl_Double_Window
w1(150,0,150,150,"1");
47 Fl_Box
box1(0,0,150,150,"1\nThis is a\nchild\nwindow");
48 box1
.box(FL_DOWN_BOX
);
51 box1
.align(FL_ALIGN_CLIP
);
55 // Fl_Tile tile2(0,150,150,150);
56 Fl_Box
box2a(0,150,70,150,"2a");
57 box2a
.box(FL_DOWN_BOX
);
60 box2a
.align(FL_ALIGN_CLIP
);
61 Fl_Box
box2b(70,150,80,150,"2b");
62 box2b
.box(FL_DOWN_BOX
);
65 box2b
.align(FL_ALIGN_CLIP
);
68 //Fl_Tile tile3(150,150,150,150);
69 Fl_Box
box3a(150,150,150,70,"3a");
70 box3a
.box(FL_DOWN_BOX
);
73 box3a
.align(FL_ALIGN_CLIP
);
74 Fl_Box
box3b(150,150+70,150,80,"3b");
75 box3b
.box(FL_DOWN_BOX
);
78 box3b
.align(FL_ALIGN_CLIP
);
81 Fl_Box
r(10,0,300-10,300-10);
83 // r.box(FL_BORDER_FRAME);
87 #ifdef TEST_INACTIVE // test inactive case
91 window
.show(argc
,argv
);
96 // End of "$Id: tile.cxx 7903 2010-11-28 21:06:39Z matt $".