Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations | Functions
nsXPLookAndFeel.h File Reference
#include "nsILookAndFeel.h"
#include "nsCOMPtr.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsLookAndFeelIntPref
struct  nsLookAndFeelFloatPref
class  nsXPLookAndFeel

Defines

#define CACHE_BLOCK(x)   ((x) >> 5)
#define CACHE_BIT(x)   (1 << ((x) & 31))
#define COLOR_CACHE_SIZE   (CACHE_BLOCK(nsILookAndFeel::eColor_LAST_COLOR) + 1)
#define IS_COLOR_CACHED(x)   (CACHE_BIT(x) & nsXPLookAndFeel::sCachedColorBits[CACHE_BLOCK(x)])
#define CACHE_COLOR(x, y)

Enumerations

enum  nsLookAndFeelType { nsLookAndFeelTypeInt, nsLookAndFeelTypeFloat, nsLookAndFeelTypeColor }

Functions

nsresult NS_NewXPLookAndFeel (nsILookAndFeel **)

Class Documentation

struct nsLookAndFeelIntPref

Definition at line 56 of file nsXPLookAndFeel.h.

Class Members
nsMetricID id
PRInt32 intVar
PRPackedBool isSet
const char * name
nsLookAndFeelType type
struct nsLookAndFeelFloatPref

Definition at line 65 of file nsXPLookAndFeel.h.

Class Members
float floatVar
nsMetricFloatID id
PRPackedBool isSet
const char * name
nsLookAndFeelType type

Define Documentation

#define CACHE_BIT (   x)    (1 << ((x) & 31))

Definition at line 75 of file nsXPLookAndFeel.h.

#define CACHE_BLOCK (   x)    ((x) >> 5)

Definition at line 74 of file nsXPLookAndFeel.h.

#define CACHE_COLOR (   x,
  y 
)
Value:
nsXPLookAndFeel::sCachedColors[(x)] = y; \
              nsXPLookAndFeel::sCachedColorBits[CACHE_BLOCK(x)] |= CACHE_BIT(x);

Definition at line 79 of file nsXPLookAndFeel.h.

Definition at line 77 of file nsXPLookAndFeel.h.

Definition at line 78 of file nsXPLookAndFeel.h.


Enumeration Type Documentation

Enumerator:
nsLookAndFeelTypeInt 
nsLookAndFeelTypeFloat 
nsLookAndFeelTypeColor 

Definition at line 50 of file nsXPLookAndFeel.h.


Function Documentation