base implementation of new method GetScreenBounds. part of bug 5998. r:pierre.

This commit is contained in:
danm%netscape.com 2000-01-06 01:29:19 +00:00
Родитель d2ec27a11f
Коммит afc43c4cd4
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -554,6 +554,15 @@ NS_METHOD nsBaseWidget::GetBounds(nsRect &aRect)
return NS_OK;
}
/**
* If the implementation of nsWindow uses a local coordinate system within the window,
* this method must be overridden
*
**/
NS_METHOD nsBaseWidget::GetScreenBounds(nsRect &aRect)
{
return GetBounds(aRect);
}
/**
* If the implementation of nsWindow supports borders this method MUST be overridden

Просмотреть файл

@ -91,6 +91,7 @@ public:
NS_IMETHOD GetBounds(nsRect &aRect);
NS_IMETHOD GetBoundsAppUnits(nsRect &aRect, float aAppUnits);
NS_IMETHOD GetClientBounds(nsRect &aRect);
NS_IMETHOD GetScreenBounds(nsRect &aRect);
NS_IMETHOD GetBorderSize(PRInt32 &aWidth, PRInt32 &aHeight);
NS_IMETHOD Paint(nsIRenderingContext& aRenderingContext, const nsRect& aDirtyRect);
NS_IMETHOD ScrollRect(nsRect &aRect, PRInt32 aDx, PRInt32 aDy);