summaryrefslogtreecommitdiff
path: root/src/Fl_Copy_Surface.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-05-24 13:08:55 +0000
committerManolo Gouy <Manolo>2018-05-24 13:08:55 +0000
commitb558eaac17f48096ef48846894dc3c5a7c193c23 (patch)
tree8e48667b4cb52597bcb89f3cf97ca17e26bc5917 /src/Fl_Copy_Surface.cxx
parent8a4f6905a58176a88ef84ae472e50b0296f4ee8c (diff)
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
Diffstat (limited to 'src/Fl_Copy_Surface.cxx')
-rw-r--r--src/Fl_Copy_Surface.cxx4
1 files changed, 3 insertions, 1 deletions
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);}