Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs
nsAttrValue.h File Reference
#include "nscore.h"
#include "nsString.h"
#include "nsStringBuffer.h"
#include "nsColor.h"
#include "nsCOMArray.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsCheapString
 A class used to construct a nsString from a nsStringBuffer (we might want to move this to nsString at some point). More...
class  nsAttrValue
struct  nsAttrValue::EnumTable
 Structure for a mapping from int (enum) values to strings. More...
struct  nsAttrValue::MiscContainer
union  nsAttrValue::MiscContainer.__unnamed__

Defines

#define NS_ATTRVALUE_MAX_STRINGLENGTH_ATOM   12
#define NS_ATTRVALUE_BASETYPE_MASK   (PtrBits(3))
#define NS_ATTRVALUE_POINTERVALUE_MASK   (~NS_ATTRVALUE_BASETYPE_MASK)
#define NS_ATTRVALUE_INTEGERTYPE_BITS   5
#define NS_ATTRVALUE_INTEGERTYPE_MASK   (PtrBits((1 << NS_ATTRVALUE_INTEGERTYPE_BITS) - 1))
#define NS_ATTRVALUE_INTEGERTYPE_MULTIPLIER   (1 << NS_ATTRVALUE_INTEGERTYPE_BITS)
#define NS_ATTRVALUE_INTEGERTYPE_MAXVALUE   ((1 << (31 - NS_ATTRVALUE_INTEGERTYPE_BITS)) - 1)
#define NS_ATTRVALUE_INTEGERTYPE_MINVALUE   (-NS_ATTRVALUE_INTEGERTYPE_MAXVALUE - 1)
#define NS_ATTRVALUE_ENUMTABLEINDEX_BITS   (32 - 16 - NS_ATTRVALUE_INTEGERTYPE_BITS)
#define NS_ATTRVALUE_ENUMTABLEINDEX_MAXVALUE   ((1 << NS_ATTRVALUE_ENUMTABLEINDEX_BITS) - 1)
#define NS_ATTRVALUE_ENUMTABLEINDEX_MASK   (PtrBits((1 << NS_ATTRVALUE_ENUMTABLEINDEX_BITS) - 1))

Typedefs

typedef unsigned long PtrBits

Class Documentation

struct nsAttrValue::EnumTable

Structure for a mapping from int (enum) values to strings.

When you use it you generally create an array of them. Instantiate like this: EnumTable myTable[] = { { "string1", 1 }, { "string2", 2 }, { 0 } }

Definition at line 173 of file nsAttrValue.h.

Class Members
const char * tag The string the value maps to.
PRInt16 value The enum value that maps to this string.
struct nsAttrValue::MiscContainer

Definition at line 247 of file nsAttrValue.h.

Class Members
union MiscContainer __unnamed__
ValueType mType
union nsAttrValue::MiscContainer.__unnamed__

Definition at line 250 of file nsAttrValue.h.

Class Members
nsCOMArray< nsIAtom > * mAtomArray
nscolor mColor
nsICSSStyleRule * mCSSStyleRule

Define Documentation

Definition at line 57 of file nsAttrValue.h.

Definition at line 66 of file nsAttrValue.h.

Definition at line 68 of file nsAttrValue.h.

Definition at line 67 of file nsAttrValue.h.

Definition at line 60 of file nsAttrValue.h.

Definition at line 61 of file nsAttrValue.h.

Definition at line 63 of file nsAttrValue.h.

Definition at line 64 of file nsAttrValue.h.

Definition at line 62 of file nsAttrValue.h.

Definition at line 55 of file nsAttrValue.h.

Definition at line 58 of file nsAttrValue.h.


Typedef Documentation

typedef unsigned long PtrBits

Definition at line 48 of file nsAttrValue.h.