1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include
"nsISupports.idl"
8 #include
"nsIScreen.idl"
10 [scriptable
, uuid(B92319E6
-9A84
-4ca7
-A2CC
-EEC22EA9854E
)]
11 interface nsIScreenManager
: nsISupports
14 // Returns the screen that contains the rectangle. If the rect overlaps
15 // multiple screens, it picks the screen with the greatest area of intersection.
17 // The coordinates are in pixels (not twips) and in screen coordinates.
19 nsIScreen screenForRect
( in long left
, in long top
, in long width
, in long height
) ;
21 // The screen with the menubar/taskbar. This shouldn't be needed very
23 readonly attribute nsIScreen primaryScreen
;
25 // Holds the number of screens that are available
26 readonly attribute
unsigned long numberOfScreens
;
28 // Returns the nsIScreen instance for the given native widget pointer;
29 // the pointer is specific to the particular widget implementation,
30 // and is generally of the same type that NS_NATIVE_WINDOW is.
31 [noscript
] nsIScreen screenForNativeWidget
( in voidPtr nativeWidget
);