Document the constructor and destructor of class Fl_Copy_Surface.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12932 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-05-24 13:08:55 +00:00
parent 8a4f6905a5
commit b558eaac17

View File

@ -28,12 +28,14 @@ Fl_Copy_Surface_Driver *Fl_Copy_Surface_Driver::newCopySurfaceDriver(int w, int
#endif
/** the constructor */
/** the constructor
\param w, h Width and height of the drawing surface in FLTK units */
Fl_Copy_Surface::Fl_Copy_Surface(int w, int h) : Fl_Widget_Surface(NULL) {
platform_surface = Fl_Copy_Surface_Driver::newCopySurfaceDriver(w, h);
if (platform_surface) driver(platform_surface->driver());
}
/** the destructor */
Fl_Copy_Surface::~Fl_Copy_Surface() { delete platform_surface; }
void Fl_Copy_Surface::origin(int x, int y) {platform_surface->origin(x, y);}