mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
Fixed various typos and added a Fluid organization chart image
contributed by Craig Earls. git-svn-id: file:///fltk/svn/fltk/trunk@207 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -76,7 +76,7 @@ that will call your <tt>main()</tt> function for you.
|
|||||||
|
|
||||||
<p><i>Note: The Visual C++ optimizer is known to cause problems with
|
<p><i>Note: The Visual C++ optimizer is known to cause problems with
|
||||||
many programs. We only recommend using the "Favor Small Code"
|
many programs. We only recommend using the "Favor Small Code"
|
||||||
optimization setting.
|
optimization setting.</i>
|
||||||
|
|
||||||
<H2>Writing Your First FLTK Program</H2>
|
<H2>Writing Your First FLTK Program</H2>
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ href=#enumerations><tt><FL/Enumerations.H></tt></a>.
|
|||||||
<p>For colormapped displays, a color cell will be allocated out of
|
<p>For colormapped displays, a color cell will be allocated out of
|
||||||
<tt>fl_colormap</tt> the first time you use a color. If the colormap
|
<tt>fl_colormap</tt> the first time you use a color. If the colormap
|
||||||
fills up then a least-squares algorithm is used to find the closest
|
fills up then a least-squares algorithm is used to find the closest
|
||||||
color.</i>
|
color.
|
||||||
|
|
||||||
<h4>Fl_Color fl_color()</h4>
|
<h4>Fl_Color fl_color()</h4>
|
||||||
|
|
||||||
@@ -503,7 +503,7 @@ decompress the entire line at once: decompress it into the buffer, and
|
|||||||
then if <tt>x</tt> is not zero, copy the data over so the <tt>x</tt>'th
|
then if <tt>x</tt> is not zero, copy the data over so the <tt>x</tt>'th
|
||||||
pixel is at the start of the buffer.
|
pixel is at the start of the buffer.
|
||||||
|
|
||||||
<p>You can assumme the <tt>y</tt>'s will be consecutive, except the first one
|
<p>You can assume the <tt>y</tt>'s will be consecutive, except the first one
|
||||||
may be greater than zero.
|
may be greater than zero.
|
||||||
|
|
||||||
<p>If <tt>D</tt> is 4 or more, you must fill in the unused bytes with zero.
|
<p>If <tt>D</tt> is 4 or more, you must fill in the unused bytes with zero.
|
||||||
|
|||||||
@@ -386,7 +386,7 @@ void replall_cb() {
|
|||||||
|
|
||||||
if (found != NULL) {
|
if (found != NULL) {
|
||||||
// Found a match; update the position and replace text...
|
// Found a match; update the position and replace text...
|
||||||
times ++
|
times ++;
|
||||||
pos = input->position() + found - val;
|
pos = input->position() + found - val;
|
||||||
input->replace(pos, pos + strlen(find), replace_with->value());
|
input->replace(pos, pos + strlen(find), replace_with->value());
|
||||||
input->position(pos + strlen(replace_with->value()));
|
input->position(pos + strlen(replace_with->value()));
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ widget.
|
|||||||
|
|
||||||
<H2>The FLTK Event Model</H2>
|
<H2>The FLTK Event Model</H2>
|
||||||
|
|
||||||
Events are identified the small integer argument passed to the <a
|
Events are identified by the integer argument passed to the <a
|
||||||
href="#handle"><tt>Fl_Widget::handle()</tt></a> virtual method. Other
|
href="#handle"><tt>Fl_Widget::handle()</tt></a> virtual method. Other
|
||||||
information about the most recent event is stored in static locations
|
information about the most recent event is stored in static locations
|
||||||
and acquired by calling the <a
|
and acquired by calling the <a
|
||||||
@@ -133,7 +133,7 @@ or one of its parents.
|
|||||||
<h3>FL_HIDE</h3>
|
<h3>FL_HIDE</h3>
|
||||||
|
|
||||||
This widget is no longer visible, due to <a
|
This widget is no longer visible, due to <a
|
||||||
href="#Fl_Widget.hide><tt>hide()</a> being called on it or one of its
|
href="#Fl_Widget.hide><tt>hide()</tt></a> being called on it or one of its
|
||||||
parents, or due to a parent window being minimized. <tt>visible()</tt>
|
parents, or due to a parent window being minimized. <tt>visible()</tt>
|
||||||
may still be true after this, but the widget is visible only if
|
may still be true after this, but the widget is visible only if
|
||||||
<tt>visible()</tt> is true for it and all its parents (use
|
<tt>visible()</tt> is true for it and all its parents (use
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -27,24 +27,7 @@ functions. These .cxx files must <tt>#include</tt> the .h file or
|
|||||||
they can <tt>#include</tt> the .cxx file so it still appears to be a single
|
they can <tt>#include</tt> the .cxx file so it still appears to be a single
|
||||||
source file.
|
source file.
|
||||||
|
|
||||||
<hr break>
|
<center><img src=fluid-org.gif></center>
|
||||||
<ul><pre>
|
|
||||||
___________
|
|
||||||
/ /
|
|
||||||
__________ +->/.cxx file /--------+
|
|
||||||
/ / / /__________/ |
|
|
||||||
/.fl file /<==>[FLUID]< #include |
|
|
||||||
/_________/ \ ___v_____ |
|
|
||||||
\ / / |
|
|
||||||
+>/.h file / |
|
|
||||||
/________/ |
|
|
||||||
^ |
|
|
||||||
#include |
|
|
||||||
___|_______ | __________
|
|
||||||
/ / V / /
|
|
||||||
/ main.cxx /--->[c++,link]-->/ program /
|
|
||||||
/__________/ /_________/
|
|
||||||
</pre></ul>
|
|
||||||
|
|
||||||
<p>Normally the FLUID file defines one or more "functions", which
|
<p>Normally the FLUID file defines one or more "functions", which
|
||||||
output C++ functions. Each function defines a one or more FLTK
|
output C++ functions. Each function defines a one or more FLTK
|
||||||
|
|||||||
@@ -5,9 +5,10 @@
|
|||||||
|
|
||||||
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd C++
|
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd C++
|
||||||
graphical user interface toolkit for X (UNIX®), OpenGL®, and
|
graphical user interface toolkit for X (UNIX®), OpenGL®, and
|
||||||
Microsoft® Windows® NT 4.0, 95, or 98. It is currently
|
Microsoft® Windows® NT 4.0, 95, or 98. It was originally
|
||||||
maintained by a small group of developers across the world with a
|
developed by Mr. Bill Spitzak and is currently maintained by a small
|
||||||
central repository in the US.
|
group of developers across the world with a central repository in the
|
||||||
|
US.
|
||||||
|
|
||||||
<h2>History of FLTK</h2>
|
<h2>History of FLTK</h2>
|
||||||
|
|
||||||
@@ -44,15 +45,15 @@ window around.
|
|||||||
<p>At Digital Domain Bill discovered another toolkit, "Forms". Forms was
|
<p>At Digital Domain Bill discovered another toolkit, "Forms". Forms was
|
||||||
similar to his work, but provided many more widgets, since it was used
|
similar to his work, but provided many more widgets, since it was used
|
||||||
in many real applications, rather then as theoretical work. He decided
|
in many real applications, rather then as theoretical work. He decided
|
||||||
to use Forms, except he integrated my table-driven menus into it.
|
to use Forms, except he integrated his table-driven menus into it.
|
||||||
Several very large programs were created using this version of Forms.
|
Several very large programs were created using this version of Forms.
|
||||||
|
|
||||||
<p>The need to switch to OpenGL and GLX, portability, and a desire to
|
<p>The need to switch to OpenGL and GLX, portability, and a desire to
|
||||||
use C++ subclassing required a rewrite of Forms. This produced the
|
use C++ subclassing required a rewrite of Forms. This produced the
|
||||||
first version of FLTK. The conversion to C++ required so many changes
|
first version of FLTK. The conversion to C++ required so many changes
|
||||||
it made it impossible to recompile any Forms objects. Since it was
|
it made it impossible to recompile any Forms objects. Since it was
|
||||||
incompatable anyway, Bill decided to incorporate as much as possible my
|
incompatible anyway, Bill decided to incorporate his older ideas as
|
||||||
older ideas on simplifying the lower level interface and the event
|
much as possible by simplifying the lower level interface and the event
|
||||||
passing mechanisim.
|
passing mechanisim.
|
||||||
|
|
||||||
<p>Bill received permission to release it for free on the Internet,
|
<p>Bill received permission to release it for free on the Internet,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<META NAME="Author" CONTENT="Michael Sweet">
|
<META NAME="Author" CONTENT="Michael Sweet">
|
||||||
<META NAME="Copyright" CONTENT="Copyright 1998-1999 by Bill Spizak and Others.">
|
<META NAME="Copyright" CONTENT="Copyright 1998-1999 by Bill Spitzak and Others.">
|
||||||
<META NAME="DocNumber" CONTENT="Revision 0">
|
<META NAME="DocNumber" CONTENT="Revision 0">
|
||||||
<TITLE>FLTK 1.0 Programming Manual</TITLE>
|
<TITLE>FLTK 1.0 Programming Manual</TITLE>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
|
|||||||
Reference in New Issue
Block a user