Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsNativeThemeGTK.cpp File Reference
#include "nsNativeThemeGTK.h"
#include "nsThemeConstants.h"
#include "nsDrawingSurfaceGTK.h"
#include "nsDeviceContextGTK.h"
#include "gtkdrawing.h"
#include "nsIObserverService.h"
#include "nsIServiceManager.h"
#include "nsIFrame.h"
#include "nsIPresShell.h"
#include "nsIDocument.h"
#include "nsIContent.h"
#include "nsIEventStateManager.h"
#include "nsIViewManager.h"
#include "nsINameSpaceManager.h"
#include "nsILookAndFeel.h"
#include "nsIDeviceContext.h"
#include "nsTransform2D.h"
#include "nsIMenuFrame.h"
#include "nsIMenuParent.h"
#include "prlink.h"
#include <gdk/gdkprivate.h>
#include <gdk/gdkx.h>

Go to the source code of this file.

Functions

static PRBool IsWidgetTypeDisabled (PRUint8 *aDisabledVector, PRUint8 aWidgetType)
static void SetWidgetTypeDisabled (PRUint8 *aDisabledVector, PRUint8 aWidgetType)
static PRUint16 GetWidgetStateKey (PRUint8 aWidgetType, GtkWidgetState *aWidgetState)
static PRBool IsWidgetStateSafe (PRUint8 *aSafeVector, PRUint8 aWidgetType, GtkWidgetState *aWidgetState)
static void SetWidgetStateSafe (PRUint8 *aSafeVector, PRUint8 aWidgetType, GtkWidgetState *aWidgetState)
static int NativeThemeErrorHandler (Display *dpy, XErrorEvent *error)

Variables

static int gLastXError

Function Documentation

static PRUint16 GetWidgetStateKey ( PRUint8  aWidgetType,
GtkWidgetState aWidgetState 
) [inline, static]

Definition at line 141 of file nsNativeThemeGTK.cpp.

{
  return (aWidgetState->active |
          aWidgetState->focused << 1 |
          aWidgetState->inHover << 2 |
          aWidgetState->disabled << 3 |
          aWidgetState->isDefault << 4 |
          aWidgetType << 5);
}

Here is the caller graph for this function:

static PRBool IsWidgetStateSafe ( PRUint8 aSafeVector,
PRUint8  aWidgetType,
GtkWidgetState aWidgetState 
) [static]

Definition at line 151 of file nsNativeThemeGTK.cpp.

{
  PRUint8 key = GetWidgetStateKey(aWidgetType, aWidgetState);
  return aSafeVector[key >> 3] & (1 << (key & 7));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool IsWidgetTypeDisabled ( PRUint8 aDisabledVector,
PRUint8  aWidgetType 
) [static]

Definition at line 132 of file nsNativeThemeGTK.cpp.

                                                                                  {
  return aDisabledVector[aWidgetType >> 3] & (1 << (aWidgetType & 7));
}

Here is the caller graph for this function:

static int NativeThemeErrorHandler ( Display dpy,
XErrorEvent *  error 
) [static]

Definition at line 417 of file nsNativeThemeGTK.cpp.

                                                          {
  gLastXError = error->error_code;
  return 0;
}

Here is the caller graph for this function:

static void SetWidgetStateSafe ( PRUint8 aSafeVector,
PRUint8  aWidgetType,
GtkWidgetState aWidgetState 
) [static]

Definition at line 159 of file nsNativeThemeGTK.cpp.

{
  PRUint8 key = GetWidgetStateKey(aWidgetType, aWidgetState);
  aSafeVector[key >> 3] |= (1 << (key & 7));
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void SetWidgetTypeDisabled ( PRUint8 aDisabledVector,
PRUint8  aWidgetType 
) [static]

Definition at line 136 of file nsNativeThemeGTK.cpp.

                                                                                 {
  aDisabledVector[aWidgetType >> 3] |= (1 << (aWidgetType & 7));
}

Here is the caller graph for this function:


Variable Documentation

int gLastXError [static]

Definition at line 67 of file nsNativeThemeGTK.cpp.