From 6168f6fd4bb274af63f1fb91df18f448846e1646 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Fri, 26 Feb 2010 17:49:19 +0000 Subject: doc mods to support fl_eventnames[]. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/names.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'FL') diff --git a/FL/names.h b/FL/names.h index 1c3cca4b0..a58e0c1c5 100644 --- a/FL/names.h +++ b/FL/names.h @@ -42,10 +42,9 @@ \b Example: \code #include // array will be defined here - // MyWidget's event handler - int MyWidget::handle(int e) { + int MyClass::handle(int e) { printf("Event was %s (%d)\n", fl_eventnames[e], e); - /* ..resulting output might be e.g. "Event was FL_PUSH (1)".. */ + // ..resulting output might be e.g. "Event was FL_PUSH (1)".. [..] } \endcode @@ -86,11 +85,11 @@ const char * const fl_eventnames[] = \b Example: \code #include // array will be defined here - int MyWidget::my_callback(Fl_Widget *w, void*) { + int MyClass::my_callback(Fl_Widget *w, void*) { int fnum = w->labelfont(); // Resulting output might be e.g. "Label's font is FL_HELVETICA (0)" printf("Label's font is %s (%d)\n", fl_fontnames[fnum], fnum); - /* ..resulting output might be e.g. "Label's font is FL_HELVETICA (0)".. */ + // ..resulting output might be e.g. "Label's font is FL_HELVETICA (0)".. [..] } \endcode -- cgit v1.2.3