Mercurial > dillo_port1.3
annotate test/shapes.cc @ 2149:9d1ff8be799c tip
disable 'Found font:' messages
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> |
---|---|
date | Sun, 24 Jul 2011 22:17:57 +0200 |
parents | 4704ad910042 |
children |
rev | line source |
---|---|
347 | 1 /* |
2 * Dillo Widget | |
3 * | |
4 * Copyright 2005-2007 Sebastian Geerken <sgeerken@dillo.org> | |
5 * | |
6 * This program is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 3 of the License, or | |
9 * (at your option) any later version. | |
10 * | |
11 * This program is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
972
d7dbd3dcfa38
Updated the GPL copyright note in the source files
Detlef Riekenberg <wine.dev@web.de>
parents:
347
diff
changeset
|
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
347 | 18 */ |
19 | |
20 | |
21 | |
22 #include "../dw/core.hh" | |
23 | |
24 using namespace dw::core; | |
1347
4704ad910042
remove "using namespace" statements from header files
Johannes Hofmann <Johannes.Hofmann@gmx.de>
parents:
972
diff
changeset
|
25 using namespace lout::misc; |
347 | 26 |
27 int main() | |
28 { | |
29 Polygon poly; | |
30 poly.addPoint (50, 10); | |
31 poly.addPoint (90, 90); | |
32 poly.addPoint (10, 90); | |
33 | |
34 printf("first test\n"); | |
35 assert (poly.isPointWithin (50, 50)); | |
36 printf("second test\n"); | |
37 assert (!poly.isPointWithin (10, 10)); | |
38 printf("third test\n"); | |
39 assert (!poly.isPointWithin (90, 50)); | |
40 } |