From e4731d3f1a81a363faff89792064438efce05d1e Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 4 Oct 2002 17:23:09 +0000 Subject: Final doco updates for 1.1.0. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Text_Buffer.html | 156 +++++++++++++++++++------------------ documentation/Fl_Text_Display.html | 12 ++- documentation/Fl_Text_Editor.html | 12 ++- documentation/basics.html | 59 ++++++++++---- documentation/common.html | 12 ++- documentation/drawing.html | 2 + documentation/editor.html | 2 + documentation/events.html | 2 + 8 files changed, 162 insertions(+), 95 deletions(-) (limited to 'documentation') diff --git a/documentation/Fl_Text_Buffer.html b/documentation/Fl_Text_Buffer.html index ebc4a913b..a7629e26b 100644 --- a/documentation/Fl_Text_Buffer.html +++ b/documentation/Fl_Text_Buffer.html @@ -31,80 +31,88 @@ excellent NEdit text editor engine - see

Methods

- + + +

Fl_Text_Buffer(int requestedSize = 0);

diff --git a/documentation/Fl_Text_Display.html b/documentation/Fl_Text_Display.html index 8d17db109..d16677583 100644 --- a/documentation/Fl_Text_Display.html +++ b/documentation/Fl_Text_Display.html @@ -37,7 +37,8 @@ class.

Methods

- + + +

The forms, GL, and images libraries are included with the "--use-foo" +options, as follows: + +

+

Finally, you can use the fltk-config script to compile a single source file as a FLTK program:

-

This will create an executable named filename. +

Any of these will create an executable named filename.

Compiling Programs with Microsoft Visual C++

@@ -288,6 +307,8 @@ better and can be used with the "optimized for speed" setting.

+ +

Header Files

The proper way to include FLTK header files is:

@@ -296,16 +317,24 @@ better and can be used with the "optimized for speed" setting.

#include <FL/Fl_xyz.H> -

Microsoft Windows developers please note: case *is* -significant under other operating systems, and the C standard -uses the forward slash (/) to separate directories. Do not -use any of the following include lines:

+
+ + + +
Note: + +

Case is significant on many operating systems, + and the C standard uses the forward slash (/) to + separate directories. Do not use any of the following + include lines:

-
    -#include <FL\Fl_xyz.H>
    -#include <fl/fl_xyz.h>
    -#include <Fl/fl_xyz.h>
    -
+
    +	#include <FL\Fl_xyz.H>
    +	#include <fl/fl_xyz.h>
    +	#include <Fl/fl_xyz.h>
    +	
+ +
diff --git a/documentation/common.html b/documentation/common.html index 7a7a85066..ca7b4c4fc 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -118,6 +118,8 @@ the value() of the widget.

widgets use an associated Fl_Text_Buffer class for the value, instead of a simple string.

+ +

Valuators

Unlike text widgets, valuators keep track of numbers instead of @@ -150,6 +152,8 @@ and maximum() methods set the range of values that are reported by the widget.

+ +

Groups

The Fl_Group widget class is used as a general @@ -224,9 +228,9 @@ fixed contents.

  • FL_CYAN
  • -
  • FL_WHITE (this is the default background color of text widgets)
  • +
  • FL_WHITE
  • -
  • FL_GRAY (this is the default background color of most widgets)
  • +
  • FL_GRAY (this is the default color of most widgets)
  • RGB colors can be set using the fl_rgb_color() @@ -288,6 +292,8 @@ void xyz_draw(int x, int y, int w, int h, Fl_Color c) { } + +

    A simple drawing function might fill a rectangle with the given color and then draw a black outline:

    @@ -331,6 +337,8 @@ sign. Figure 3-4 shows the available symbols.

    FLTK Symbols
    Figure 3-4: FLTK label symbols

    + +

    The @ sign may also be followed by the following optional "formatting" characters, in this order:

    diff --git a/documentation/drawing.html b/documentation/drawing.html index 85d8979c1..c3f8d7ca8 100644 --- a/documentation/drawing.html +++ b/documentation/drawing.html @@ -228,6 +228,8 @@ system-defined default of whatever value is fastest. Zero results in the system-defined default, which on both X and Windows is somewhat different and nicer than 1. + +

    dashes is a pointer to an array of dash lengths, measured in pixels. The first location is how long to draw a solid portion, the next is how long to draw the gap, then the solid, etc. It is diff --git a/documentation/editor.html b/documentation/editor.html index 56de1ad71..6ea65ec2b 100644 --- a/documentation/editor.html +++ b/documentation/editor.html @@ -23,6 +23,8 @@ lets define what we want our text editor to do: + +

    Designing the Main Window

    Now that we've outlined the goals for our editor, we can begin with diff --git a/documentation/events.html b/documentation/events.html index c9921f818..fb401d45a 100644 --- a/documentation/events.html +++ b/documentation/events.html @@ -241,6 +241,8 @@ indicate the possible drop position. the widget. If the widget returns 1, it will receive the data in the immediatly following FL_PASTE event. + +

    Fl::event_*() methods

    FLTK keeps the information about the most recent event in -- cgit v1.2.3