diff options
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/Fl_Browser.html | 7 | ||||
| -rw-r--r-- | documentation/Fl_Input_.html | 7 | ||||
| -rw-r--r-- | documentation/Fl_Preferences.html | 2 | ||||
| -rw-r--r-- | documentation/osissues.html | 20 |
4 files changed, 31 insertions, 5 deletions
diff --git a/documentation/Fl_Browser.html b/documentation/Fl_Browser.html index bf439dfce..8db61d937 100644 --- a/documentation/Fl_Browser.html +++ b/documentation/Fl_Browser.html @@ -81,8 +81,13 @@ subclass of <TT>Fl_Browser_</TT>. </P> </TD><TD align=left valign=top> <UL> <LI><A href=#Fl_Browser.size>size</A></LI> +<LI><A href=#Fl_Browser.swap>swap</A></LI> <LI><A href=#Fl_Browser.text>text</A></LI> <LI><A href=#Fl_Browser.topline>topline</A></LI> +</UL> +</TD> +<TD align=left valign=top> +<UL> <LI><A href=#Fl_Browser.visible>visible</A></LI> </UL> </TD></TR> @@ -192,6 +197,8 @@ will always return 0. <H4><A name=Fl_Browser.size>int Fl_Browser::size() const</A></H4> Returns how many lines are in the browser. The last line number is equal to this. +<H4><A name=Fl_Browser.swap>void Fl_Browser::swap(int a, int b)</A></H4> +Swaps two lines in the browser. <H4><A name=Fl_Browser.text>const char *Fl_Browser::text(int n) const <BR> void Fl_Browser::text(int n, const char *)</A></H4> The first form returns the text for line <TT>n</TT>. If <TT>n</TT> is diff --git a/documentation/Fl_Input_.html b/documentation/Fl_Input_.html index 5123405f3..b6b4ef307 100644 --- a/documentation/Fl_Input_.html +++ b/documentation/Fl_Input_.html @@ -120,13 +120,14 @@ const</A></H4> 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 +<H4><A name="Fl_Input_.handletext">int Fl_Input_::handletext(int e,int,int,int,int)</A></H4> <P>Default handler for all event types. Your <TT>handle()</TT> method should call this for all events that it does not handle -completely. You must pass it the same bounding box as passed to -<TT>draw()</TT>. Handles <TT>FL_PUSH</TT>, <TT>FL_DRAG</TT>, +completely. You must pass it the same bounding box as you do +when calling <TT>drawtext()</TT> from your <tt>draw()</tt> +method. Handles <TT>FL_PUSH</TT>, <TT>FL_DRAG</TT>, <TT>FL_RELEASE</TT> to select text, handles <TT>FL_FOCUS</TT> and <TT>FL_UNFOCUS</TT> to show and hide the cursor. diff --git a/documentation/Fl_Preferences.html b/documentation/Fl_Preferences.html index b5ce6a4b0..fc5c723d4 100644 --- a/documentation/Fl_Preferences.html +++ b/documentation/Fl_Preferences.html @@ -128,7 +128,7 @@ entry names. The index must be within the range given by the base preference group. This function is rarely used as deleting the base preferences flushes automatically. -<H4><a name="Fl_Preferences.getUserdataPath">int Fl_Preferences::getUserdataPath(char *path)</a></H4> +<H4><a name="Fl_Preferences.getUserdataPath">int Fl_Preferences::getUserdataPath(char *path, int path_size)</a></H4> <P>Creates a path that is related to the preferences file and that is usable for application data beyond what is covered by diff --git a/documentation/osissues.html b/documentation/osissues.html index 692a2ac38..a140dc6b8 100644 --- a/documentation/osissues.html +++ b/documentation/osissues.html @@ -340,18 +340,36 @@ is shown using the <TT>Fl_Window::icon()</TT> method. <P>Sets the icon for the window to the passed pointer. You will need to cast the icon <TT>Pixmap</TT> to a <TT>char *</TT> when -calling this method. To set the icon using a bitmap compiled +calling this method. To set a monochrome icon using a bitmap compiled with your application use: <UL><PRE> #include "icon.xbm" +fl_opendisplay(); // needed if display has not been previously opened + Pixmap p = XCreateBitmapFromData(fl_display, DefaultRootWindow(fl_display), icon_bits, icon_width, icon_height); window->icon((char *)p); </PRE></UL> +<P>To use a multi-colored icon, the XPM format and library +should be used as follows: + +<UL><PRE> +#include "icon.xpm" + +fl_opendisplay(); // needed if display has not been previously opened + +Pixmap p, mask; + +XpmCreatePixmapFromData(fl_display, DefaultRootWindow(fl_display), + icon_xpm, &p, &mask, NULL); + +window->icon((char *)p); +</PRE></UL> + <CENTER><TABLE WIDTH="90%" BORDER="1" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#cccccc"> <TR> <TD><B>NOTE:</B> |
