Add Doxygen definitions to the new Fl_XXX_Driver classes.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11681 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2016-04-23 06:27:31 +00:00
parent c393fb4faf
commit e2edfcbe4f
6 changed files with 36 additions and 4 deletions

View File

@ -66,6 +66,11 @@ public:
}; };
/** A base class describing the interface between FLTK and draw-to-clipboard operations.
This class is only for internal use by the FLTK library.
A supported platform should implement the virtual methods of this class
in order to support drawing to the clipboard through class Fl_Copy_Surface.
*/
class Fl_Copy_Surface_Driver : public Fl_Widget_Surface { class Fl_Copy_Surface_Driver : public Fl_Widget_Surface {
friend class Fl_Copy_Surface; friend class Fl_Copy_Surface;
protected: protected:

View File

@ -33,10 +33,9 @@
draw widgets (using Fl_Image_Surface::draw()) or to use any of the draw widgets (using Fl_Image_Surface::draw()) or to use any of the
\ref fl_drawings or the \ref fl_attributes. Finally, call image() on the object \ref fl_drawings or the \ref fl_attributes. Finally, call image() on the object
to obtain a newly allocated Fl_RGB_Image object. to obtain a newly allocated Fl_RGB_Image object.
Fl_GL_Window objects can be drawn in the image as well. Fl_GL_Window objects can be drawn in the image as well.
\example Usage example:
\code \code
// this is the widget that you want to draw into an image // this is the widget that you want to draw into an image
Fl_Widget *g = ...; Fl_Widget *g = ...;
@ -89,6 +88,11 @@ public:
}; };
/** A base class describing the interface between FLTK and draw-to-image operations.
This class is only for internal use by the FLTK library.
A supported platform should implement the virtual methods of this class
in order to support drawing to an Fl_RGB_Image through class Fl_Image_Surface.
*/
class Fl_Image_Surface_Driver : public Fl_Widget_Surface { class Fl_Image_Surface_Driver : public Fl_Widget_Surface {
friend class Fl_Image_Surface; friend class Fl_Image_Surface;
protected: protected:

View File

@ -167,7 +167,12 @@ public:
int show() ; int show() ;
}; };
/** Represents the interface between FLTK and a native file chooser.
This class is only for internal use by the FLTK library.
A platform that wants to provide a native file chooser implements all virtual methods
of this class. Each platform supported by FLTK must also implement the constructor of the
Fl_Native_File_Chooser class.
*/
class Fl_Native_File_Chooser_Driver { class Fl_Native_File_Chooser_Driver {
protected: protected:
static void chrcat(char *s, char c); static void chrcat(char *s, char c);
@ -199,6 +204,17 @@ public:
virtual int show() {return 1;} virtual int show() {return 1;}
}; };
/** A cross-platform implementation of Fl_Native_File_Chooser_Driver.
This implementation uses a Fl_File_Chooser object as file chooser.
Any platform can support the Fl_Native_File_Chooser class by implementing
its constructor as follows:
\code
Fl_Native_File_Chooser::Fl_Native_File_Chooser(int type) {
platform_fnfc = new Fl_Native_File_Chooser_FLTK_Driver(type);
}
\endcode
*/
class Fl_Native_File_Chooser_FLTK_Driver : public Fl_Native_File_Chooser_Driver { class Fl_Native_File_Chooser_FLTK_Driver : public Fl_Native_File_Chooser_Driver {
private: private:
void errmsg(const char *msg); void errmsg(const char *msg);

View File

@ -41,7 +41,10 @@ class Fl_RGB_Image;
class Fl_Group; class Fl_Group;
class Fl_Input; class Fl_Input;
/** A base class describing the interface between FLTK and screen-related operations.
This class is only for internal use by the FLTK library.
Each supported platform implements several of the virtual methods of this class.
*/
class FL_EXPORT Fl_Screen_Driver { class FL_EXPORT Fl_Screen_Driver {
protected: protected:

View File

@ -40,6 +40,8 @@ class Fl_Widget;
/** /**
\brief A base class for platform-specific system operations. \brief A base class for platform-specific system operations.
This class is only for internal use by the FLTK library.
Each supported platform implements several of the virtual methods of this class.
*/ */
class FL_EXPORT Fl_System_Driver { class FL_EXPORT Fl_System_Driver {
friend class Fl; friend class Fl;

View File

@ -37,6 +37,8 @@ class Fl_RGB_Image;
/** /**
\brief A base class for platform specific window handling code. \brief A base class for platform specific window handling code.
This class is only for internal use by the FLTK library.
Each supported platform implements several of the virtual methods of this class.
*/ */
class FL_EXPORT Fl_Window_Driver class FL_EXPORT Fl_Window_Driver
{ {