diff options
| author | Manolo Gouy <Manolo> | 2016-04-15 14:18:37 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-04-15 14:18:37 +0000 |
| commit | 7508a033c508bb05b315bcb701941f35f8f9a764 (patch) | |
| tree | 25b23a94fabe9b0bbfac058f2a19107c6a5b56f1 /FL | |
| parent | 3f64e2b28d3556a1ea316fe6ae73eabf454f1fa8 (diff) | |
Continue moving to Fl_System_Driver the platform_dependent implementations of member functions of the Fl class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11614 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl.H | 2 | ||||
| -rw-r--r-- | FL/Fl_Screen_Driver.H | 2 | ||||
| -rw-r--r-- | FL/Fl_System_Driver.H | 4 | ||||
| -rw-r--r-- | FL/mac.H | 1 |
4 files changed, 7 insertions, 2 deletions
@@ -663,7 +663,7 @@ int main() { position your first window). If the display is not open, this will open it. */ - static void get_mouse(int &,int &); // platform dependent + static void get_mouse(int &,int &); /** Returns non zero if we had a double click event. \retval Non-zero if the most recent FL_PUSH or FL_KEYBOARD was a "double click". diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H index 22eda6095..f1bee4bc9 100644 --- a/FL/Fl_Screen_Driver.H +++ b/FL/Fl_Screen_Driver.H @@ -133,6 +133,8 @@ public: // optional platform-specific key handling for Fl_Input widget // the default implementation may be enough virtual int input_widget_handle_key(int key, unsigned mods, unsigned shift, Fl_Input *input); + // implement to support Fl::get_mouse() + virtual void get_mouse(int &x, int &y) {} }; diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 028802c58..0c1ff5b90 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -122,6 +122,8 @@ public: virtual int filename_isdir_quick(const char* n); // the default implementation of filename_ext() is in src/filename_ext.cxx and may be enough virtual const char *filename_ext(const char *buf); + // implement to support fl_filename_name() + virtual const char *filename_name(const char *buf) {return buf;} // whether a platform uses additional code in Fl_Menu::handle(int e) virtual int need_menu_handle_part2() {return 0;} // whether a platform uses additional code in Fl_Menu::handle_part1(int e) @@ -191,6 +193,8 @@ public: static const char * const tree_close_xpm[]; // used by tree_closepixmap() // the default implementation of tree_connector_style() is in Fl_Tree_Prefs.cxx and can be enough virtual int tree_connector_style(); + //implement to support copy-to-clipboard + virtual void copy(const char *stuff, int len, int clipboard, const char *type) {} }; #endif // FL_SYSTEM_DRIVER_H @@ -165,7 +165,6 @@ public: int set_cursor(const Fl_RGB_Image*, int, int); static CGImageRef CGImage_from_window_rect(Fl_Window *win, int x, int y, int w, int h); static unsigned char *bitmap_from_window_rect(Fl_Window *win, int x, int y, int w, int h, int *bytesPerPixel); - static void clip_to_rounded_corners(CGContextRef gc, int w, int h); private: CGRect* subRect_; // makes sure subwindow remains inside its parent window // stores 3 binary flags: whether window is mapped to retina display; whether resolution just changed; |
