From b5e2d38b2fbabcf37637cd857fc70d8567978b17 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 16 Mar 2010 14:47:40 +0000 Subject: Have class Fl_Sys_Menu_Bar and function fl_mac_set_about appear in Doxygen doc. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7276 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/mac.H | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'FL/mac.H') diff --git a/FL/mac.H b/FL/mac.H index 05366c23a..6b204db2c 100644 --- a/FL/mac.H +++ b/FL/mac.H @@ -161,7 +161,6 @@ extern void MacUnmapWindow(Fl_Window*,void *); extern WindowRef MACwindowRef(Fl_Window *w); extern Fl_Region MacRectRegionIntersect(Fl_Region current, int x,int y,int w, int h); extern void MacCollapseWindow(Window w); -extern void fl_mac_set_about( Fl_Callback *cb, void *user_data, int shortcut = 0); #else extern void MacDestroyWindow(Fl_Window*,WindowPtr); extern void MacMapWindow(Fl_Window*,WindowPtr); @@ -169,7 +168,6 @@ extern void MacUnmapWindow(Fl_Window*,WindowPtr); #endif extern int MacUnlinkWindow(Fl_X*,Fl_X*start=0L); -extern void fl_open_callback(void (*cb)(const char *)); inline Window fl_xid(const Fl_Window*w) { @@ -205,6 +203,24 @@ extern void fl_open_callback(void (*cb)(const char *)); extern FL_EXPORT int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b); #endif // FL_DOXYGEN + +#if defined(__APPLE_COCOA__) || defined(FL_DOXYGEN) +/** \defgroup group_macosx Mac OS X-specific functions + @{ */ + +/** + * \brief Mac OS X: attaches a callback to the "About myprog" item of the system application menu. + * \note #include + * + * \param cb a callback that will be called by "About myprog" menu item + * with NULL 1st argument. + * \param user_data a pointer transmitted as 2nd argument to the callback. + * \param shortcut optional shortcut to attach to the "About myprog" menu item (e.g., FL_META+'a') + */ +extern void fl_mac_set_about( Fl_Callback *cb, void *user_data, int shortcut = 0); +/** @} */ +#endif + // // End of "$Id$". // -- cgit v1.2.3