Back to index

lightning-sunbird  0.9+nobinonly
Defines | Typedefs | Enumerations | Functions | Variables
nsMacWindow.cpp File Reference
#include "nsMacWindow.h"
#include "nsMacEventHandler.h"
#include "nsToolkit.h"
#include "nsIServiceManager.h"
#include "nsWidgetsCID.h"
#include "nsIDragHelperService.h"
#include "nsIScreen.h"
#include "nsIScreenManager.h"
#include "nsGUIEvent.h"
#include "nsCarbonHelpers.h"
#include "nsGfxUtils.h"
#include "nsMacResources.h"
#include "nsIRollupListener.h"
#include "nsCRT.h"
#include "nsWidgetSupport.h"
#include <CoreFoundation/CoreFoundation.h>
#include <Carbon/Carbon.h>

Go to the source code of this file.

Defines

#define kEventParamMouseWheelSmoothVerticalDelta   'saxy'
#define kEventParamMouseWheelSmoothHorizontalDelta   'saxx'
#define kEventMouseScroll   11
#define topLeft(r)   (((Point *) &(r))[0])
#define botRight(r)   (((Point *) &(r))[1])
#define kWindowPositionSlop   20

Typedefs

typedef OSStatus(* TransitionWindowWithOptions_type )(WindowRef, WindowTransitionEffect, WindowTransitionAction, const HIRect *, Boolean, TransitionWindowOptions *)

Enumerations

enum  nsMacDockOrientation { kDockOrientationNone = 0, kDockOrientationHorizontal = 1, kDockOrientationVertical = 2 }

Functions

 NS_IMPL_ISUPPORTS_INHERITED5 (nsMacWindow, Inherited, nsIEventSink, nsPIWidgetMac, nsPIWidgetMac_MOZILLA_1_8_BRANCH, nsPIEventSinkStandalone, nsIMacTextInputEventSink) nsMacWindow

Variables

static const char sScreenManagerContractID [] = "@mozilla.org/gfx/screenmanager;1"
nsIRollupListenergRollupListener
nsIWidgetgRollupWidget
const short kWindowTitleBarHeight = 22
const short kWindowMarginWidth = 0
const short kDialogTitleBarHeight = 22
const short kDialogMarginWidth = 0

Define Documentation

#define botRight (   r)    (((Point *) &(r))[1])

Definition at line 100 of file nsMacWindow.cpp.

Definition at line 83 of file nsMacWindow.cpp.

Definition at line 82 of file nsMacWindow.cpp.

Definition at line 81 of file nsMacWindow.cpp.

Definition at line 108 of file nsMacWindow.cpp.

#define topLeft (   r)    (((Point *) &(r))[0])

Definition at line 97 of file nsMacWindow.cpp.


Typedef Documentation

typedef OSStatus(* TransitionWindowWithOptions_type)(WindowRef, WindowTransitionEffect, WindowTransitionAction, const HIRect *, Boolean, TransitionWindowOptions *)

Definition at line 86 of file nsMacWindow.cpp.


Enumeration Type Documentation

Enumerator:
kDockOrientationNone 
kDockOrientationHorizontal 
kDockOrientationVertical 

Definition at line 2259 of file nsMacWindow.cpp.


Function Documentation

Definition at line 227 of file nsMacWindow.cpp.

                         : Inherited()
  , mWindowMadeHere(PR_FALSE)
  , mIsSheet(PR_FALSE)
  , mAcceptsActivation(PR_TRUE)
  , mIsActive(PR_FALSE)
  , mZoomOnShow(PR_FALSE)
  , mZooming(PR_FALSE)
  , mResizeIsFromUs(PR_FALSE)
  , mShown(PR_FALSE)
  , mSheetNeedsShow(PR_FALSE)
  , mSheetShown(PR_FALSE)
  , mInPixelMouseScroll(PR_FALSE)
  , mMacEventHandler(nsnull)
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_3
  , mNeedsResize(PR_FALSE)
#endif
  , mScrollEventHandler(NULL)
  , mWindowEventHandler(NULL)
{
  WIDGET_SET_CLASSNAME("nsMacWindow");  

  // create handlers for drag&drop
  mDragTrackingHandlerUPP = NewDragTrackingHandlerUPP(DragTrackingHandler);
  mDragReceiveHandlerUPP = NewDragReceiveHandlerUPP(DragReceiveHandler);
  mBoundsOffset.v = kWindowTitleBarHeight; // initial guesses
  mBoundsOffset.h = kWindowMarginWidth;
}

Variable Documentation

Definition at line 137 of file nsChildView.mm.

Definition at line 138 of file nsChildView.mm.

Definition at line 115 of file nsMacWindow.cpp.

Definition at line 114 of file nsMacWindow.cpp.

Definition at line 113 of file nsMacWindow.cpp.

Definition at line 112 of file nsMacWindow.cpp.

const char sScreenManagerContractID[] = "@mozilla.org/gfx/screenmanager;1" [static]

Definition at line 93 of file nsMacWindow.cpp.