Doco updates for 1.1.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2009 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
@@ -1,6 +1,6 @@
|
||||
<HTML><BODY>
|
||||
<!-- NEW PAGE -->
|
||||
<H2><A name=Fl_Input_>class Fl_Input_</A></H2>
|
||||
<H2><A name="Fl_Input_">class Fl_Input_</A></H2>
|
||||
<HR>
|
||||
<H3>Class Hierarchy</H3>
|
||||
<UL>
|
||||
@@ -88,7 +88,7 @@ const</A></H4>
|
||||
<H4><A name=Fl_Input_.drawtext>void Fl_Input_::drawtext(int,int,int,int)</A>
|
||||
</H4>
|
||||
Draw the text in the passed bounding box. If <TT>damage()
|
||||
FL_DAMAGE_ALL</TT> is true, this assummes the area has already been
|
||||
FL_DAMAGE_ALL</TT> is true, this assumes the area has already been
|
||||
erased to <TT>color()</TT>. Otherwise it does minimal update and
|
||||
erases the area itself.
|
||||
<H4><A name=Fl_Input_.handletext>void Fl_Input_::handletext(int
|
||||
@@ -163,7 +163,7 @@ Fl_Input_::copy_cuts()</TT> afterwards. </P>
|
||||
l=0)</A></H4>
|
||||
Insert the string <TT>t</TT> at the current position, and leave the
|
||||
mark and position after it. If <TT>l</TT> is not zero then it is
|
||||
assummed to be <TT>strlen(t)</TT>.
|
||||
assumed to be <TT>strlen(t)</TT>.
|
||||
<H4><A name=Fl_Input_.copy>int Fl_Input_::copy()</A></H4>
|
||||
Put the current selection between <TT>mark()</TT> and <TT>position()</TT>
|
||||
into the clipboard. Does not replace the old clipboard contents if <TT>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<HTML><BODY>
|
||||
<!-- NEW PAGE -->
|
||||
<H2><A name=Fl_Output>class Fl_Output</A></H2>
|
||||
<H2><A name="Fl_Output">class Fl_Output</A></H2>
|
||||
<HR>
|
||||
<H3>Class Hierarchy</H3>
|
||||
<UL>
|
||||
@@ -31,7 +31,7 @@ text. </P>
|
||||
<P>The text may contain any characters except \0, and will correctly
|
||||
display anything, using ^X notation for unprintable control characters
|
||||
and \nnn notation for unprintable characters with the high bit set. It
|
||||
assummes the font can draw any characters in the ISO-Latin1 character
|
||||
assumes the font can draw any characters in the ISO-Latin1 character
|
||||
set. </P>
|
||||
<H3>Methods</H3>
|
||||
<UL>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<HTML>
|
||||
<BODY>
|
||||
|
||||
<H1 ALIGN=RIGHT><A NAME=basics>2 - FLTK Basics</A></H1>
|
||||
<H1 ALIGN="RIGHT"><A NAME="basics">2 - FLTK Basics</A></H1>
|
||||
|
||||
<P>This chapter teaches you the basics of compiling programs
|
||||
that use FLTK.</P>
|
||||
@@ -37,13 +37,13 @@ int main(int argc, char **argv) {
|
||||
window:</P>
|
||||
|
||||
<UL><PRE>
|
||||
Fl_Window *window = new <A href=Fl_Window.html#Fl_Window>Fl_Window</A>(300,180);
|
||||
Fl_Window *window = new <A href="Fl_Window.html#Fl_Window">Fl_Window</A>(300,180);
|
||||
</PRE></UL>
|
||||
|
||||
<P>and a box with the "Hello, World!" string in it:</P>
|
||||
|
||||
<UL><PRE>
|
||||
Fl_Box *box = new <A href=Fl_Box.html#Fl_Box>Fl_Box</A>(20,40,260,100,"Hello, World!");
|
||||
Fl_Box *box = new <A href="Fl_Box.html#Fl_Box">Fl_Box</A>(20,40,260,100,"Hello, World!");
|
||||
</PRE></UL>
|
||||
|
||||
<P>Next, we set the type of box and the size, font, and style of the label:</P>
|
||||
@@ -216,13 +216,22 @@ CC ... -L/usr/local/lib -lfltk -lXext -lX11 -lm
|
||||
gcc ... -L/usr/local/lib -lfltk -lXext -lX11 -lm
|
||||
</PRE></UL>
|
||||
|
||||
<P>The <TT>fltk-config</TT> script included with FLTK can be
|
||||
<P>As before, the <TT>fltk-config</TT> script included with FLTK can be
|
||||
used to get the options that are required by your linker:</P>
|
||||
|
||||
<UL><PRE>
|
||||
CC ... `fltk-config --ldflags`
|
||||
</PRE></UL>
|
||||
|
||||
<P>Finally, you can use the <TT>fltk-config</TT> script to
|
||||
compile a single source file as a FLTK program:
|
||||
|
||||
<UL><PRE>
|
||||
fltk-config --compile filename.cpp
|
||||
</PRE></UL>
|
||||
|
||||
<P>This will create an executable named <TT>filename</TT>.
|
||||
|
||||
<H2>Compiling Programs with Microsoft Visual C++</H2>
|
||||
|
||||
<P>In Visual C++ you will need to tell the compiler where to
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<HTML>
|
||||
<BODY>
|
||||
|
||||
<H1 ALIGN=RIGHT><A NAME="common">3 - Common Widgets and Attributes</A></H1>
|
||||
<H1 ALIGN="RIGHT"><A NAME="common">3 - Common Widgets and Attributes</A></H1>
|
||||
|
||||
<P>This chapter describes many of the widgets that are provided
|
||||
with FLTK and covers how to query and set the standard
|
||||
@@ -536,7 +536,7 @@ button->when(FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED);
|
||||
<TT>callback()</TT> method of the widget can be a
|
||||
pointer to the instance of your class.</P>
|
||||
|
||||
<UL><PRE>
|
||||
<PRE>
|
||||
class foo {
|
||||
void my_callback(Widget *);
|
||||
static void my_static_callback(Widget *w, foo *f) { f->my_callback(w); }
|
||||
@@ -546,7 +546,7 @@ class foo {
|
||||
...
|
||||
|
||||
w->callback(my_static_callback, this);
|
||||
</PRE></UL>
|
||||
</PRE>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE></CENTER>
|
||||
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 7.5 KiB |
@@ -5,11 +5,10 @@
|
||||
|
||||
<P>The Fast Light Tool Kit ("FLTK", pronounced
|
||||
"fulltick") is a LGPL'd C++ graphical user interface
|
||||
toolkit for X (UNIX®), OpenGL®, MacOS®, and
|
||||
Microsoft® Windows®. It was originally developed by Mr.
|
||||
Bill Spitzak and is currently maintained by a small group of
|
||||
developers across the world with a central repository in the
|
||||
US.</P>
|
||||
toolkit for X (UNIX®), MacOS®, and Microsoft®
|
||||
Windows®. It was originally developed by Mr. Bill Spitzak
|
||||
and is currently maintained by a small group of developers
|
||||
across the world with a central repository in the US.</P>
|
||||
|
||||
<H2>History of FLTK</H2>
|
||||
|
||||
|
||||
@@ -337,7 +337,7 @@ you do a swapbuffers.
|
||||
on systems with lots of memory. <p>
|
||||
|
||||
<li>All other values for <tt>GL_SWAP_TYPE</tt>, and not
|
||||
setting the variable, cause FLTK to assumme that the
|
||||
setting the variable, cause FLTK to assume that the
|
||||
back buffer must be completely redrawn after a swap.
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
</HEAD>
|
||||
<BODY>
|
||||
|
||||
<H1 ALIGN=RIGHT><A NAME=preface>Preface</A></H1>
|
||||
<H1 ALIGN="RIGHT"><A NAME="preface">Preface</A></H1>
|
||||
|
||||
<P>This manual describes the Fast Light Tool Kit ("FLTK")
|
||||
version 1.1.0, a C++ Graphical User Interface
|
||||
@@ -97,7 +97,7 @@ interfaces.</P>
|
||||
|
||||
<P>FLTK is Copyright 1998-2002 by Bill Spitzak and others. Use and
|
||||
distribution of FLTK is governed by the GNU Library General Public
|
||||
License, located in <A HREF="license.html#license">Appendix G</A>.</P>
|
||||
License, located in <A HREF="license.html#license">Appendix H</A>.</P>
|
||||
|
||||
<P>UNIX is a registered trademark of the X Open Group, Inc.
|
||||
Microsoft and Windows are registered trademarks of Microsoft
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<HTML><BODY>
|
||||
<H1 ALIGN=RIGHT><A NAME=widgets>A - Widget Reference</A></H1>
|
||||
<HTML>
|
||||
<BODY>
|
||||
|
||||
<H1 ALIGN="RIGHT"><A NAME="widgets">A - Class Reference</A></H1>
|
||||
|
||||
This appendix describes all of the classes in FLTK. For a
|
||||
description of the <TT>fl_</TT> functions, see
|
||||
@@ -211,4 +213,5 @@ description of the <TT>fl_</TT> functions, see
|
||||
</UL>
|
||||
</UL>
|
||||
|
||||
</BODY></HTML>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.11 2002/01/01 15:11:29 easysw Exp $"
|
||||
// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.12 2002/03/24 17:26:00 easysw Exp $"
|
||||
//
|
||||
// Widget type code for the Fast Light Tool Kit (FLTK).
|
||||
//
|
||||
@@ -591,7 +591,7 @@ void down_box_cb(Fl_Choice* i, void *v) {
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
Fl_Menu_Item whenmenu[] = {
|
||||
{"never",0,0,(void*)ZERO_ENTRY},
|
||||
{"Never",0,0,(void*)ZERO_ENTRY},
|
||||
{"Release",0,0,(void*)FL_WHEN_RELEASE},
|
||||
{"Changed",0,0,(void*)FL_WHEN_CHANGED},
|
||||
{"Enter key",0,0,(void*)FL_WHEN_ENTER_KEY},
|
||||
@@ -1974,5 +1974,5 @@ int Fl_Widget_Type::read_fdesign(const char* name, const char* value) {
|
||||
}
|
||||
|
||||
//
|
||||
// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.11 2002/01/01 15:11:29 easysw Exp $".
|
||||
// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.12 2002/03/24 17:26:00 easysw Exp $".
|
||||
//
|
||||
|
||||