This commit is contained in:
briano%netscape.com 1999-05-12 22:23:04 +00:00
Родитель aa90a808ca
Коммит ddccc52490
2 изменённых файлов: 14 добавлений и 0 удалений

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

@ -67,6 +67,7 @@ public:
NS_IMETHOD GetPaletteInfo(nsPaletteInfo&); NS_IMETHOD GetPaletteInfo(nsPaletteInfo&);
NS_IMETHOD Init(nsNativeWidget aNativeWidget); NS_IMETHOD Init(nsNativeWidget aNativeWidget);
NS_IMETHOD GetScrollBarDimensions(float &aWidth, float &aHeight) const; NS_IMETHOD GetScrollBarDimensions(float &aWidth, float &aHeight) const;
NS_IMETHOD GetSystemAttribute(nsSystemAttrID anID, SystemAttrStruct * aInfo) const;
NS_IMETHOD GetDrawingSurface(nsIRenderingContext &aContext, nsDrawingSurface &aSurface); NS_IMETHOD GetDrawingSurface(nsIRenderingContext &aContext, nsDrawingSurface &aSurface);
NS_IMETHOD ConvertPixel(nscolor aColor, PRUint32 & aPixel); NS_IMETHOD ConvertPixel(nscolor aColor, PRUint32 & aPixel);

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

@ -24,6 +24,16 @@
#include "X11/Xlib.h" #include "X11/Xlib.h"
#include "X11/Xutil.h" #include "X11/Xutil.h"
/* taken from ../nsBlender.h */
typedef enum
{
nsLowQual = 0,
nsLowMedQual,
nsMedQual,
nsHighMedQual,
nsHighQual
} nsBlendQuality;
class nsImageMotif : public nsIImage class nsImageMotif : public nsIImage
{ {
public: public:
@ -35,10 +45,12 @@ public:
/** /**
@see nsIImage.h @see nsIImage.h
*/ */
virtual PRInt32 GetBytesPix() { return mNumBytesPixel; }
virtual PRInt32 GetHeight() { return mHeight; } virtual PRInt32 GetHeight() { return mHeight; }
virtual PRInt32 GetWidth() { return mWidth; } virtual PRInt32 GetWidth() { return mWidth; }
virtual PRUint8* GetBits() { return mImageBits; } virtual PRUint8* GetBits() { return mImageBits; }
virtual void* GetBitInfo() { return nsnull; } virtual void* GetBitInfo() { return nsnull; }
virtual PRBool GetIsRowOrderTopToBottom() { return mIsTopToBottom; }
virtual PRInt32 GetLineStride() {return mRowBytes; } virtual PRInt32 GetLineStride() {return mRowBytes; }
NS_IMETHOD Draw(nsIRenderingContext &aContext, nsDrawingSurface aSurface, PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight); NS_IMETHOD Draw(nsIRenderingContext &aContext, nsDrawingSurface aSurface, PRInt32 aX, PRInt32 aY, PRInt32 aWidth, PRInt32 aHeight);
NS_IMETHOD Draw(nsIRenderingContext &aContext, nsDrawingSurface aSurface, PRInt32 aSX, PRInt32 aSY, PRInt32 aSWidth, PRInt32 aSHeight, NS_IMETHOD Draw(nsIRenderingContext &aContext, nsDrawingSurface aSurface, PRInt32 aSX, PRInt32 aSY, PRInt32 aSWidth, PRInt32 aSHeight,
@ -108,6 +120,7 @@ private:
PRBool mConverted; PRBool mConverted;
PRUint8 *mBitsForCreate; PRUint8 *mBitsForCreate;
PRInt32 mSizeImage; PRInt32 mSizeImage;
PRBool mIsTopToBottom;
XImage *mImage ; XImage *mImage ;
nsColorMap *mColorMap; nsColorMap *mColorMap;
PRInt16 mNumPalleteColors; PRInt16 mNumPalleteColors;