From b558eaac17f48096ef48846894dc3c5a7c193c23 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 24 May 2018 13:08:55 +0000 Subject: 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 --- src/Fl_Copy_Surface.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx index 21ad19d40..5d46e61d6 100644 --- a/src/Fl_Copy_Surface.cxx +++ b/src/Fl_Copy_Surface.cxx @@ -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);} -- cgit v1.2.3