Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsWindow.cpp File Reference
#include <Pt.h>
#include <photon/PtServer.h>
#include "PtRawDrawContainer.h"
#include "nsCRT.h"
#include "nsWindow.h"
#include "nsWidgetsCID.h"
#include "nsIFontMetrics.h"
#include "nsFont.h"
#include "nsGUIEvent.h"
#include "nsIRenderingContext.h"
#include "nsIRegion.h"
#include "nsRect.h"
#include "nsTransform2D.h"
#include "nsGfxCIID.h"
#include "nsIMenuBar.h"
#include "nsToolkit.h"
#include "nsIPref.h"
#include "nsClipboard.h"
#include "nsIRollupListener.h"
#include "nsIServiceManager.h"
#include "nsIAppShell.h"
#include "nsIDocShell.h"
#include "nsIViewManager.h"
#include "nsIXULWindow.h"
#include "nsIDocShellTreeItem.h"
#include "nsIWindowMediator.h"
#include "nsIPresShell.h"
#include "nsReadableUtils.h"

Go to the source code of this file.

Defines

#define QueryVisible()
#define PH_BORDER_STYLE_ALL

Functions

static PhTile_t * GetWindowClipping (PtWidget_t *aWidget)
static NS_DEFINE_CID (kWindowMediatorCID, NS_WINDOWMEDIATOR_CID)

Variables

static PtWidget_t * gMenuRegion
static PhRect_t gConsoleRect
static PRBool gConsoleRectValid = PR_FALSE

Define Documentation

Value:
Ph_WM_RENDER_TITLE | \
        Ph_WM_RENDER_CLOSE | \
        Ph_WM_RENDER_BORDER | \
        Ph_WM_RENDER_RESIZE | \
        Ph_WM_RENDER_MAX | \
        Ph_WM_RENDER_MIN | \
        Ph_WM_RENDER_MENU
Value:
{\
                                                                                           if( gConsoleRectValid == PR_FALSE ) { \
                                                                                                         PhWindowQueryVisible( Ph_QUERY_IG_POINTER, 0, 1, &gConsoleRect ); \
                                                                                                         gConsoleRectValid = PR_TRUE;\
                                                                                                         } \
                                                                                           }

Definition at line 83 of file nsWindow.cpp.


Function Documentation

static PhTile_t * GetWindowClipping ( PtWidget_t *  aWidget) [static]

Definition at line 772 of file nsWindow.cpp.

                                                          {
       PtWidget_t *w;
       PhTile_t *clip_tiles = NULL, *last = NULL;
       PhRect_t w_extent;

       PtWidgetExtent( aWidget, &w_extent);
       
       for( w = PtWidgetChildFront( aWidget ); w; w=PtWidgetBrotherBehind( w ) ) {
              long flags = PtWidgetFlags( w );
              if( (flags & Pt_REALIZED) && (flags & Pt_OPAQUE) && !PtIsDisjoint(w) ) {
                     PhTile_t *tile = PhGetTile( );
                     if( !tile ) return NULL;

                     tile->rect.ul.x = w->area.pos.x + w_extent.ul.x;
                     tile->rect.ul.y = w->area.pos.y + w_extent.ul.y;
                     tile->rect.lr.x = tile->rect.ul.x + w->area.size.w - 1;
                     tile->rect.lr.y = tile->rect.ul.y + w->area.size.h - 1;

                     tile->next = NULL;
                     if( !clip_tiles ) clip_tiles = tile;
                     if( last ) last->next = tile;
                     last = tile;
                     }
              }
       return clip_tiles;
       }

Here is the caller graph for this function:

static NS_DEFINE_CID ( kWindowMediatorCID  ,
NS_WINDOWMEDIATOR_CID   
) [static]

Variable Documentation

PhRect_t gConsoleRect [static]

Definition at line 81 of file nsWindow.cpp.

Definition at line 82 of file nsWindow.cpp.

PtWidget_t* gMenuRegion [static]

Definition at line 78 of file nsWindow.cpp.