Back to index

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

#include <nsScreenMac.h>

Inheritance diagram for nsScreenMac:
Inheritance graph
[legend]
Collaboration diagram for nsScreenMac:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsScreenMac (GDHandle inScreen)
 ~nsScreenMac ()
void GetRect (out long left, out long top, out long width, out long height)
void GetAvailRect (out long left, out long top, out long width, out long height)

Public Attributes

readonly attribute long pixelDepth
readonly attribute long colorDepth

Private Member Functions

PRBool IsPrimaryScreen () const

Private Attributes

GDHandle mScreen

Detailed Description

Definition at line 47 of file nsScreenMac.h.


Constructor & Destructor Documentation

nsScreenMac::nsScreenMac ( GDHandle  inScreen)

Definition at line 41 of file nsScreenMac.cpp.

  : mScreen(inScreen)
{
  NS_ASSERTION ( inScreen, "Passing null device to nsScreenMac" );
  
  // nothing else to do. I guess we could cache a bunch of information
  // here, but we want to ask the device at runtime in case anything
  // has changed.
}

Definition at line 52 of file nsScreenMac.cpp.

{
  // nothing to see here.
}

Member Function Documentation

void nsIScreen::GetAvailRect ( out long  left,
out long  top,
out long  width,
out long  height 
) [inherited]
void nsIScreen::GetRect ( out long  left,
out long  top,
out long  width,
out long  height 
) [inherited]
PRBool nsScreenMac::IsPrimaryScreen ( ) const [inline, private]

Definition at line 60 of file nsScreenMac.h.

{ return (mScreen == ::GetMainDevice()); }

Member Data Documentation

readonly attribute long nsIScreen::colorDepth [inherited]

Definition at line 49 of file nsIScreen.idl.

GDHandle nsScreenMac::mScreen [private]

Definition at line 62 of file nsScreenMac.h.

readonly attribute long nsIScreen::pixelDepth [inherited]

Definition at line 48 of file nsIScreen.idl.


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