зеркало из https://github.com/mozilla/pjs.git
Fix for Motif builds.
This commit is contained in:
Родитель
aa90a808ca
Коммит
ddccc52490
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче