From 35c2ee0cffa7444896e6de5e5cff70b02482154f Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Tue, 11 Aug 1998 20:25:18 +0000 Subject: [PATCH] started messaging --- widget/src/mac/nsWindow.h | 65 +++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/widget/src/mac/nsWindow.h b/widget/src/mac/nsWindow.h index 0b152191caa6..84d6f7515c23 100644 --- a/widget/src/mac/nsWindow.h +++ b/widget/src/mac/nsWindow.h @@ -35,6 +35,8 @@ RGB(NS_GET_R(color),NS_GET_G(color),NS_GET_B(color)) +// ============================================================================= + /** * Native Motif window wrapper. */ @@ -132,12 +134,15 @@ public: virtual PRBool IgnoreResize(); virtual PRUint32 GetYCoord(PRUint32 aNewY); + // Resize event management void SetResizeRect(nsRect& aRect); void SetResized(PRBool aResized); void GetResizeRect(nsRect* aRect); PRBool GetResized(); + + nsIWidget* FindWidgetHit(Point); char gInstanceClassName[256]; protected: @@ -170,37 +175,35 @@ protected: void InitToolkit(nsIToolkit *aToolkit, nsIWidget * aWidgetParent); - virtual void UpdateVisibilityFlag(); - virtual void UpdateDisplay(); + virtual void UpdateVisibilityFlag(); + virtual void UpdateDisplay(); - //Widget mWidget; - EVENT_CALLBACK mEventCallback; - nsIDeviceContext *mContext; - nsIFontMetrics *mFontMetrics; - nsToolkit *mToolkit; - nsIAppShell *mAppShell; + EVENT_CALLBACK mEventCallback; + nsIDeviceContext *mContext; + nsIFontMetrics *mFontMetrics; + nsToolkit *mToolkit; + nsIAppShell *mAppShell; - nsIMouseListener * mMouseListener; - nsIEventListener * mEventListener; + nsIMouseListener *mMouseListener; + nsIEventListener *mEventListener; - nscolor mBackground; - nscolor mForeground; - nsCursor mCursor; - nsBorderStyle mBorderStyle; - nsRect mBounds; + nscolor mBackground; + nscolor mForeground; + nsCursor mCursor; + nsBorderStyle mBorderStyle; + nsRect mBounds; - PRBool mIgnoreResize; - PRBool mShown; - PRBool mVisible; - PRBool mDisplayed; - void* mClientData; + PRBool mIgnoreResize; + PRBool mShown; + PRBool mVisible; + PRBool mDisplayed; // Resize event management - nsRect mResizeRect; - int mResized; - PRBool mLowerLeft; + nsRect mResizeRect; + PRUint32 mResized; + PRBool mLowerLeft; - nsISupports* mOuter; + nsISupports* mOuter; class InnerSupport : public nsISupports { public: @@ -219,11 +222,16 @@ protected: friend InnerSupport; private: - WindowPtr mWindowPtr; + // parent window -- this is only used for the main window widget + WindowRecord mWindowRecord; + WindowPtr mWindowPtr; + //LinkedList mWidgetList; // list of widgets attached to this main window + - //GC mGC; }; +// ============================================================================ + // // A child window is a window with different style // @@ -234,6 +242,11 @@ public: }; +// ============================================================================= + + +// ============================================================================= + #define AGGREGATE_METHOD_DEF \ public: \ NS_IMETHOD QueryInterface(REFNSIID aIID, \