aboutsummaryrefslogtreecommitdiff
path: root/doc/dw-usage.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/dw-usage.doc')
-rw-r--r--doc/dw-usage.doc12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/dw-usage.doc b/doc/dw-usage.doc
index 32080d74..16ce5042 100644
--- a/doc/dw-usage.doc
+++ b/doc/dw-usage.doc
@@ -23,8 +23,8 @@ As described in \ref dw-overview, the following objects are needed:
First of all, the necessary \#include's:
\code
-#include <fltk/Window.h>
-#include <fltk/run.h>
+#include <FL/Fl_Window.H>
+#include <FL/Fl.H>
#include "dw/core.hh"
#include "dw/fltkcore.hh"
@@ -54,7 +54,7 @@ Then, the layout is created, with the platform attached:
For the view, we first need a FLTK window:
\code
- fltk::Window *window = new fltk::Window(200, 300, "Dw Example");
+ Fl_Window *window = new Fl_Window(200, 300, "Dw Example");
window->begin();
\endcode
@@ -101,9 +101,9 @@ defined, here dw::core::style::Color::createSimple must be called:
\code
styleAttrs.color =
- dw::core::style::Color::createSimple (layout, 0x000000);
+ dw::core::style::Color::create (layout, 0x000000);
styleAttrs.backgroundColor =
- dw::core::style::Color::createSimple (layout, 0xffffff);
+ dw::core::style::Color::create (layout, 0xffffff);
\endcode
Finally, the style for the widget is created:
@@ -193,7 +193,7 @@ Some FLTK stuff to finally show the window:
\code
window->resizable(viewport);
window->show();
- int errorCode = fltk::run();
+ int errorCode = Fl::run();
\endcode
For cleaning up, it is sufficient to destroy the layout: