Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsWindow.cpp File Reference
#include "nsWindow.h"
#include "nsIFontMetrics.h"
#include "nsIDeviceContext.h"
#include "nsCOMPtr.h"
#include "nsToolkit.h"
#include "nsIEnumerator.h"
#include "prmem.h"
#include <Appearance.h>
#include <Timer.h>
#include <Icons.h>
#include <Errors.h>
#include "nsplugindefs.h"
#include "nsMacEventHandler.h"
#include "nsMacResources.h"
#include "nsIRegion.h"
#include "nsIRollupListener.h"
#include "nsPIWidgetMac.h"
#include "nsCarbonHelpers.h"
#include "nsGfxUtils.h"
#include "nsRegionPool.h"
#include <Gestalt.h>

Go to the source code of this file.

Classes

struct  TRectArray

Defines

#define FIRST_CHILD()   (mFirstChild)
#define NEXT_CHILD(child)   ((child)->GetNextSibling())

Functions

static Boolean we_are_front_process ()
PRBool OnPantherOrLater ()
PRUint16 COLOR8TOCOLOR16 (PRUint8 color8)

Variables

const short PANTHER_RESIZE_UP_CURSOR = 19
const short PANTHER_RESIZE_DOWN_CURSOR = 20
const short PANTHER_RESIZE_UPDOWN_CURSOR = 21
const short JAGUAR_RESIZE_UP_CURSOR = 135
const short JAGUAR_RESIZE_DOWN_CURSOR = 136
const short JAGUAR_RESIZE_UPDOWN_CURSOR = 141
nsIRollupListenergRollupListener = nsnull
nsIWidgetgRollupWidget = nsnull
static NMRec gNMRec
static Boolean gNotificationInstalled = false
static CursorSpinnergCursorSpinner = nsnull
static const int kSpinCursorFirstFrame = 200
static RegionToRectsUPP sAddRectToArrayProc = nsnull

Define Documentation

#define FIRST_CHILD ( )    (mFirstChild)
#define NEXT_CHILD (   child)    ((child)->GetNextSibling())

Function Documentation

PRUint16 COLOR8TOCOLOR16 ( PRUint8  color8) [inline]

Definition at line 1097 of file nsWindow.cpp.

{
       // return (color8 == 0xFF ? 0xFFFF : (color8 << 8));
       return (color8 << 8) | color8;     /* (color8 * 257) == (color8 * 0x0101) */
}

Definition at line 687 of file nsWindow.cpp.

{
    static PRBool gInitVer1030 = PR_FALSE;
    static PRBool gOnPantherOrLater = PR_FALSE;
    if(!gInitVer1030)
    {
        gOnPantherOrLater =
            (nsToolkit::OSXVersion() >= MAC_OS_X_VERSION_10_3_HEX);
        gInitVer1030 = PR_TRUE;
    }
    return gOnPantherOrLater;
}

Here is the call graph for this function:

static Boolean we_are_front_process ( ) [static]

Definition at line 566 of file nsWindow.cpp.

{
       ProcessSerialNumber  thisPSN;
       ProcessSerialNumber  frontPSN;
       (void)::GetCurrentProcess(&thisPSN);
       if (::GetFrontProcess(&frontPSN) == noErr)
       {
              if ((frontPSN.highLongOfPSN == thisPSN.highLongOfPSN) &&
                     (frontPSN.lowLongOfPSN == thisPSN.lowLongOfPSN))
                     return true;
       }
       return false;
}

Variable Documentation

Definition at line 99 of file nsWindow.cpp.

NMRec gNMRec [static]

Definition at line 95 of file nsWindow.cpp.

Definition at line 96 of file nsWindow.cpp.

Definition at line 90 of file nsWindow.cpp.

Definition at line 91 of file nsWindow.cpp.

Definition at line 86 of file nsWindow.cpp.

Definition at line 85 of file nsWindow.cpp.

Definition at line 87 of file nsWindow.cpp.

Definition at line 100 of file nsWindow.cpp.

Definition at line 81 of file nsWindow.cpp.

Definition at line 80 of file nsWindow.cpp.

Definition at line 82 of file nsWindow.cpp.

RegionToRectsUPP sAddRectToArrayProc = nsnull [static]

Definition at line 103 of file nsWindow.cpp.