diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-29 14:16:03 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-29 14:16:03 +0000 |
| commit | 9e3f8a1db6028935ea640c00e15674e1a7456530 (patch) | |
| tree | 0c1668d067bdffd31de57d04c1a0d828a0572c17 /documentation/common.html | |
| parent | 39cb1f8daf0823668197a03d014f6328b0c7b7ba (diff) | |
Documentation fixes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5533 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/common.html')
| -rw-r--r-- | documentation/common.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/documentation/common.html b/documentation/common.html index 421ea723c..a759bd5ff 100644 --- a/documentation/common.html +++ b/documentation/common.html @@ -1,4 +1,7 @@ <HTML> +<HEAD> + <TITLE>3 - Common Widgets and Attributes</TITLE> +</HEAD> <BODY> <H1 ALIGN="RIGHT"><A NAME="common">3 - Common Widgets and Attributes</A></H1> @@ -608,15 +611,15 @@ button->when(FL_WHEN_CHANGED | FL_WHEN_NOT_CHANGED); pointer to the instance of your class.</P> <PRE> -class foo { - void my_callback(Widget *); - static void my_static_callback(Widget *w, foo *f) { f->my_callback(w); } +class Foo { + void my_callback(Fl_Widget *w); + static void my_static_callback(Fl_Widget *w, void *f) { ((Foo *)f)->my_callback(w); } ... } ... -w->callback(my_static_callback, this); +w->callback(my_static_callback, (void *)this); </PRE> </TD> </TR> |
