Add Fl::version() and Fl::event() methods.

Doco updates (use <!-- NEW PAGE --> instead of <HR break>, plus more
Fl_Text_Buffer docos)


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1773 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2001-11-28 18:00:17 +00:00
parent f10b778a56
commit d211b12af7
60 changed files with 181 additions and 258 deletions

View File

@ -3,6 +3,10 @@ CHANGES IN FLTK 1.1.0b6
- Documentation updates...
- The configure script now works within the CygWin
environment.
- Added new Fl::version() method to get the current
FLTK library version (for shared libraries/DLLs)
- Added new Fl::event() method to get the current
event that is being processed.
- Added new fl_beep() function to do audible
notifications of various types.
- Added new Fl_GIF_Image, Fl_JPEG_Image, Fl_PNG_Image,

13
FL/Fl.H
View File

@ -1,5 +1,5 @@
//
// "$Id: Fl.H,v 1.8.2.11.2.4 2001/11/27 17:44:06 easysw Exp $"
// "$Id: Fl.H,v 1.8.2.11.2.5 2001/11/28 18:00:16 easysw Exp $"
//
// Main header file for the Fast Light Tool Kit (FLTK).
//
@ -45,6 +45,7 @@ class Fl {
public: // should be private!
static FL_EXPORT int e_number;
static FL_EXPORT int e_x,e_y,e_x_root,e_y_root;
static FL_EXPORT int e_dx, e_dy;
static FL_EXPORT int e_state;
@ -68,6 +69,9 @@ public: // should be private!
public:
// API version number
static double version();
// argument parsers:
static FL_EXPORT int arg(int, char**, int&);
static FL_EXPORT int args(int, char**, int&, int (*)(int,char**,int&) = 0);
@ -119,8 +123,9 @@ public:
static FL_EXPORT void grab(Fl_Window*);
// event information:
static FL_EXPORT int event_x() {return e_x;}
static FL_EXPORT int event_y() {return e_y;}
static FL_EXPORT int event() {return e_number;}
static FL_EXPORT int event_x() {return e_x;}
static FL_EXPORT int event_y() {return e_y;}
static FL_EXPORT int event_x_root() {return e_x_root;}
static FL_EXPORT int event_y_root() {return e_y_root;}
static FL_EXPORT void get_mouse(int &,int &);
@ -220,5 +225,5 @@ public:
#endif
//
// End of "$Id: Fl.H,v 1.8.2.11.2.4 2001/11/27 17:44:06 easysw Exp $".
// End of "$Id: Fl.H,v 1.8.2.11.2.5 2001/11/28 18:00:16 easysw Exp $".
//

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Adjuster>class Fl_Adjuster</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Box>class Fl_Box</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Browser>class Fl_Browser</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name="Fl_Browser_">class Fl_Browser_</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Button>class Fl_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -127,4 +127,4 @@ the default value is <CODE>FL_WHEN_RELEASE</CODE>:
value() changes (when the user pushes and releases the button, and as
the mouse is dragged around in and out of the button). </LI>
</UL>
</BODY></HTML>
</BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Chart>class Fl_Chart</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Check_Button>class Fl_Check_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Choice>class Fl_Choice</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Clock>class Fl_Clock</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Color_Chooser>class Fl_Color_Chooser</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Counter>class Fl_Counter</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Dial>class Fl_Dial</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Double_Window>class Fl_Double_Window</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -50,4 +50,4 @@ all the children in the user code.
Returns the off-screen pixmap or back buffer. This value is zero until
the first time <tt>flush()</tt> is called.
</BODY></HTML>
</BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_End>class Fl_End</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -38,4 +38,4 @@ MyClass::MyClass() :
<LI><A href=#Fl_End.Fl_End>Fl_End</A></LI>
</UL>
<H4><A name=Fl_End.Fl_End>Fl_End::Fl_End</A></H4>
The constructor does <TT>Fl_Group::current()-&gt;end()</TT>. </BODY></HTML>
The constructor does <TT>Fl_Group::current()-&gt;end()</TT>. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Float_Input>class Fl_Float_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Free>class Fl_Free</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -71,4 +71,4 @@ The <TT>event</TT> argument contains the event type:
</UL>
<H4><A name=Fl_Free.~Fl_Free>virtual Fl_Free::~Fl_Free()</A></H4>
The destructor will call the handle function with the event <TT>
FL_FREE_MEM</TT>. </BODY></HTML>
FL_FREE_MEM</TT>. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Gl_Window>class Fl_Gl_Window</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Group>class Fl_Group</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Hold_Browser>class Fl_Hold_Browser</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -52,4 +52,4 @@ than one line the results are unpredictable.
<H4><A name=Fl_Hold_Browser.value>int Fl_Browser::value() const
<BR> void Fl_Browser::value(int)</A></H4>
Set or get which line is selected. This returns zero if no line is
selected, so be aware that this can happen in a callback. </BODY></HTML>
selected, so be aware that this can happen in a callback. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Input>class Fl_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Input_>class Fl_Input_</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Int_Input>class Fl_Int_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Light_Button>class Fl_Light_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Menu_>class Fl_Menu_</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Menu_Bar>class Fl_Menu_Bar</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Menu_Button>class Fl_Menu_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Menu_Item>struct Fl_Menu_Item</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Menu_Window>class Fl_Menu_Window</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -42,4 +42,4 @@ Fl_Menu_Window::clear_overlay();</A></H4>
This is usually necessary if your menu contains multi-color pixmaps.
<H4><A name=Fl_Menu_Window.set_overlay>Fl_Menu_Window::set_overlay()</A></H4>
Tells FLTK to use hardware overlay planes if they are available. </BODY>
</HTML>
</HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Multi_Browser>class Fl_Multi_Browser</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -53,4 +53,4 @@ line.
<BR> void Fl_Browser::value(int)</A></H4>
Selects a single line or gets the last toggled line. This returns zero
if no line has been toggled, so be aware that this can happen in a
callback. </BODY></HTML>
callback. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Multiline_Input>class Fl_Multiline_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Multiline_Output>class Fl_Multiline_Output</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -35,4 +35,4 @@ position, size, and label string. The default boxtype is <TT>FL_DOWN_BOX</TT>
.
<H4><A name=Fl_Multiline_Output.~Fl_Multiline_Output>virtual
Fl_Multiline_Output::~Fl_Multiline_Output()</A></H4>
Destroys the widget and any value associated with it. </BODY></HTML>
Destroys the widget and any value associated with it. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Output>class Fl_Output</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Overlay_Window>class Fl_Overlay_Window</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -53,4 +53,4 @@ can use any of the routines described in <A href=drawing.html#Drawing>
Call this to indicate that the overlay data has changed and needs to
be redrawn. The overlay will be clear until the first time this is
called, so if you want an initial display you must call this after
calling <TT>show()</TT>. </BODY></HTML>
calling <TT>show()</TT>. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Pack>class Fl_Pack</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Positioner>class Fl_Positioner</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Repeat_Button>class Fl_Repeat_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -31,4 +31,4 @@ position, size, and label string. The default boxtype is <TT>FL_UP_BOX</TT>
.
<H4><A name=Fl_Repeat_Button.~Fl_Repeat_Button>virtual
Fl_Repeat_Button::~Fl_Repeat_Button()</A></H4>
Deletes the button. </BODY></HTML>
Deletes the button. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Return_Button>class Fl_Return_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Roller>class Fl_Roller</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Round_Button>class Fl_Round_Button</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Scroll>class Fl_Scroll</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Scrollbar>class Fl_Scrollbar</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Secret_Input>class Fl_Secret_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Select_Browser>class Fl_Select_Browser</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -50,4 +50,4 @@ Fl_Select_Browser::~Fl_Select_Browser()</A></H4>
than one line the results are unpredictable.
<H4><A name=Fl_Select_Browser.value>int Fl_Browser::value() const</A></H4>
Returns the number of the highlighted item, or zero if none. Notice
that this is going to be zero except <I>during</I> a callback! </BODY></HTML>
that this is going to be zero except <I>during</I> a callback! </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Single_Window>class Fl_Single_Window</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Slider>class Fl_Slider</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Tabs>class Fl_Tabs</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -95,7 +95,6 @@ excellent NEdit text editor engine - see
<H4><A NAME="Fl_Text_Buffer.skip_lines">skip_lines</A></H4>
<H4><A NAME="Fl_Text_Buffer.substitute_null_characters">substitute_null_characters</A></H4>
<H4><A NAME="Fl_Text_Buffer.tab_distance">tab_distance</A></H4>
<H4><A NAME="Fl_Text_Buffer.tab_distance">tab_distance</A></H4>
<H4><A NAME="Fl_Text_Buffer.text_in_rectangle">text_in_rectangle</A></H4>
<H4><A NAME="Fl_Text_Buffer.text_range">text_range</A></H4>
<H4><A NAME="Fl_Text_Buffer.text">text</A></H4>
@ -107,257 +106,159 @@ excellent NEdit text editor engine - see
</UL>
<H4><A NAME="Fl_Text_Buffer.Fl_Text_Buffer">Fl_Text_Buffer</A></H4>
<H4><A NAME="Fl_Text_Buffer.Fl_Text_Buffer">Fl_Text_Buffer(int requestedSize = 0);</A></H4>
<H4><A NAME="Fl_Text_Buffer.~Fl_Text_Buffer">~Fl_Text_Buffer</A></H4>
<H4><A NAME="Fl_Text_Buffer.~Fl_Text_Buffer">~Fl_Text_Buffer();</A></H4>
<H4><A NAME="Fl_Text_Buffer.add_modify_callback">add_modify_callback</A></H4>
<H4><A NAME="Fl_Text_Buffer.add_modify_callback">void add_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg);</A></H4>
<H4><A NAME="Fl_Text_Buffer.append">append</A></H4>
<H4><A NAME="Fl_Text_Buffer.append">void append(const char* text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.appendfile">appendfile</A></H4>
<H4><A NAME="Fl_Text_Buffer.appendfile">int appendfile(const char *file, int buflen = 128*1024);</A></H4>
<H4><A NAME="Fl_Text_Buffer.call_modify_callbacks">call_modify_callbacks</A></H4>
<H4><A NAME="Fl_Text_Buffer.call_modify_callbacks">void call_modify_callbacks();</A></H4>
<H4><A NAME="Fl_Text_Buffer.character">character</A></H4>
<H4><A NAME="Fl_Text_Buffer.character">char character(int pos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.character_width">character_width</A></H4>
<H4><A NAME="Fl_Text_Buffer.character_width">static int character_width(char c, int indent, int tabDist, char nullSubsChar);</A></H4>
<H4><A NAME="Fl_Text_Buffer.clear_rectangular">clear_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.clear_rectangular">void clear_rectangular(int start, int end, int rectStart, int rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.copy">copy</A></H4>
<H4><A NAME="Fl_Text_Buffer.copy">void copy(Fl_Text_Buffer* fromBuf, int fromStart, int fromEnd, int toPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.count_displayed_characters">count_displayed_characters</A></H4>
<H4><A NAME="Fl_Text_Buffer.count_displayed_characters">int count_displayed_characters(int lineStartPos, int targetPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.count_lines">count_lines</A></H4>
<H4><A NAME="Fl_Text_Buffer.count_lines">int count_lines(int startPos, int endPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.expand_character">expand_character</A></H4>
<H4><A NAME="Fl_Text_Buffer.expand_character">int expand_character(int pos, int indent, char *outStr);<BR>
static int expand_character(char c, int indent, char* outStr, int tabDist,
char nullSubsChar);</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchar_backward">findchar_backward</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchar_backward">int findchar_backward(int startPos, char searchChar, int* foundPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchar_forward">findchar_forward</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchar_forward">int findchar_forward(int startPos, char searchChar, int* foundPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchars_backward">findchars_backward</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchars_backward">int findchars_backward(int startPos, const char* searchChars, int* foundPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchars_forward">findchars_forward</A></H4>
<H4><A NAME="Fl_Text_Buffer.findchars_forward">int findchars_forward(int startPos, const char* searchChars, int* foundPos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight">highlight</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight">void highlight(int start, int end);</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_position">highlight_position</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_position">int highlight_position(int* start, int* end, int* isRect, int* rectStart,
int* rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_rectangular">highlight_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_rectangular">void highlight_rectangular(int start, int end, int rectStart, int rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_selection">highlight_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_selection">Fl_Text_Selection* highlight_selection();</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_text">highlight_text</A></H4>
<H4><A NAME="Fl_Text_Buffer.highlight_text">const char* highlight_text();</A></H4>
<H4><A NAME="Fl_Text_Buffer.insert_column">insert_column</A></H4>
<H4><A NAME="Fl_Text_Buffer.insert_column">void insert_column(int column, int startPos, const char* text,
int* charsInserted, int* charsDeleted);</A></H4>
<H4><A NAME="Fl_Text_Buffer.insertfile">insertfile</A></H4>
<H4><A NAME="Fl_Text_Buffer.insertfile">int insertfile(const char *file, int pos, int buflen = 128*1024);</A></H4>
<H4><A NAME="Fl_Text_Buffer.insert">insert</A></H4>
<H4><A NAME="Fl_Text_Buffer.insert">void insert(int pos, const char* text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.length">length</A></H4>
<H4><A NAME="Fl_Text_Buffer.length">int length();</A></H4>
<H4><A NAME="Fl_Text_Buffer.line_end">line_end</A></H4>
<H4><A NAME="Fl_Text_Buffer.line_end">int line_end(int pos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.line_start">line_start</A></H4>
<H4><A NAME="Fl_Text_Buffer.line_start">int line_start(int pos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.line_text">line_text</A></H4>
<H4><A NAME="Fl_Text_Buffer.line_text">const char* line_text(int pos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.loadfile">loadfile</A></H4>
<H4><A NAME="Fl_Text_Buffer.loadfile">int loadfile(const char *file, int buflen = 128*1024);</A></H4>
<H4><A NAME="Fl_Text_Buffer.null_substitution_character">null_substitution_character</A></H4>
<H4><A NAME="Fl_Text_Buffer.null_substitution_character">char null_substitution_character();</A></H4>
<H4><A NAME="Fl_Text_Buffer.outputfile">outputfile</A></H4>
<H4><A NAME="Fl_Text_Buffer.outputfile">int outputfile(const char *file, int start, int end, int buflen = 128*1024);</A></H4>
<H4><A NAME="Fl_Text_Buffer.overlay_rectangular">overlay_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.overlay_rectangular">void overlay_rectangular(int startPos, int rectStart, int rectEnd,
const char* text, int* charsInserted, int* charsDeleted);</A></H4>
<H4><A NAME="Fl_Text_Buffer.primary_selection">primary_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.primary_selection">Fl_Text_Selection* primary_selection();</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_modify_callback">remove_modify_callback</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_modify_callback">void remove_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg);</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_rectangular">remove_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_rectangular">void remove_rectangular(int start, int end, int rectStart, int rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove">remove</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove">void remove(int start, int end);</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_secondary_selection">remove_secondary_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_secondary_selection">void remove_secondary_selection();</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_selection">remove_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.remove_selection">void remove_selection();</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace_rectangular">replace_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace_rectangular">void replace_rectangular(int start, int end, int rectStart, int rectEnd,
const char* text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace">replace</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace">void replace(int start, int end, const char *text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace_secondary_selection">replace_secondary_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace_secondary_selection">void replace_secondary_selection(const char* text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace_selection">replace_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.replace_selection">void replace_selection(const char* text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.rewind_lines">rewind_lines</A></H4>
<H4><A NAME="Fl_Text_Buffer.rewind_lines">int rewind_lines(int startPos, int nLines);</A></H4>
<H4><A NAME="Fl_Text_Buffer.savefile">savefile</A></H4>
<H4><A NAME="Fl_Text_Buffer.savefile">int savefile(const char *file, int buflen = 128*1024);</A></H4>
<H4><A NAME="Fl_Text_Buffer.search_backward">search_backward</A></H4>
<H4><A NAME="Fl_Text_Buffer.search_backward">int search_backward(int startPos, const char* searchString, int* foundPos,
int matchCase = 0);</A></H4>
<H4><A NAME="Fl_Text_Buffer.search_forward">search_forward</A></H4>
<H4><A NAME="Fl_Text_Buffer.search_forward">int search_forward(int startPos, const char* searchString, int* foundPos,
int matchCase = 0);</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_selection_position">secondary_selection_position</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_selection_position">int secondary_selection_position(int* start, int* end, int* isRect,
int* rectStart, int* rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_selection">secondary_selection</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_selection">Fl_Text_Selection* secondary_selection();</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_selection_text">secondary_selection_text</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_selection_text">const char* secondary_selection_text();</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_select_rectangular">secondary_select_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_select_rectangular">void secondary_select_rectangular(int start, int end, int rectStart,
int rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_select">secondary_select</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_select">void secondary_select(int start, int end);</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_unselect">secondary_unselect</A></H4>
<H4><A NAME="Fl_Text_Buffer.secondary_unselect">void secondary_unselect();</A></H4>
<H4><A NAME="Fl_Text_Buffer.selected">selected</A></H4>
<H4><A NAME="Fl_Text_Buffer.selected">int selected();</A></H4>
<H4><A NAME="Fl_Text_Buffer.selection_position">selection_position</A></H4>
<H4><A NAME="Fl_Text_Buffer.selection_position">int selection_position(int* start, int* end);<BR>
int selection_position(int* start, int* end, int* isRect, int* rectStart, int* rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.selection_text">selection_text</A></H4>
<H4><A NAME="Fl_Text_Buffer.selection_text">const char* selection_text();</A></H4>
<H4><A NAME="Fl_Text_Buffer.select_rectangular">select_rectangular</A></H4>
<H4><A NAME="Fl_Text_Buffer.select_rectangular">void select_rectangular(int start, int end, int rectStart, int rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.select">select</A></H4>
<H4><A NAME="Fl_Text_Buffer.select">void select(int start, int end);</A></H4>
<H4><A NAME="Fl_Text_Buffer.skip_displayed_characters">skip_displayed_characters</A></H4>
<H4><A NAME="Fl_Text_Buffer.skip_displayed_characters">int skip_displayed_characters(int lineStartPos, int nChars);</A></H4>
<H4><A NAME="Fl_Text_Buffer.skip_lines">skip_lines</A></H4>
<H4><A NAME="Fl_Text_Buffer.skip_lines">int skip_lines(int startPos, int nLines);</A></H4>
<H4><A NAME="Fl_Text_Buffer.substitute_null_characters">substitute_null_characters</A></H4>
<H4><A NAME="Fl_Text_Buffer.substitute_null_characters">int substitute_null_characters(char* string, int length);</A></H4>
<H4><A NAME="Fl_Text_Buffer.tab_distance">tab_distance</A></H4>
<H4><A NAME="Fl_Text_Buffer.tab_distance">int tab_distance();<BR>
void tab_distance(int tabDist);</A></H4>
<H4><A NAME="Fl_Text_Buffer.tab_distance">tab_distance</A></H4>
<H4><A NAME="Fl_Text_Buffer.text_in_rectangle">const char* text_in_rectangle(int start, int end, int rectStart, int rectEnd);</A></H4>
<H4><A NAME="Fl_Text_Buffer.text_in_rectangle">text_in_rectangle</A></H4>
<H4><A NAME="Fl_Text_Buffer.text_range">const char* text_range(int start, int end);</A></H4>
<H4><A NAME="Fl_Text_Buffer.text_range">text_range</A></H4>
<H4><A NAME="Fl_Text_Buffer.text">const char* text();<BR>
void text(const char* text);</A></H4>
<H4><A NAME="Fl_Text_Buffer.text">text</A></H4>
<H4><A NAME="Fl_Text_Buffer.unhighlight">void unhighlight();</A></H4>
<H4><A NAME="Fl_Text_Buffer.unhighlight">unhighlight</A></H4>
<H4><A NAME="Fl_Text_Buffer.unselect">void unselect();</A></H4>
<H4><A NAME="Fl_Text_Buffer.unselect">unselect</A></H4>
<H4><A NAME="Fl_Text_Buffer.unsubstitute_null_characters">void unsubstitute_null_characters(char* string);</A></H4>
<H4><A NAME="Fl_Text_Buffer.unsubstitute_null_characters">unsubstitute_null_characters</A></H4>
<H4><A NAME="Fl_Text_Buffer.word_end">int word_end(int pos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.word_end">word_end</A></H4>
<H4><A NAME="Fl_Text_Buffer.word_start">int word_start(int pos);</A></H4>
<H4><A NAME="Fl_Text_Buffer.word_start">word_start</A></H4>
Fl_Text_Buffer(int requestedSize = 0);
~Fl_Text_Buffer();
int length() { return mLength; }
const char* text();
void text(const char* text);
const char* text_range(int start, int end);
char character(int pos);
const char* text_in_rectangle(int start, int end, int rectStart, int rectEnd);
void insert(int pos, const char* text);
void append(const char* text) { insert(length(), text); }
void remove(int start, int end);
void replace(int start, int end, const char *text);
void copy(Fl_Text_Buffer* fromBuf, int fromStart, int fromEnd, int toPos);
int insertfile(const char *file, int pos, int buflen = 128*1024);
int appendfile(const char *file, int buflen = 128*1024)
{ return insertfile(file, length(), buflen); }
int loadfile(const char *file, int buflen = 128*1024)
{ select(0, length()); remove_selection(); return appendfile(file, buflen); }
int outputfile(const char *file, int start, int end, int buflen = 128*1024);
int savefile(const char *file, int buflen = 128*1024)
{ return outputfile(file, 0, length(), buflen); }
void insert_column(int column, int startPos, const char* text,
int* charsInserted, int* charsDeleted);
void replace_rectangular(int start, int end, int rectStart, int rectEnd,
const char* text);
void overlay_rectangular(int startPos, int rectStart, int rectEnd,
const char* text, int* charsInserted,
int* charsDeleted);
void remove_rectangular(int start, int end, int rectStart, int rectEnd);
void clear_rectangular(int start, int end, int rectStart, int rectEnd);
int tab_distance() { return mTabDist; }
void tab_distance(int tabDist);
void select(int start, int end);
int selected() { return mPrimary.selected(); }
void unselect();
void select_rectangular(int start, int end, int rectStart, int rectEnd);
int selection_position(int* start, int* end);
int selection_position(int* start, int* end, int* isRect, int* rectStart,
int* rectEnd);
const char* selection_text();
void remove_selection();
void replace_selection(const char* text);
void secondary_select(int start, int end);
void secondary_unselect();
void secondary_select_rectangular(int start, int end, int rectStart,
int rectEnd);
int secondary_selection_position(int* start, int* end, int* isRect,
int* rectStart, int* rectEnd);
const char* secondary_selection_text();
void remove_secondary_selection();
void replace_secondary_selection(const char* text);
void highlight(int start, int end);
void unhighlight();
void highlight_rectangular(int start, int end, int rectStart, int rectEnd);
int highlight_position(int* start, int* end, int* isRect, int* rectStart,
int* rectEnd);
const char* highlight_text();
void add_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg);
void remove_modify_callback(Fl_Text_Modify_Cb bufModifiedCB, void* cbArg);
void call_modify_callbacks() { call_modify_callbacks(0, 0, 0, 0, 0); }
const char* line_text(int pos);
int line_start(int pos);
int line_end(int pos);
int word_start(int pos);
int word_end(int pos);
int expand_character(int pos, int indent, char *outStr);
static int expand_character(char c, int indent, char* outStr, int tabDist,
char nullSubsChar);
static int character_width(char c, int indent, int tabDist, char nullSubsChar);
int count_displayed_characters(int lineStartPos, int targetPos);
int skip_displayed_characters(int lineStartPos, int nChars);
int count_lines(int startPos, int endPos);
int skip_lines(int startPos, int nLines);
int rewind_lines(int startPos, int nLines);
int findchar_forward(int startPos, char searchChar, int* foundPos);
int findchar_backward(int startPos, char searchChar, int* foundPos);
int findchars_forward(int startPos, const char* searchChars, int* foundPos);
int findchars_backward(int startPos, const char* searchChars, int* foundPos);
int search_forward(int startPos, const char* searchString, int* foundPos,
int matchCase = 0);
int search_backward(int startPos, const char* searchString, int* foundPos,
int matchCase = 0);
int substitute_null_characters(char* string, int length);
void unsubstitute_null_characters(char* string);
char null_substitution_character() { return mNullSubsChar; }
Fl_Text_Selection* primary_selection() { return &mPrimary; }
Fl_Text_Selection* secondary_selection() { return &mSecondary; }
Fl_Text_Selection* highlight_selection() { return &mHighlight; }
</BODY>
</HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Input>class Fl_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Input>class Fl_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Tile>class Fl_Tile</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Timer>class Fl_Timer</A></H2>
<HR>
<H3>Class Hierarchy</H3>
@ -55,4 +55,4 @@ initial <TT>value()</TT>.
Gets or sets whether the timer is suspended.
<H4><A name=Fl_Timer.value>float value() const
<BR> void value(float)</A></H4>
Gets or sets the current timer value. </BODY></HTML>
Gets or sets the current timer value. </BODY></HTML>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Valuator>class Fl_Valuator</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Value_Input>class Fl_Value_Input</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Value_Output>class Fl_Value_Output</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Value_Slider>class Fl_Value_Slider</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Widget>class Fl_Widget</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
<HTML><BODY>
<HR break>
<!-- NEW PAGE -->
<H2><A name=Fl_Window>class Fl_Window</A></H2>
<HR>
<H3>Class Hierarchy</H3>

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl.cxx,v 1.24.2.41.2.8 2001/11/27 17:44:06 easysw Exp $"
// "$Id: Fl.cxx,v 1.24.2.41.2.9 2001/11/28 18:00:17 easysw Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@ -41,6 +41,7 @@ Fl_Widget *Fl::belowmouse_,
*Fl::focus_,
*Fl::selection_owner_;
int Fl::damage_,
Fl::e_number,
Fl::e_x,
Fl::e_y,
Fl::e_x_root,
@ -56,6 +57,16 @@ int Fl::e_length;
int Fl::visible_focus_ = 1;
//
// 'Fl::version()' - Return the API version number...
//
double
Fl::version() {
return FL_VERSION;
}
//
// 'Fl:event_inside()' - Return whether or not the mouse event is inside
// the given rectangle.
@ -506,6 +517,8 @@ int Fl::handle(int event, Fl_Window* window)
{
Fl_Widget* w = window;
e_number = event;
switch (event) {
case FL_CLOSE:
@ -536,7 +549,7 @@ int Fl::handle(int event, Fl_Window* window)
fl_xmousewin = window; // this should already be set, but just in case.
if (pushed()) {
w = pushed();
event = FL_DRAG;
e_number = event = FL_DRAG;
} else if (modal() && w != modal()) {
w = 0;
}
@ -577,7 +590,7 @@ int Fl::handle(int event, Fl_Window* window)
{char* c = (char*)event_text(); // cast away const
if (!isalpha(*c)) return 0;
*c = isupper(*c) ? tolower(*c) : toupper(*c);}
event = FL_SHORTCUT;
e_number = event = FL_SHORTCUT;
case FL_SHORTCUT:
Fl_Tooltip::enter((Fl_Widget*)0);
@ -821,5 +834,5 @@ void Fl_Window::flush() {
}
//
// End of "$Id: Fl.cxx,v 1.24.2.41.2.8 2001/11/27 17:44:06 easysw Exp $".
// End of "$Id: Fl.cxx,v 1.24.2.41.2.9 2001/11/28 18:00:17 easysw Exp $".
//