mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 02:48:48 +00:00
parent
db4a3ac2ad
commit
08cedcbba7
@ -1408,6 +1408,29 @@ NS_METHOD nsWindow::SetFocus(PRBool aRaise)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Get this component dimension
|
||||
//
|
||||
//-------------------------------------------------------------------------
|
||||
NS_METHOD nsWindow::GetBounds(nsRect &aRect)
|
||||
{
|
||||
if (mWnd) {
|
||||
SWP swp;
|
||||
WinQueryWindowPos(mWnd, &swp);
|
||||
aRect.width = swp.cx;
|
||||
aRect.height = swp.cy;
|
||||
// Need to add code to convert coordinate if parent exists - see Windows
|
||||
aRect.x = swp.x;
|
||||
aRect.y = swp.y;
|
||||
} else {
|
||||
aRect = mBounds;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//
|
||||
// Get this component dimension
|
||||
|
@ -116,6 +116,7 @@ class nsWindow : public nsBaseWidget,
|
||||
NS_IMETHOD Enable( PRBool aState);
|
||||
NS_IMETHOD IsEnabled(PRBool *aState);
|
||||
NS_IMETHOD SetFocus(PRBool aRaise);
|
||||
NS_IMETHOD GetBounds(nsRect &aRect);
|
||||
NS_IMETHOD IsVisible( PRBool &aState);
|
||||
NS_IMETHOD PlaceBehind(nsIWidget *aWidget, PRBool aActivate);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user