Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations
nsStyleStruct.h File Reference
#include "nsColor.h"
#include "nsCoord.h"
#include "nsMargin.h"
#include "nsRect.h"
#include "nsFont.h"
#include "nsVoidArray.h"
#include "nsStyleCoord.h"
#include "nsStyleConsts.h"
#include "nsChangeHint.h"
#include "nsPresContext.h"
#include "nsIPresShell.h"
#include "nsCOMPtr.h"
#include "nsCOMArray.h"
#include "nsIAtom.h"
#include "nsIURI.h"
#include "nsCSSValue.h"
#include "nsStyleStructList.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  nsStyleStruct
struct  nsStyleFont
struct  nsStyleColor
struct  nsStyleBackground
struct  nsStyleMargin
struct  nsStylePadding
struct  nsBorderColors
struct  nsStyleBorder
struct  nsStyleBorderPadding
struct  nsStyleOutline
struct  nsStyleList
struct  nsStylePosition
struct  nsStyleTextReset
struct  nsStyleText
struct  nsStyleVisibility
struct  nsStyleDisplay
struct  nsStyleTable
struct  nsStyleTableBorder
struct  nsStyleContentData
struct  nsStyleCounterData
struct  nsStyleQuotes
struct  nsStyleContent
struct  nsStyleUIReset
struct  nsCursorImage
struct  nsStyleUserInterface
struct  nsStyleXUL
struct  nsStyleColumn
struct  nsBorderEdge
 an encapsulation of border edge info More...
struct  nsBorderEdges
 an encapsulation of a border defined by its edges owner of this struct is responsible for freeing any data stored in mEdges More...
union  nsStyleBackground.mBackgroundXPosition
union  nsStyleBackground.mBackgroundYPosition
union  nsStyleContentData.mContent

Defines

#define STYLE_STRUCT(name, checkdata_cb, ctor_args)   eStyleStruct_##name,
#define NS_STYLE_INHERIT_BIT(sid_)   (1 << PRInt32(eStyleStruct_##sid_))
#define NS_STYLE_INHERIT_MASK   0x00ffffff
#define NS_STYLE_HAS_TEXT_DECORATIONS   0x01000000
#define NS_RULE_NODE_GC_MARK   0x02000000
#define NS_DEFINE_STATIC_STYLESTRUCTID_ACCESSOR(the_sid)   static nsStyleStructID GetStyleStructID() {return the_sid;}
#define NS_GET_STYLESTRUCTID(type)   (type::GetStyleStructID())
#define BORDER_COLOR_TRANSPARENT   0x40
#define BORDER_COLOR_FOREGROUND   0x20
#define BORDER_COLOR_SPECIAL   0x60
#define BORDER_STYLE_MASK   0x1F
#define NS_SPACING_MARGIN   0
#define NS_SPACING_PADDING   1
#define NS_SPACING_BORDER   2
#define DELETE_ARRAY_IF(array)   if (array) { delete[] array; array = nsnull; }
#define BORDER_PRECEDENT_EQUAL   0
#define BORDER_PRECEDENT_LOWER   1
#define BORDER_PRECEDENT_HIGHER   2

Enumerations

enum  nsStyleStructID { nsStyleStructID_Length }
enum  nsStyleContentType {
  eStyleContentType_String = 1, eStyleContentType_Image = 10, eStyleContentType_Attr = 20, eStyleContentType_Counter = 30,
  eStyleContentType_Counters = 31, eStyleContentType_OpenQuote = 40, eStyleContentType_CloseQuote = 41, eStyleContentType_NoOpenQuote = 42,
  eStyleContentType_NoCloseQuote = 43
}

Class Documentation

struct nsStyleCounterData

Definition at line 939 of file nsStyleStruct.h.

Collaboration diagram for nsStyleCounterData:
Class Members
nsString mCounter
PRInt32 mValue
union nsStyleBackground.mBackgroundXPosition

Definition at line 187 of file nsStyleStruct.h.

Class Members
nscoord mCoord
float mFloat
union nsStyleBackground.mBackgroundYPosition

Definition at line 187 of file nsStyleStruct.h.

Class Members
nscoord mCoord
float mFloat
union nsStyleContentData.mContent

Definition at line 921 of file nsStyleStruct.h.

Class Members
Array * mCounters
imgIRequest * mImage
PRUnichar * mString

Define Documentation

Definition at line 210 of file nsStyleStruct.h.

Definition at line 211 of file nsStyleStruct.h.

Definition at line 209 of file nsStyleStruct.h.

Definition at line 1347 of file nsStyleStruct.h.

Definition at line 1349 of file nsStyleStruct.h.

Definition at line 1348 of file nsStyleStruct.h.

Definition at line 212 of file nsStyleStruct.h.

Definition at line 945 of file nsStyleStruct.h.

#define NS_DEFINE_STATIC_STYLESTRUCTID_ACCESSOR (   the_sid)    static nsStyleStructID GetStyleStructID() {return the_sid;}

Definition at line 89 of file nsStyleStruct.h.

#define NS_GET_STYLESTRUCTID (   type)    (type::GetStyleStructID())

Definition at line 92 of file nsStyleStruct.h.

#define NS_RULE_NODE_GC_MARK   0x02000000

Definition at line 87 of file nsStyleStruct.h.

Definition at line 216 of file nsStyleStruct.h.

Definition at line 214 of file nsStyleStruct.h.

Definition at line 215 of file nsStyleStruct.h.

Definition at line 84 of file nsStyleStruct.h.

#define NS_STYLE_INHERIT_BIT (   sid_)    (1 << PRInt32(eStyleStruct_##sid_))

Definition at line 79 of file nsStyleStruct.h.

#define NS_STYLE_INHERIT_MASK   0x00ffffff

Definition at line 80 of file nsStyleStruct.h.

#define STYLE_STRUCT (   name,
  checkdata_cb,
  ctor_args 
)    eStyleStruct_##name,

Definition at line 70 of file nsStyleStruct.h.


Enumeration Type Documentation

Enumerator:
eStyleContentType_String 
eStyleContentType_Image 
eStyleContentType_Attr 
eStyleContentType_Counter 
eStyleContentType_Counters 
eStyleContentType_OpenQuote 
eStyleContentType_CloseQuote 
eStyleContentType_NoOpenQuote 
eStyleContentType_NoCloseQuote 

Definition at line 907 of file nsStyleStruct.h.

Enumerator:
nsStyleStructID_Length 

Definition at line 61 of file nsStyleStruct.h.

                     {

/*
 * Define the constants eStyleStruct_Font, etc.
 *
 * The C++ standard, section 7.2, guarantees that enums begin with 0 and
 * increase by 1.
 */

#define STYLE_STRUCT(name, checkdata_cb, ctor_args) eStyleStruct_##name,
#include "nsStyleStructList.h"
#undef STYLE_STRUCT

nsStyleStructID_Length /* one past the end; length of 0-based list */

};