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/basics.html | 59 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 44 insertions(+), 15 deletions(-) (limited to 'documentation/basics.html') diff --git a/documentation/basics.html b/documentation/basics.html index 10a6b58d0..7958cc113 100644 --- a/documentation/basics.html +++ b/documentation/basics.html @@ -33,6 +33,8 @@ int main(int argc, char **argv) { } + +

After including the required header files, the program then creates a window:

@@ -114,11 +116,12 @@ of the form "type name() const".

Redrawing After Changing Attributes

Almost all of the set/get pairs are very fast, short inline -functions and thus very efficient. However, the "set" -methods do not call redraw() - you have to call it -yourself. This greatly reduces code size and execution time. -The only common exception is value() which calls -redraw() if necessary.

+functions and thus very efficient. However, the "set" methods +do not call redraw() - you have to call it +yourself. This greatly reduces code size and execution time. The +only common exceptions are value() which calls +redraw() and label() which calls +redraw_label() if necessary.

Labels

@@ -239,14 +242,30 @@ used to get the options that are required by your linker:

CC ... `fltk-config --ldflags` + + +

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>
    +	
+ +
-- cgit v1.2.3