Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsWidget.cpp File Reference
#include "nsWidget.h"
#include "nsIAppShell.h"
#include "nsIComponentManager.h"
#include "nsIDeviceContext.h"
#include "nsIFontMetrics.h"
#include "nsILookAndFeel.h"
#include "nsToolkit.h"
#include "nsWidgetsCID.h"
#include "nsGfxCIID.h"
#include <Pt.h>
#include "PtRawDrawContainer.h"
#include "nsIRollupListener.h"
#include "nsIServiceManager.h"
#include "nsWindow.h"
#include "nsIViewManager.h"
#include "nsIScrollableView.h"
#include "nsReadableUtils.h"
#include "nsIPref.h"
#include "nsClipboard.h"
#include <errno.h>
#include <photon/PtServer.h>

Go to the source code of this file.

Classes

struct  nsKeyConverter

Defines

#define NSCOLOR_TO_PHCOLOR(g, n)

Functions

static NS_DEFINE_CID (kLookAndFeelCID, NS_LOOKANDFEEL_CID)
static NS_DEFINE_CID (kCClipboardCID, NS_CLIPBOARD_CID)
int key_sym_displayable (const PhKeyEvent_t *kevent)
int key_cap_displayable (const PhKeyEvent_t *kevent)

Variables

char * __progname
static struct nsKeyConverter []

Class Documentation

struct nsKeyConverter

Definition at line 2227 of file nsWindow.cpp.

Collaboration diagram for nsKeyConverter:
Class Members
char bekeycode
unsigned int keysym
int keysym
unsigned long keysym
PRUint32 vkCode
int vkCode

Define Documentation

#define NSCOLOR_TO_PHCOLOR (   g,
  n 
)
Value:
g.red=NS_GET_B(n); \
  g.green=NS_GET_G(n); \
  g.blue=NS_GET_R(n);

Definition at line 76 of file nsWidget.cpp.


Function Documentation

int key_cap_displayable ( const PhKeyEvent_t *  kevent) [inline]

Definition at line 952 of file nsWidget.cpp.

{
  if(kevent->key_flags & Pk_KF_Cap_Valid) {
    unsigned long const cap = kevent->key_cap;
    if  ( cap >= 0xF000
      ? cap >= 0xF100 && ( sizeof(wchar_t) > 2 || cap < 0x10000 )
      : ( cap & ~0x9F ) != 0 // exclude 0...0x1F and 0x80...0x9F
        ) return 1;
  }
  return 0;
}

Here is the caller graph for this function:

int key_sym_displayable ( const PhKeyEvent_t *  kevent) [inline]

Definition at line 939 of file nsWidget.cpp.

{
  if(kevent->key_flags & Pk_KF_Sym_Valid) {
    unsigned long const sym = kevent->key_sym;
    if  ( sym >= 0xF000
      ? sym >= 0xF100 && ( sizeof(wchar_t) > 2 || sym < 0x10000 )
      : ( sym & ~0x9F ) != 0 // exclude 0...0x1F and 0x80...0x9F
        ) return 1;
  }
  return 0;
}

Here is the caller graph for this function:

static NS_DEFINE_CID ( kLookAndFeelCID  ,
NS_LOOKANDFEEL_CID   
) [static]
static NS_DEFINE_CID ( kCClipboardCID  ,
NS_CLIPBOARD_CID   
) [static]

Variable Documentation

char* __progname
struct nsKeyConverter[] [static]

Definition at line 789 of file nsWidget.cpp.