Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
nsScreenManagerQt Class Reference

#include <nsScreenManagerQt.h>

Inheritance diagram for nsScreenManagerQt:
Inheritance graph
Collaboration diagram for nsScreenManagerQt:
Collaboration graph

List of all members.

Public Member Functions

 nsScreenManagerQt ()
virtual ~nsScreenManagerQt ()
nsIScreen screenForRect (in long left, in long top, in long width, in long height)

Public Attributes

readonly attribute nsIScreen primaryScreen
readonly attribute unsigned long numberOfScreens

Private Member Functions

void init ()

Private Attributes

nsCOMPtr< nsIScreen > * screens
QDesktopWidget * desktop
int nScreens

Detailed Description

Definition at line 51 of file nsScreenManagerQt.h.

Constructor & Destructor Documentation

Definition at line 47 of file nsScreenManagerQt.cpp.

    desktop = 0;

Definition at line 53 of file nsScreenManagerQt.cpp.

    // nothing to see here.

Member Function Documentation

Definition at line 61 of file nsScreenManagerQt.cpp.

    if (desktop)

    desktop = QApplication::desktop();
    nScreens = desktop->numScreens();
    screens = new nsCOMPtr<nsIScreen>[nScreens];

    for (int i = 0; i < nScreens; ++i)
        screens[i] = new nsScreenQt(i);
nsIScreen nsIScreenManager::screenForRect ( in long  left,
in long  top,
in long  width,
in long  height 
) [inherited]

Member Data Documentation

QDesktopWidget* nsScreenManagerQt::desktop [private]

Definition at line 65 of file nsScreenManagerQt.h.

Definition at line 66 of file nsScreenManagerQt.h.

readonly attribute unsigned long nsIScreenManager::numberOfScreens [inherited]

Definition at line 59 of file nsIScreenManager.idl.

Definition at line 56 of file nsIScreenManager.idl.

Definition at line 64 of file nsScreenManagerQt.h.

The documentation for this class was generated from the following files: