From 2f43f8a62dd12ae3980a3bee5107ade1dfbbbad5 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Thu, 6 Jan 2000 01:28:41 +0000 Subject: [PATCH] new method GetScreenBounds. part of bug 5998. r:pierre. git-svn-id: svn://10.0.0.236/trunk@56922 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/public/nsIWidget.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/mozilla/widget/public/nsIWidget.h b/mozilla/widget/public/nsIWidget.h index 4cd87f662f6..3202d6eb6a7 100644 --- a/mozilla/widget/public/nsIWidget.h +++ b/mozilla/widget/public/nsIWidget.h @@ -371,15 +371,27 @@ class nsIWidget : public nsISupports { NS_IMETHOD SetFocus(void) = 0; /** - * Get this widget's outside dimensions relative to it's parent widget + * Get this widget's outside dimensions relative to its parent widget * - * @param aRect on return it holds the x. y, width and height of this widget + * @param aRect on return it holds the x, y, width and height of this widget * */ NS_IMETHOD GetBounds(nsRect &aRect) = 0; - - + + /** + * Get this widget's outside dimensions in global coordinates. (One might think this + * could be accomplished by stringing together other methods in this interface, but + * then one would bloody one's nose on different coordinate system handling by different + * platforms.) + * + * @param aRect on return it holds the x, y, width and height of this widget + * + */ + NS_IMETHOD GetScreenBounds(nsRect &aRect) = 0; + + + /** * Get this widget's client area dimensions, if the window has a 3D border appearance * this returns the area inside the border, The x and y are always zero *