summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-02-26 17:45:13 +0000
committerManolo Gouy <Manolo>2016-02-26 17:45:13 +0000
commit169e422fee79f0f17d4ad2feb4302343ab07073e (patch)
tree9d637b0a6c8c63bcd3b056b371ae7159802e289c
parentc9eba2c3b59486b6b8846cf6b53e36cb7722e810 (diff)
Make the Fl_Widget_Surface's constructor protected.
Because this object is not functional in itself, but needs to be subclassed. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11235 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--FL/Fl_Widget_Surface.H2
-rw-r--r--src/Fl_Widget_Surface.cxx7
2 files changed, 6 insertions, 3 deletions
diff --git a/FL/Fl_Widget_Surface.H b/FL/Fl_Widget_Surface.H
index c123db560..6f2df9b1c 100644
--- a/FL/Fl_Widget_Surface.H
+++ b/FL/Fl_Widget_Surface.H
@@ -32,8 +32,8 @@ protected:
int x_offset;
/** \brief vertical offset to the origin of graphics coordinates */
int y_offset;
-public:
Fl_Widget_Surface(Fl_Graphics_Driver *d);
+public:
/**
Translates the current graphics origin accounting for the current rotation.
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx
index f99a333fb..dc1fa7d5f 100644
--- a/src/Fl_Widget_Surface.cxx
+++ b/src/Fl_Widget_Surface.cxx
@@ -22,15 +22,18 @@
#include <FL/Fl_Shared_Image.H>
+/** The constructor.
+ \param d can be nul.
+ */
Fl_Widget_Surface::Fl_Widget_Surface(Fl_Graphics_Driver *d) : Fl_Surface_Device(d) {
x_offset = 0;
y_offset = 0;
}
/**
- @brief Draws the widget on the printed page.
+ @brief Draws the widget on the drawing surface.
*
- The widget's position on the printed page is determined by the last call to origin()
+ The widget's position on the surface is determined by the last call to origin()
and by the optional delta_x and delta_y arguments.
Its dimensions are in points unless there was a previous call to scale().
@param[in] widget Any FLTK widget (e.g., standard, custom, window).