Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsBorderColors Struct Reference

#include <nsStyleStruct.h>

Collaboration diagram for nsBorderColors:
Collaboration graph
[legend]

List of all members.

Public Member Functions

nsBorderColorsCopyColors ()
 nsBorderColors ()
 nsBorderColors (const nscolor &aColor, PRBool aTransparent, nsBorderColors *aNext=nsnull)
 ~nsBorderColors ()
PRBool Equals (nsBorderColors *aOther)

Public Attributes

nsBorderColorsmNext
nscolor mColor
PRBool mTransparent

Detailed Description

Definition at line 290 of file nsStyleStruct.h.


Constructor & Destructor Documentation

Definition at line 302 of file nsStyleStruct.h.

:mNext(nsnull) { mColor = NS_RGB(0,0,0); };

Here is the call graph for this function:

Here is the caller graph for this function:

nsBorderColors::nsBorderColors ( const nscolor aColor,
PRBool  aTransparent,
nsBorderColors aNext = nsnull 
) [inline]

Definition at line 304 of file nsStyleStruct.h.

                                                                                           {
    mColor = aColor;
    mTransparent = aTransparent;
    mNext = aNext;
  }

Definition at line 310 of file nsStyleStruct.h.

                    {
    delete mNext;
  }

Member Function Documentation

Definition at line 295 of file nsStyleStruct.h.

                               {
    nsBorderColors* next = nsnull;
    if (mNext)
      next = mNext->CopyColors();
    return new nsBorderColors(mColor, mTransparent, next);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 314 of file nsStyleStruct.h.

                                        {
    nsBorderColors* c1 = this;
    nsBorderColors* c2 = aOther;
    while (c1 && c2) {
      if (c1->mColor != c2->mColor ||
          c1->mTransparent != c2->mTransparent)
        return PR_FALSE;
      c1 = c1->mNext;
      c2 = c2->mNext;
    }
    return !c1 && !c2;
  }

Member Data Documentation

Definition at line 292 of file nsStyleStruct.h.

Definition at line 291 of file nsStyleStruct.h.

Definition at line 293 of file nsStyleStruct.h.


The documentation for this struct was generated from the following file: