minor tweaks to nsBasicStyleInfo struct.

This commit is contained in:
pinkerton%netscape.com 1998-12-14 23:51:04 +00:00
Родитель 6323c73a20
Коммит 78494faf03
1 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -19,9 +19,13 @@
#ifndef nsHierarchicalDataModel_h___ #ifndef nsHierarchicalDataModel_h___
#define nsHierarchicalDataModel_h___ #define nsHierarchicalDataModel_h___
#include "nsFont.h"
#include "nsColor.h"
class nsHierarchicalDataItem; class nsHierarchicalDataItem;
class nsDataModelWidget; class nsDataModelWidget;
class nsIContent; class nsIContent;
class nsIImage;
// Style info helper struct shared by most widgets. // Style info helper struct shared by most widgets.
struct nsBasicStyleInfo struct nsBasicStyleInfo
@ -29,13 +33,13 @@ struct nsBasicStyleInfo
nsFont font; nsFont font;
nscolor foregroundColor; nscolor foregroundColor;
nscolor backgroundColor; nscolor backgroundColor;
nsIImage* pBackgroundImage; nsIImage* pBackgroundImage; //*** com_auto_ptr?
nsIImage* BackgroundImage ( ) const { return pBackgroundImage; }
nsBasicStyleInfo(const nsFont& aFont) nsBasicStyleInfo(const nsFont& aFont)
:font(aFont) :font(aFont), pBackgroundImage(nsnull) { }
{
pBackgroundImage = nsnull;
}
}; };
// ----------------------------------------------------------------- // -----------------------------------------------------------------