Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
TopLevelFrame.cpp File Reference
#include <Controls.h>
#include <Events.h>
#include "TopLevelFrame.h"
#include "LocalPort.h"
#include "nsIPluginManager2.h"
#include "nsIEventHandler.h"
#include "AltWindowHandling.h"

Go to the source code of this file.

Defines

#define USE_ALT_WINDOW_HANDLING

Functions

static void UnsetPort (GrafPtr port)
static short getModifiers ()
static void computeBounds (WindowRef window, Rect *bounds)

Variables

nsIPluginManager2thePluginManager2

Define Documentation

Definition at line 57 of file TopLevelFrame.cpp.


Function Documentation

static void computeBounds ( WindowRef  window,
Rect *  bounds 
) [static]

Definition at line 204 of file TopLevelFrame.cpp.

{
       LocalPort port(window);
       port.Enter();
       
              Point position = { 0, 0 };
              ::LocalToGlobal(&position);
              
              *bounds = window->portRect;
       
       port.Exit();
       
       ::OffsetRect(bounds, position.h, position.v);
}

Here is the call graph for this function:

static short getModifiers ( ) [static]

Definition at line 300 of file TopLevelFrame.cpp.

{
       EventRecord event;
       ::OSEventAvail(0, &event);
       return event.modifiers;
}
static void UnsetPort ( GrafPtr  port) [static]

Definition at line 290 of file TopLevelFrame.cpp.

{
       GrafPtr curPort;
       ::GetPort(&curPort);
       if (curPort == port) {
              ::GetWMgrPort(&port);
              ::SetPort(port);
       }
}

Variable Documentation

Definition at line 74 of file MRJPlugin.cpp.