summaryrefslogtreecommitdiff
path: root/src/Fl_Copy_Surface.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-02 12:36:37 +0000
committerManolo Gouy <Manolo>2016-03-02 12:36:37 +0000
commit39fdbecd1656ad10f76fe994824001ef94355ad4 (patch)
tree2ba00bbcbe19f8ad22e0ede38c16c9c259b0895d /src/Fl_Copy_Surface.cxx
parentdf94673b6136b83b517cf360865791006d9311dc (diff)
Finalize new implementation of Fl_Copy_Surface.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11267 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Copy_Surface.cxx')
-rw-r--r--src/Fl_Copy_Surface.cxx17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Fl_Copy_Surface.cxx b/src/Fl_Copy_Surface.cxx
index c3f2886bc..7b7b0fc8b 100644
--- a/src/Fl_Copy_Surface.cxx
+++ b/src/Fl_Copy_Surface.cxx
@@ -28,18 +28,19 @@
#elif defined(FL_PORTING) && !defined(FL_DOXYGEN)
# pragma message "FL_PORTING: implement class Fl_Copy_Surface::Helper for your platform"
-class Fl_Copy_Surface::Helper : public Fl_Widget_Surface { // model
+class Fl_Copy_Surface::Helper : public Fl_Widget_Surface { // class model
friend class Fl_Copy_Surface;
private:
int width;
int height;
- Helper(int w, int h) : Fl_Widget_Surface(NULL) {}
- ~Helper() {}
- void set_current(){}
- void translate(int x, int y) {}
- void untranslate() {}
+ Helper(int w, int h) : Fl_Widget_Surface(NULL), width(w), height(h) {} // to implement
+ ~Helper() {} // to implement
+ void set_current(){} // to implement
+ void translate(int x, int y) {} // to implement
+ void untranslate() {} // to implement
int w() {return width;}
int h() {return height;}
+ int printable_rect(int *w, int *h) {*w = width; *h = height; return 0;}
};
#else
@@ -59,6 +60,8 @@ Fl_Copy_Surface::Fl_Copy_Surface(int w, int h) : Fl_Widget_Surface(NULL) {
Fl_Copy_Surface::~Fl_Copy_Surface() { delete platform_surface; }
+void Fl_Copy_Surface::origin(int x, int y) {platform_surface->origin(x, y);}
+
void Fl_Copy_Surface::origin(int *x, int *y) {platform_surface->origin(x, y);}
void Fl_Copy_Surface::set_current() {platform_surface->set_current();}
@@ -71,6 +74,8 @@ int Fl_Copy_Surface::w() {return platform_surface->w();}
int Fl_Copy_Surface::h() {return platform_surface->h();}
+int Fl_Copy_Surface::printable_rect(int *w, int *h) {return platform_surface->printable_rect(w, h);}
+
//
// End of "$Id$".
//