summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2005-03-31 16:01:24 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2005-03-31 16:01:24 +0000
commitcc593f6b647bb7aa0c283b77dc90527300becbef (patch)
tree4bbbd4dbe9ea5b2f060dad51f318ecfc0b1b0466 /FL
parent81fd6777b28786413ca990f4261f4c6a7813fd6e (diff)
Add Fl::screen_count() and Fl::screen_xywh() APIs to support multi-
screen displays (currently only X11 support with Xinerama) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H12
1 files changed, 11 insertions, 1 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 2ef363588..cde76a4f9 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -20,7 +20,9 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
// USA.
//
-// Please report all bugs and problems to "fltk-bugs@fltk.org".
+// Please report all bugs and problems on the following page:
+//
+// http://www.fltk.org/str.php
//
#ifndef Fl_H
@@ -199,6 +201,14 @@ public:
static int w();
static int h();
+ // multi-head support:
+ static int screen_count();
+ static void screen_xywh(int &x, int &y, int &w, int &h) {
+ screen_xywh(x, y, w, h, e_x_root, e_y_root);
+ }
+ static void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my);
+ static void screen_xywh(int &x, int &y, int &w, int &h, int n);
+
// color map:
static void set_color(Fl_Color, uchar, uchar, uchar);
static void set_color(Fl_Color, unsigned);