annotate src/fltk-test.cpp @ 6161:8fcac4d6d983 release

of-queueing: Fix syntax error with Octave 7 (bug #62314). * src/of-queueing-1-octave7.patch: Add new file. * dist-files.mk: Include new patch.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 14 Apr 2022 19:27:13 +0200
parents 99516e73b368
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
1 /*
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
2 * This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2351
diff changeset
3 * See index.html for further information.
2351
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
4 *
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
5 * This is a slightly modified version of:
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
6 * http://www.fltk.org/doc-1.3/basics.html
8a6c466753e2 Improve comment style of all test programs
Volker Grabsch <vog@notjusthosting.com>
parents: 2333
diff changeset
7 */
1843
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
8
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
9 #include <FL/Fl.H>
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
10 #include <FL/Fl_Window.H>
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
11 #include <FL/Fl_Box.H>
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
12
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
13 int main(int argc, char **argv)
d9c83dad307a package fltk: add test program
Tony Theodore <tonyt@logyst.com>
parents:
diff changeset
14 {
2289
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
15 Fl_Window *window = new Fl_Window(340,180);
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
16 Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
17 box->box(FL_UP_BOX);
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
18 box->labelfont(FL_BOLD+FL_ITALIC);
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
19 box->labelsize(36);
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
20 box->labeltype(FL_SHADOW_LABEL);
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
21 window->end();
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
22 window->show(argc, argv);
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
23 return Fl::run();
125d60dc0659 Fix annoying TABs and missing newlines at EOF
Volker Grabsch <vog@notjusthosting.com>
parents: 1843
diff changeset
24 }