new method ConstrainPosition provides implementation-dependent on-screen check for top-level windows. bug 31516 r=saari@netscape.com

git-svn-id: svn://10.0.0.236/trunk@75585 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
danm%netscape.com
2000-08-04 14:47:46 +00:00
parent 786e362567
commit e806f00627

View File

@@ -325,6 +325,19 @@ class nsIWidget : public nsISupports {
*/
NS_IMETHOD IsVisible(PRBool & aState) = 0;
/**
* Perform platform-dependent sanity check on a potential window position.
* This is guaranteed to work only for top-level windows.
*
* @param aX in: an x position expressed in screen coordinates.
* out: the x position constrained to fit on the screen(s).
* @param aY in: an y position expressed in screen coordinates.
* out: the y position constrained to fit on the screen(s).
* @return vapid success indication. but see also the parameters.
*
**/
NS_IMETHOD ConstrainPosition(PRInt32 *aX, PRInt32 *aY) = 0;
/**
* Move this widget.
*