From ac1932eaa7630d8dbe07846f027986f77afa6b5a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 11 Mar 2016 00:19:27 +0000 Subject: (incomplete) Add files required to compile for Android via Pico driver. Don't get your hopes up just yet: this code does compile, but it doesn't fully link yet. If you like to test this, install the Android SDK and NDK, set the usual environment variables, then change into the "Android" direktory and run "mk". It will currently fail at the linker stage. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/PicoAndroid/Fl_PicoAndroid_Copy_Surface.H | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/drivers/PicoAndroid/Fl_PicoAndroid_Copy_Surface.H (limited to 'src/drivers/PicoAndroid/Fl_PicoAndroid_Copy_Surface.H') diff --git a/src/drivers/PicoAndroid/Fl_PicoAndroid_Copy_Surface.H b/src/drivers/PicoAndroid/Fl_PicoAndroid_Copy_Surface.H new file mode 100644 index 000000000..ea31c3771 --- /dev/null +++ b/src/drivers/PicoAndroid/Fl_PicoAndroid_Copy_Surface.H @@ -0,0 +1,15 @@ + +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), 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;} +}; -- cgit v1.2.3