diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2004-11-23 19:47:52 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2004-11-23 19:47:52 +0000 |
| commit | a42ded75e297cedfcb448537e77d13350df0fe92 (patch) | |
| tree | 3940e35fff5db18195b113bcb5055f7c5d0577a7 /documentation/Fl_Widget.html | |
| parent | 5cc0f07c8a18841ba32ec5b3a12737c9f7d13cc2 (diff) | |
Added the 2.0 Fl_Widget::copy_label() method to allow FLTK 1.x
applications to have their label strings managed by FLTK (STR
#630)
Added Fl::delete_widget() method to safely delete widgets in
callback methods (STR #629)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3917 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/Fl_Widget.html')
| -rw-r--r-- | documentation/Fl_Widget.html | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/documentation/Fl_Widget.html b/documentation/Fl_Widget.html index f7e0e09e5..179693959 100644 --- a/documentation/Fl_Widget.html +++ b/documentation/Fl_Widget.html @@ -53,6 +53,7 @@ to call <TT>redraw()</TT> after these. </P> <UL> <LI><A href=#Fl_Widget.color>color</A></LI> <LI><A href=#Fl_Widget.contains>contains</A></LI> +<LI><A href=#Fl_Widget.copy_label>copy_label</A></LI> <LI><A href=#Fl_Widget.damage>damage</A></LI> <LI><A href=#Fl_Widget.deactivate>deactivate</A></LI> <LI><A href=#Fl_Widget.default_callback>default_callback</A></LI> @@ -64,10 +65,10 @@ to call <TT>redraw()</TT> after these. </P> <LI><A href=#Fl_Widget.image>image</A></LI> <LI><A href=#Fl_Widget.inside>inside</A></LI> <LI><A href=#Fl_Widget.label>label</A></LI> -<LI><A href=#Fl_Widget.labelcolor>labelcolor</A></LI> </UL> </TD><TD align=left valign=top> <UL> +<LI><A href=#Fl_Widget.labelcolor>labelcolor</A></LI> <LI><A href=#Fl_Widget.labelfont>labelfont</A></LI> <LI><A href=#Fl_Widget.labelsize>labelsize</A></LI> <LI><A href=#Fl_Widget.labeltype>labeltype</A></LI> @@ -258,6 +259,14 @@ method for more information. equal to this widget. Returns 0 if <TT>b</TT> is <TT>NULL</TT>. +<H4><A name='Fl_Widget.copy_label'>void Fl_Widget::copy_label(const char*)</A></H4> + +<P>Sets the current label. Unlike <a +href='#Fl_Widget.label'><tt>label()</tt></a>, this method +allocates a copy of the label string instead of using the +original string pointer.</p> + + <H4><A name=Fl_Widget.damage>uchar Fl_Widget::damage() const<BR> void damage(uchar c);<BR> void damage(uchar c, int X, int Y, int W, int H);</A></H4> @@ -329,7 +338,10 @@ equal to <TT>a</TT>. Returns 0 if <TT>a</TT> is <TT>NULL</TT>. somewhere on or next to the widget. The passed pointer is stored unchanged in the widget (the string is <I>not</I> copied), so if you need to set the label to a formatted value, make sure the -buffer is <TT>static</TT>, global, or allocated. +buffer is <TT>static</TT>, global, or allocated. The <a +href='#Fl_Widget.copy_label'><tt>copy_label()</tt></a> method +can be used to make a copy of the label string +automatically.</p> <H4><A name=Fl_Widget.labelcolor>Fl_Color Fl_Widget::labelcolor() const |
