diff options
| author | Manolo Gouy <Manolo> | 2017-06-17 06:53:44 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-06-17 06:53:44 +0000 |
| commit | 2cda5a4fa682372f294a7a8e9e2b90a9fdb15610 (patch) | |
| tree | 4040f478267a4ff808c4eaf8ee1aa92014e6465c /FL | |
| parent | ea56e744afd2029da309bbf33f33a5e505610306 (diff) | |
Make Fl_Screen_Driver::get_mouse(int&, int&) return the number of the mouse-containing screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12264 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Screen_Driver.H | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H index f1e33ebaf..9d016043d 100644 --- a/FL/Fl_Screen_Driver.H +++ b/FL/Fl_Screen_Driver.H @@ -76,16 +76,14 @@ public: virtual int w() = 0; virtual int h() = 0; virtual int screen_count(); - virtual void screen_xywh(int &X, int &Y, int &W, int &H); - virtual void screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my); + void screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my); virtual void screen_xywh(int &X, int &Y, int &W, int &H, int n) = 0; - virtual void screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my, int mw, int mh); + void screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my, int mw, int mh); virtual int screen_num(int x, int y); virtual int screen_num(int x, int y, int w, int h); virtual void screen_dpi(float &h, float &v, int n=0) = 0; - virtual void screen_work_area(int &X, int &Y, int &W, int &H, int mx, int my); + void screen_work_area(int &X, int &Y, int &W, int &H, int mx, int my); virtual void screen_work_area(int &X, int &Y, int &W, int &H, int n) = 0; - virtual void screen_work_area(int &X, int &Y, int &W, int &H); // --- audible output virtual void beep(int type) = 0; // --- global events @@ -151,7 +149,7 @@ public: // 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) {} + virtual int get_mouse(int &x, int &y) {return 0;} // optional methods to enable/disable input methods for complex scripts virtual void enable_im() {} virtual void disable_im() {} |
