summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/src/basics.dox12
-rw-r--r--documentation/src/hello_cxx.pngbin1195 -> 2383 bytes
2 files changed, 6 insertions, 6 deletions
diff --git a/documentation/src/basics.dox b/documentation/src/basics.dox
index 2b839c322..71edef38c 100644
--- a/documentation/src/basics.dox
+++ b/documentation/src/basics.dox
@@ -19,10 +19,10 @@ World!" program that uses FLTK to display the window.
#include <FL/Fl_Box.H>
int main(int argc, char **argv) {
- Fl_Window *window = new Fl_Window(340,180);
- Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
+ Fl_Window *window = new Fl_Window(340, 180);
+ Fl_Box *box = new Fl_Box(20, 40, 300, 100, "Hello, World!");
box->box(FL_UP_BOX);
- box->labelfont(FL_BOLD+FL_ITALIC);
+ box->labelfont(FL_BOLD + FL_ITALIC);
box->labelsize(36);
box->labeltype(FL_SHADOW_LABEL);
window->end();
@@ -37,21 +37,21 @@ After including the required header files, the program then creates a
window. All following widgets will automatically be children of this window.
\code
-Fl_Window *window = new Fl_Window(340,180);
+Fl_Window *window = new Fl_Window(340, 180);
\endcode
Then we create a box with the "Hello, World!" string in it. FLTK automatically
adds the new box to \p window, the current grouping widget.
\code
-Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
+Fl_Box *box = new Fl_Box(20, 40, 300, 100, "Hello, World!");
\endcode
Next, we set the type of box and the font, size, and style of the label:
\code
box->box(FL_UP_BOX);
-box->labelfont(FL_BOLD+FL_ITALIC);
+box->labelfont(FL_BOLD + FL_ITALIC);
box->labelsize(36);
box->labeltype(FL_SHADOW_LABEL);
\endcode
diff --git a/documentation/src/hello_cxx.png b/documentation/src/hello_cxx.png
index 43604e3e6..de86966df 100644
--- a/documentation/src/hello_cxx.png
+++ b/documentation/src/hello_cxx.png
Binary files differ