From a9fd08ff5ab8bbf3838200ceace671a72627d212 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 23 Jun 2018 16:47:40 +0000 Subject: Doxygen: created Group to document drivers, disabled by default Uncomment `ENABLED_SECTIONS += DriverDev` in documentation/Doxyfile.in to enable driver documentation. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12968 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx | 13 ++++++++++++- src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H | 11 +++++++++++ src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx | 12 ++++++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) (limited to 'src/drivers/Cocoa') diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx index b69e041e5..857057f70 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx @@ -36,7 +36,13 @@ extern void (*fl_unlock_function)(); int Fl_Cocoa_Screen_Driver::next_marked_length = 0; -/* +/** + * @cond DriverDev + * @addtogroup DriverDeveloper + * @{ + */ + +/** Creates a driver that manages all screen and display related calls. This function must be implemented once for every platform. @@ -46,6 +52,11 @@ Fl_Screen_Driver *Fl_Screen_Driver::newScreenDriver() return new Fl_Cocoa_Screen_Driver(); } +/** + * @} + * @endcond + */ + static Fl_Text_Editor::Key_Binding extra_bindings[] = { // Define CMD+key accelerators... { 'z', FL_COMMAND, Fl_Text_Editor::kf_undo ,0}, diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H index d7162eff9..2f851c500 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H @@ -40,6 +40,12 @@ class NSCursor; class FLWindow; #endif // __OBJC__ +/** + * @cond DriverDev + * @addtogroup DriverDeveloper + * @{ + */ + /* Move everything here that manages the native window interface. @@ -60,6 +66,11 @@ struct Fl_Window_Driver::shape_data_type { CGImageRef mask; }; +/** + * @} + * @endcond + */ + class FL_EXPORT Fl_Cocoa_Window_Driver : public Fl_Window_Driver { diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx index d565ae20c..b9dcfcd99 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.cxx @@ -27,11 +27,23 @@ #include #include +/** + * @cond DriverDev + * @addtogroup DriverDeveloper + * @{ + */ + Fl_Window_Driver *Fl_Window_Driver::newWindowDriver(Fl_Window *w) { return new Fl_Cocoa_Window_Driver(w); } +/** + * @} + * @endcond + */ + + Fl_Cocoa_Window_Driver::Fl_Cocoa_Window_Driver(Fl_Window *win) : Fl_Window_Driver(win) -- cgit v1.2.3