summaryrefslogtreecommitdiff
path: root/src/screen_xywh.cxx
diff options
context:
space:
mode:
authorFabien Costantini <fabien@onepost.net>2008-09-13 22:33:03 +0000
committerFabien Costantini <fabien@onepost.net>2008-09-13 22:33:03 +0000
commit9bf19e2329a51f68b2f6b9c2d65db87ab3698f76 (patch)
tree4949368ed1aa08e8a6ecda0958788081a97f1a96 /src/screen_xywh.cxx
parent4159c97e420fd9cd66024a9b71aa5d143cc1b2db (diff)
WP1 merged from my branch, WP2 reserved, todo list updated.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/screen_xywh.cxx')
-rw-r--r--src/screen_xywh.cxx18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx
index a6c98d304..7a36e19e7 100644
--- a/src/screen_xywh.cxx
+++ b/src/screen_xywh.cxx
@@ -141,14 +141,23 @@ static void screen_init() {
#endif // WIN32
-// Return the number of screens...
+/**
+ Gets the number of available screens.
+*/
int Fl::screen_count() {
if (!num_screens) screen_init();
return num_screens;
}
-// Return the screen bounding rect for the given mouse position...
+/**
+ Gets the bounding box of a screen. The first form gets the
+ bounding box for the screen the mouse pointer is in. The second
+ form gets the bounding box for the screen that contains the
+ specified coordinates. The last form gets the bounding box for
+ the numbered screen, where n is a number from 0 to the
+ number of screens less 1.
+*/
void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my) {
if (!num_screens) screen_init();
@@ -212,7 +221,10 @@ void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int mx, int my) {
H = Fl::h();
}
-// Return the screen bounding rect for the given screen...
+/**
+ Returns the screen bounding rect for the given screen.
+ See void screen_xywh(int &x, int &y, int &w, int &h, int mx, int my)
+*/
void Fl::screen_xywh(int &X, int &Y, int &W, int &H, int n) {
if (!num_screens) screen_init();