michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsScreenWin_h___ michael@0: #define nsScreenWin_h___ michael@0: michael@0: #include michael@0: #include "nsBaseScreen.h" michael@0: michael@0: //------------------------------------------------------------------------ michael@0: michael@0: class nsScreenWin : public nsBaseScreen michael@0: { michael@0: public: michael@0: nsScreenWin ( HMONITOR inScreen ); michael@0: ~nsScreenWin(); michael@0: michael@0: // These methods return the size in device (physical) pixels michael@0: NS_IMETHOD GetRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: NS_IMETHOD GetAvailRect(int32_t* aLeft, int32_t* aTop, int32_t* aWidth, int32_t* aHeight); michael@0: michael@0: // And these methods get the screen size in 'display pixels' (AKA 'logical pixels') michael@0: // that are dependent on the logical DPI setting in windows michael@0: NS_IMETHOD GetRectDisplayPix(int32_t *outLeft, int32_t *outTop, michael@0: int32_t *outWidth, int32_t *outHeight); michael@0: NS_IMETHOD GetAvailRectDisplayPix(int32_t *outLeft, int32_t *outTop, michael@0: int32_t *outWidth, int32_t *outHeight); michael@0: michael@0: NS_IMETHOD GetPixelDepth(int32_t* aPixelDepth); michael@0: NS_IMETHOD GetColorDepth(int32_t* aColorDepth); michael@0: michael@0: private: michael@0: michael@0: HMONITOR mScreen; michael@0: }; michael@0: michael@0: #endif // nsScreenWin_h___