S60UIExampledocument.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1147k
源码类别:
Symbian
开发平台:
C/C++
- void DoBitBlt(const TPoint& aDest,CFbsDevice* aDevice,const TRect& aSourceRect);
- void DoBitBlt(const TPoint& aDest,CBitwiseBitmap* aBitmap,TUint32* aBase,const TRect& aSourceRect);
- void DoBitBltMasked(const TPoint& aDest,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,TBool aInvertMask,const TPoint& aDitherOrigin,TInt aShadowMode);
- void DoBitBltMaskedFlicker(const TPoint& aDest,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,TBool aInvertMask,const TPoint& aDitherOrigin,TInt aShadowMode);
- void DoBitBltMaskedNonFlicker(const TPoint& aDest,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,TBool aInvertMask,const TPoint& aDitherOrigin,TInt aShadowMode);
- void DoBitBltMaskedNonFlickerSolid(const TPoint& aDest,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,TBool aInvertMask,const TPoint& aDitherOrigin,TInt aShadowMode);
- void DoBitBltMaskedNonFlickerPatterned(const TPoint& aDest,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,TBool aInvertMask,const TPoint& aDitherOrigin,TInt aShadowMode);
- void DoBitBltAlpha(const TPoint& aDest,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,const TPoint& aDitherOrigin,TInt aShadowMode);
- void DoBitBltAlpha(const TPoint& aDestPt,
- const CBitwiseBitmap* aSrcBmp1,
- TUint32* aSrcBmpDataAddr1,
- const CBitwiseBitmap* aSrcBmp2,
- TUint32* aSrcBmpDataAddr2,
- const CBitwiseBitmap* aAlphaBmp,
- TUint32* aAlphaBmpDataAddr,
- const TRect& aSrcRect1,
- const TPoint& aSrcPt2,
- const TPoint& aAlphaPt,
- TInt aShadowMode);
- void DoCopyRect(const TPoint&,const TRect&);
- void DoDrawBitmap(const TRect&,CBitwiseBitmap*,TUint32* aBase,const TRect&,const TPoint& aDitherOrigin);
- void DoDrawBitmapMasked(const TRect& aDestRect,CBitwiseBitmap* aSourceBitmap,TUint32* aSourceBase,const TRect& aSourceRect,CBitwiseBitmap* aMaskBitmap,TUint32* aMaskBase,TBool aInvertMask,const TPoint& aDitherOrigin);
- void DoDrawLine(TPoint aStart,TPoint aEnd,TBool aDrawStartPoint);
- void DoDrawDottedWideLine(const TPoint& pt1,const TPoint& pt2,TBool drawstart,const TRect& screenrect);
- void DoDrawSolidWideLine(const TPoint& pt1,const TPoint& pt2,TBool drawstart,const TRect& screenrect);
- void DoDrawText(CFont::TPositionParam& aParam);
- void DoDrawCharacter(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData);
- void DoDrawTextEx(CFont::TPositionParam& aParam,const CBitmapFont* font);
- void DoDrawCharacterEx(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData,
- TBool aBold,TBool aItalic,TInt aSemiAscent);
- void DoDrawCharacterAntiAliased(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData);
- void DoDrawTextLarge(CFont::TPositionParam& aParam,const CBitmapFont* font);
- void DoDrawCharacterLarge(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData,
- TBool aBold,TBool aItalic,TInt aSemiAscent,TInt aWidthFactor,TInt aHeightFactor);
- void DoDrawCharacterExLarge(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData,
- TBool aBold,TBool aItalic,TInt aSemiAscent,TInt aWidthFactor,TInt aHeightFactor);
- void DoDrawCharacterMultiplied(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData,
- TBool aBold,TBool aItalic,TInt aSemiAscent,TInt aWidthMultiplier,TInt aHeightMultiplier);
- void DoDrawTextVertical(CFont::TPositionParam& aParam,const CBitmapFont* font,TBool aUp);
- void DoDrawCharacterVertical(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData,
- TBool aBold,TBool aItalic,TInt aSemiAscent,TInt aWidthFactor,TInt aHeightFactor,TBool aUp);
- void DoDrawCharacterVerticalAntiAliased(const TPoint& aTopLeft,const TSize& aDataSize,const TUint8* aData,TBool aUp);
- void DoPlot(const TPoint& pt);
- void EllipseFill(const TRect& aRect);
- void EllipseOutline(const TRect& aRect);
- void EllipseOutlineWide(const TRect& aRect);
- void GetUnderlineMetrics(TInt& aTop,TInt& aBottom);
- void GetStrikethroughMetrics(TInt& aTop,TInt& aBottom);
- void OutputCharLine(TPoint aPrintPos,TUint32* aBuffer,TInt aDataLength,TInt aNum,TBool aBold,TInt aWidthFactor,TInt aHeightFactor);
- void OutputCharLineMultiplied(TPoint aPrintPos,TUint32* aBuffer,TInt aDataLength,TInt aNum,TBool aBold,TInt aWidthMultiplier,TInt aHeightMultiplier);
- void OutputCharLineVertical(TPoint aPrintPos,TUint32* aBuffer,TInt aDataLength,TInt aNum,TBool aBold,TInt aWidthFactor,TInt aHeightFactor,TBool aUp);
- void PenAllocate();
- void PenDrawClipped(TPoint aPoint);
- void PenDrawDeferred(TPoint aPoint,TInt* aArray,TInt aFirstElement);
- void PieArcOutline(const TRect& aRect,const TPoint& aStartRadius,const TPoint& aEndRadius,TBool aDoPie);
- void PieFill(const TRect& aRect,const TPoint& aStartRadius,const TPoint& aEndRadius);
- void PieShell(const TRect& ellrect,const TPoint& startradius,const TPoint& endradius,TBool quads[5],TInt startquad,TInt endquad);
- void PieTriangles(TBool aInside,const TPoint& aStart,const TPoint& aEnd);
- void PieSliver(const TRect& ellrect,const TPoint& startradius,const TPoint& endradius,TInt quad);
- void PolyFill(const CArrayFix<TPoint> * aPointList,TFillRule aFillRule);
- void PolyFillLarge(const CArrayFix<TPoint> * aPointList,TFillRule aFillRule);
- void PolyFill(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule);
- void PolyFillLarge(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule);
- void PolyOutline(const CArrayFix<TPoint> * aPointList);
- void PolyOutline(const TPoint* aPointList,TInt aNumPoints);
- void RectFill(const TRect& aRect);
- void RoundRectFill(const TRect& aRect,TSize aSize);
- void RoundRectOutline(const TRect& aRect,TSize aSize);
- void SetupDevice() const;
- void ShadowFadeArea(const TRegion* aRegion,TInt8 aShadowMode);
- TBool UserClipRect(TRect& aRect);
- CGraphicsAccelerator* GraphicsAccelerator();
- private:
- __declspec(dllexport) void Reserved_CGraphicsContext_1();
- __declspec(dllexport) void Reserved_CGraphicsContext_2();
- __declspec(dllexport) void Reserved_CBitmapContext_1();
- __declspec(dllexport) void Reserved_CBitmapContext_2();
- __declspec(dllexport) void Reserved_CBitmapContext_3();
- __declspec(dllexport) virtual void Reserved_CFbsBitGc_1();
- __declspec(dllexport) virtual void Reserved_CFbsBitGc_2();
- __declspec(dllexport) virtual void Reserved_CFbsBitGc_3();
- __declspec(dllexport) virtual void Reserved_CFbsBitGc_4();
- __declspec(dllexport) virtual void Reserved_CFbsBitGc_5();
- private:
- CFbsBitGcBitmap iBrushBitmap;
- TBool iBrushUsed;
- TRgb iBrushColor;
- TPoint iBrushOrigin;
- TBrushStyle iBrushStyle;
- TRect iClipRect;
- TRegionFix<1> iDefaultRegion;
- const TRegion* iDefaultRegionPtr;
- TRect iUserClipRect;
- CFbsDevice* iDevice;
- TPoint iDitherOrigin;
- TInt iDotLength;
- TInt iDotMask;
- TInt iDotParam;
- TInt iDotDirection;
- TDrawMode iDrawMode;
- TRect iDrawnTo;
- CFbsBitGcFont iFont;
- TInt iCharJustExcess;
- TInt iCharJustNum;
- TInt iWordJustExcess;
- TInt iWordJustNum;
- TPoint iLastPrintPosition;
- TPoint iLinePosition;
- TPoint iOrigin;
- TInt* iPenArray;
- TRgb iPenColor;
- TPenStyle iPenStyle;
- TSize iPenSize;
- TInt8 iShadowMode;
- TInt8 iAutoUpdateJustification;
- TUint8 iFadeBlackMap;
- TUint8 iFadeWhiteMap;
- TFontStrikethrough iStrikethrough;
- TFontUnderline iUnderline;
- TDisplayMode iUserDisplayMode;
- RRegion iClippingRegion;
- };
- inline void CFbsBitGc::SetFadeMode(TBool aFadeMode )
- {SetFaded(aFadeMode);}
- inline void CFbsBitGc::SetFadingParameters(TUint8 aBlackMap )
- {SetFadingParameters(aBlackMap,255);}
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\graphicsaccelerator.h" /* stack depth 8 */
- #line 17
- class CFbsBitmap;
- class TAcceleratedBitmapSpec;
- #line 32
- class TAcceleratedBitmapInfo
- {
- public:
- TDisplayMode iDisplayMode;
- TUint8* iAddress;
- TSize iSize;
- TInt iLinePitch;
- TInt iPixelShift;
- TUint8* iPhysicalAddress;
- };
- #line 69
- class RHardwareBitmap
- {
- friend class CBitwiseBitmap;
- friend class CFbsScreenDevice;
- public:
- inline RHardwareBitmap();
- inline RHardwareBitmap(TInt aHandle);
- __declspec(dllexport) TInt GetInfo(TAcceleratedBitmapInfo& aInfo) const;
- private:
- __declspec(dllexport) TInt SetAsScreenReference(TInt aScreen=-1);
- __declspec(dllexport) TInt Create(TDisplayMode aDisplayMode, TSize aSize, TUid aCreatorUid);
- __declspec(dllexport) void Destroy();
- public:
- TInt iHandle;
- };
- inline RHardwareBitmap::RHardwareBitmap()
- : iHandle(0)
- {}
- inline RHardwareBitmap::RHardwareBitmap(TInt aHandle)
- : iHandle(aHandle)
- {}
- #line 114
- class TBitmapLockCount
- {
- friend class TAcceleratedBitmapSpec;
- public:
- inline TBitmapLockCount() : iCount(0) {}
- private:
- inline TInt Inc() { return iCount++; }
- inline TInt Dec() { return --iCount; }
- private:
- TInt iCount;
- };
- #line 139
- class TAcceleratedBitmapSpec
- {
- public:
- inline TAcceleratedBitmapSpec();
- __declspec(dllexport) TAcceleratedBitmapSpec(CFbsBitmap* aBitmap);
- __declspec(dllexport) TAcceleratedBitmapSpec(RHardwareBitmap aBitmap);
- __declspec(dllexport) TInt GetInfo(TAcceleratedBitmapInfo& aInfo) const;
- inline void Lock(TBitmapLockCount& aCount);
- inline void Lock(TBitmapLockCount& aCount,TAcceleratedBitmapInfo& aInfo);
- inline void Unlock(TBitmapLockCount& aCount);
- enum TAcceleratedBitmapType
- {
- ENoBitmap,
- EFbsBitmap,
- EHardwareBitmap,
- };
- enum TAcceleratedBitmapLock
- {
- EBitmapIsStatic,
- EBitmapNeedsLocking,
- };
- inline TAcceleratedBitmapType Type() const;
- inline TInt Handle() const;
- private:
- __declspec(dllexport) void DoLock(TBitmapLockCount& aCount);
- __declspec(dllexport) void DoLock(TBitmapLockCount& aCount,TAcceleratedBitmapInfo& aInfo);
- __declspec(dllexport) void DoUnlock(TBitmapLockCount& aCount);
- private:
- TUint8 iType;
- TUint8 iLockStatus;
- TUint8 iSpare1;
- TUint8 iSpare2;
- TInt iHandle;
- };
- inline TAcceleratedBitmapSpec::TAcceleratedBitmapSpec()
- : iType(ENoBitmap), iLockStatus(EBitmapIsStatic)
- {}
- #line 210
- inline void TAcceleratedBitmapSpec::Lock(TBitmapLockCount& aCount)
- { if(iLockStatus==EBitmapNeedsLocking) DoLock(aCount); }
- #line 226
- inline void TAcceleratedBitmapSpec::Lock(TBitmapLockCount& aCount,TAcceleratedBitmapInfo& aInfo)
- { if(iLockStatus==EBitmapNeedsLocking) DoLock(aCount,aInfo); }
- #line 237
- inline void TAcceleratedBitmapSpec::Unlock(TBitmapLockCount& aCount)
- { if(iLockStatus==EBitmapNeedsLocking) DoUnlock(aCount); }
- inline TAcceleratedBitmapSpec::TAcceleratedBitmapType TAcceleratedBitmapSpec::Type() const
- { return (TAcceleratedBitmapSpec::TAcceleratedBitmapType)iType; }
- inline TInt TAcceleratedBitmapSpec::Handle() const
- { return iHandle; }
- #line 268
- enum TTransparencyType
- {
- ETransparentPixelZero,
- ETransparentPixel,
- ETransparentColor,
- ETransparent1555,
- };
- #line 303
- class TGraphicsAcceleratorCaps
- {
- public:
- enum TClipCaps
- {
- EClipToBitmap = 1,
- EClipping = 2
- };
- enum TMaskBitmapCaps
- {
- EMaskBitmapNone = 0,
- EMaskBitmapAnyDisplayMode,
- EMaskBitmapMatchingDisplayMode,
- EMaskBitmapGray2,
- };
- enum TAlphaChannelCaps
- {
- EAlpha4444 = 1,
- EAlpha8888 = 2,
- EAlpha1555 = 4,
- };
- enum TAlphaBitmapCaps
- {
- EAlphaBitmapGray256 = 1,
- EAlphaBitmapColor16M = 2,
- EAlphaBitmapMatchingMode = 4,
- };
- enum TPatternSizeCaps
- {
- EPatternSizeAny = 0xFFFFFFFF,
- };
- enum TPatternCaps
- {
- EPatternAnyDisplayMode = 1,
- EPatternMatchingDisplayMode = 2,
- EPatternMustBeSquare = 4,
- };
- enum TPolygonCaps
- {
- EPolygonFillAlternate = 1,
- EPolygonFillWinding = 2,
- };
- TInt iStructureSize;
- TInt iVersion;
- TUid iVendorUid;
- TUint iDisplayModes;
- TUint iClipping;
- TMaskBitmapCaps iMaskType;
- TUint iTransparency;
- TUint iAlphaChannel;
- TUint iAlphaBitmap;
- #line 473
- TUint iPatternSizes;
- TUint iPattern;
- TUint iPolygon;
- TUint iReserved[4];
- };
- #line 508
- class TGraphicsOperation
- {
- public:
- enum TGopFunction
- {
- EFilledRect,
- EFilledRectUsingDrawMode,
- EFilledRectWithPattern,
- EInvertRect,
- EFadeRect,
- EBitBlt,
- EBitBltMasked,
- EBitBltTransparent,
- EBitBltAlphaChannel,
- EBitBltAlphaBitmap,
- EScaledBitBlt,
- EScaledBitBltMasked,
- EScaledBitBltTransparent,
- EScaledBitBltAlphaChannel,
- EScaledBitBltAlphaBitmap,
- EFilledPolygon,
- EFilledPolygonWithPattern,
- };
- public:
- inline TGopFunction Function() const { return iFunction; }
- inline TInt Size() const { return iSize; }
- inline TGraphicsOperation* Next() const;
- inline void Append(TInt aNumBytes,TAny* aData);
- protected:
- inline TGraphicsOperation(TGopFunction aFunction, TInt aArgSize);
- inline TGraphicsOperation() {}
- protected:
- TGopFunction iFunction;
- TInt iSize;
- };
- inline TGraphicsOperation::TGraphicsOperation(TGopFunction aFunction, TInt aSize)
- : iFunction(aFunction) , iSize(aSize) {}
- inline TGraphicsOperation* TGraphicsOperation::Next() const
- { return (TGraphicsOperation*)((TUint8*)this+iSize); }
- inline void TGraphicsOperation::Append(TInt aNumBytes,TAny* aData)
- {
- Mem::Copy(Next(),aData,aNumBytes);
- iSize += aNumBytes;
- }
- #line 579
- class CGraphicsAccelerator : public CBase
- {
- public:
- virtual const TGraphicsAcceleratorCaps* Capabilities() = 0;
- #line 598
- virtual TInt Operation(const TGraphicsOperation& aOperation) = 0;
- #line 611
- virtual TInt Operation(const TGraphicsOperation& aOperation,TInt aNumClipRects,TRect* aClipRects) = 0;
- #line 634
- virtual TInt Operation(TDes8& aBuffer) = 0;
- #line 657
- virtual TInt Operation(TDes8& aBuffer,TInt aNumClipRects,TRect* aClipRects) = 0;
- public:
- virtual void Reserved_1() = 0;
- virtual void Reserved_2() = 0;
- virtual void Reserved_3() = 0;
- virtual void Reserved_4() = 0;
- };
- #line 678
- class CSoftwareGraphicsAccelerator : public CGraphicsAccelerator
- {
- public:
- __declspec(dllexport) static CSoftwareGraphicsAccelerator* NewL(CFbsBitmap* aBitmap);
- __declspec(dllexport) static const TGraphicsAcceleratorCaps* GenericCapabilities();
- public:
- virtual const TGraphicsAcceleratorCaps* Capabilities() = 0;
- virtual TInt Operation(const TGraphicsOperation& aOperation) = 0;
- virtual TInt Operation(const TGraphicsOperation& aOperation,TInt aNumClipRects,TRect* aClipRects) = 0;
- virtual TInt Operation(TDes8& aBuffer) = 0;
- virtual TInt Operation(TDes8& aBuffer,TInt aNumClipRects,TRect* aClipRects) = 0;
- virtual void Reserved_1() = 0;
- virtual void Reserved_2() = 0;
- virtual void Reserved_3() = 0;
- virtual void Reserved_4() = 0;
- };
- #line 713
- class CHardwareGraphicsAccelerator : public CGraphicsAccelerator
- {
- public:
- __declspec(dllexport) static CHardwareGraphicsAccelerator* NewL(RHardwareBitmap aBitmap);
- __declspec(dllexport) static const TGraphicsAcceleratorCaps* GenericCapabilities();
- public:
- virtual const TGraphicsAcceleratorCaps* Capabilities() = 0;
- virtual TInt Operation(const TGraphicsOperation& aOperation) = 0;
- virtual TInt Operation(const TGraphicsOperation& aOperation,TInt aNumClipRects,TRect* aClipRects) = 0;
- virtual TInt Operation(TDes8& aBuffer) = 0;
- virtual TInt Operation(TDes8& aBuffer,TInt aNumClipRects,TRect* aClipRects) = 0;
- virtual void Reserved_1() = 0;
- virtual void Reserved_2() = 0;
- virtual void Reserved_3() = 0;
- virtual void Reserved_4() = 0;
- };
- #line 752
- class TGopFillPattern
- {
- public:
- TAcceleratedBitmapSpec iBitmap;
- TPoint iOrigin;
- };
- #line 789
- class TGopFadeParams
- {
- public:
- TInt iScale;
- TInt iOffset;
- };
- #line 814
- class TGopTransparency
- {
- public:
- inline TGopTransparency(TTransparencyType aType) : iType(aType), iParam(0) {}
- inline TGopTransparency(TInt aPixelValue) : iType(ETransparentPixel), iParam(aPixelValue) {}
- inline TGopTransparency(TRgb aRgb) : iType(ETransparentColor), iParam(aRgb.Value()) {}
- inline TRgb Color() const { return TRgb(iParam); }
- inline TInt Pixel() const { return iParam; }
- public:
- TTransparencyType iType;
- TUint32 iParam;
- };
- #line 865
- #pragma warning(disable : 4355)
- #line 876
- class TGopFilledRect : public TGraphicsOperation
- {
- public:
- inline TGopFilledRect(const TRect& aRect,TRgb aColor)
- : TGraphicsOperation(EFilledRect,sizeof(*this)), iRect(aRect) , iColor(aColor) {}
- public:
- TRect iRect;
- TRgb iColor;
- };
- #line 905
- class TGopFilledRectUsingDrawMode : public TGraphicsOperation
- {
- public:
- inline TGopFilledRectUsingDrawMode(const TRect& aRect,TRgb aColor,CGraphicsContext::TDrawMode aDrawMode)
- : TGraphicsOperation(EFilledRectUsingDrawMode,sizeof(*this)), iRect(aRect) , iColor(aColor) , iDrawMode(aDrawMode) {}
- public:
- TRect iRect;
- TRgb iColor;
- CGraphicsContext::TDrawMode iDrawMode;
- };
- #line 935
- class TGopFilledRectWithPattern : public TGraphicsOperation
- {
- public:
- inline TGopFilledRectWithPattern(const TRect& aRect,TGopFillPattern aPattern)
- : TGraphicsOperation(EFilledRectWithPattern,sizeof(*this)), iRect(aRect) , iPattern(aPattern) {}
- public:
- TRect iRect;
- TGopFillPattern iPattern;
- };
- #line 963
- class TGopInvertRect : public TGraphicsOperation
- {
- public:
- inline TGopInvertRect(const TRect& aRect)
- : TGraphicsOperation(EInvertRect,sizeof(*this)), iRect(aRect) {}
- public:
- TRect iRect;
- };
- #line 984
- class TGopFadeRect : public TGraphicsOperation
- {
- public:
- inline TGopFadeRect(const TRect& aRect, const TGopFadeParams aFade)
- : TGraphicsOperation(EFadeRect,sizeof(*this)), iRect(aRect), iFade(aFade) {}
- public:
- TRect iRect;
- TGopFadeParams iFade;
- };
- #line 1011
- class TGopBitBlt : public TGraphicsOperation
- {
- public:
- inline TGopBitBlt(const TPoint& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect)
- : TGraphicsOperation(EBitBlt,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect) {}
- public:
- TPoint iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- };
- #line 1050
- class TGopBitBltMasked : public TGraphicsOperation
- {
- public:
- #line 1062
- inline TGopBitBltMasked(const TPoint& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect, TAcceleratedBitmapSpec aMask)
- : TGraphicsOperation(EBitBltMasked,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect), iMask(aMask) {}
- public:
- TPoint iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- TAcceleratedBitmapSpec iMask;
- };
- #line 1091
- class TGopBitBltTransparent : public TGraphicsOperation
- {
- public:
- #line 1106
- inline TGopBitBltTransparent(const TPoint& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect, TGopTransparency aTransparency)
- : TGraphicsOperation(EBitBltTransparent,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect), iTransparency(aTransparency) {}
- public:
- TPoint iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- TGopTransparency iTransparency;
- };
- #line 1139
- class TGopBitBltAlphaChannel : public TGraphicsOperation
- {
- public:
- inline TGopBitBltAlphaChannel(const TPoint& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect)
- : TGraphicsOperation(EBitBltAlphaChannel,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect) {}
- public:
- TPoint iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- };
- #line 1188
- class TGopBitBltAlphaBitmap : public TGraphicsOperation
- {
- public:
- #line 1200
- inline TGopBitBltAlphaBitmap(const TPoint& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect, TAcceleratedBitmapSpec aAlphaBitmap)
- : TGraphicsOperation(EBitBltAlphaBitmap,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect), iAlphaBitmap(aAlphaBitmap) {}
- public:
- TPoint iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- TAcceleratedBitmapSpec iAlphaBitmap;
- };
- #line 1227
- class TGopScaledBitBlt : public TGraphicsOperation
- {
- public:
- #line 1238
- inline TGopScaledBitBlt(const TRect& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect)
- : TGraphicsOperation(EScaledBitBlt,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect) {}
- public:
- TRect iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- };
- #line 1267
- class TGopScaledBitBltMasked : public TGraphicsOperation
- {
- public:
- #line 1280
- inline TGopScaledBitBltMasked(const TRect& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect, TAcceleratedBitmapSpec aMask)
- : TGraphicsOperation(EScaledBitBltMasked,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect), iMask(aMask) {}
- public:
- TRect iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- TAcceleratedBitmapSpec iMask;
- };
- #line 1310
- class TGopScaledBitBltTransparent : public TGraphicsOperation
- {
- public:
- #line 1325
- inline TGopScaledBitBltTransparent(const TRect& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect, TGopTransparency aTransparency)
- : TGraphicsOperation(EScaledBitBltTransparent,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect), iTransparency(aTransparency) {}
- public:
- TRect iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- TGopTransparency iTransparency;
- };
- #line 1355
- class TGopScaledBitBltAlphaChannel : public TGraphicsOperation
- {
- public:
- #line 1367
- inline TGopScaledBitBltAlphaChannel(const TRect& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect)
- : TGraphicsOperation(EScaledBitBltAlphaChannel,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect) {}
- public:
- TRect iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- };
- #line 1394
- class TGopScaledBitBltAlphaBitmap : public TGraphicsOperation
- {
- public:
- #line 1406
- inline TGopScaledBitBltAlphaBitmap(const TRect& aDestination, TAcceleratedBitmapSpec aSourceBitmap, TRect& aSourceRect, TAcceleratedBitmapSpec aAlphaBitmap)
- : TGraphicsOperation(EScaledBitBltAlphaBitmap,sizeof(*this)), iDestination(aDestination), iSourceBitmap(aSourceBitmap), iSourceRect(aSourceRect), iAlphaBitmap(aAlphaBitmap) {}
- public:
- TRect iDestination;
- TAcceleratedBitmapSpec iSourceBitmap;
- TRect iSourceRect;
- TAcceleratedBitmapSpec iAlphaBitmap;
- };
- #line 1434
- class TGopFilledPolygon : public TGraphicsOperation
- {
- public:
- inline TGopFilledPolygon(TRgb aColor, CGraphicsContext::TFillRule aFillRule)
- : TGraphicsOperation(EFilledPolygon,sizeof(*this)), iColor(aColor), iFillRule(aFillRule), iNumPoints(0) {}
- inline void AddPoints(TInt aNumPoints, TPoint* aPoints);
- public:
- TRgb iColor;
- CGraphicsContext::TFillRule iFillRule;
- TInt iNumPoints;
- };
- inline void TGopFilledPolygon::AddPoints(TInt aNumPoints, TPoint* aPoints)
- { Append(aNumPoints*sizeof(TPoint),aPoints); iNumPoints += aNumPoints; }
- #line 1478
- class TGopFilledPolygonWithPattern : public TGraphicsOperation
- {
- public:
- inline TGopFilledPolygonWithPattern(TGopFillPattern aPattern, CGraphicsContext::TFillRule aFillRule)
- : TGraphicsOperation(EFilledPolygonWithPattern,sizeof(*this)), iPattern(aPattern), iFillRule(aFillRule), iNumPoints(0) {}
- inline void AddPoints(TInt aNumPoints, TPoint* aPoints);
- public:
- TGopFillPattern iPattern;
- CGraphicsContext::TFillRule iFillRule;
- TInt iNumPoints;
- };
- inline void TGopFilledPolygonWithPattern::AddPoints(TInt aNumPoints, TPoint* aPoints)
- { Append(aNumPoints*sizeof(TPoint),aPoints); iNumPoints += aNumPoints; }
- #line 23 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.h" /* stack depth 7 */
- enum {EScanBufSize=0x80};
- class CFbsDrawDevice;
- #line 53
- class CFbsDevice : public CBitmapDevice
- {
- friend class CFbsBitGc;
- public:
- __declspec(dllexport) ~CFbsDevice();
- __declspec(dllexport) TInt CreateContext(CFbsBitGc*& aGc);
- inline TInt CreateContext(CGraphicsContext*& aGc);
- __declspec(dllexport) TDisplayMode DisplayMode() const;
- __declspec(dllexport) TSize SizeInPixels() const;
- __declspec(dllexport) TBool RectCompare(const TRect& aSourceRect,const CFbsDevice& aDevice,const TRect& aDeviceRect) const;
- __declspec(dllexport) TInt AddFile(const TDesC& aName,TInt& aId);
- __declspec(dllexport) void RemoveFile(TInt aId=0);
- __declspec(dllexport) virtual TInt GetNearestFontInTwips(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontInPixels(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInPixels(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetFontById(CFont*& aFont,TUid aFileId,const TAlgStyle& aStyle);
- inline TInt GetNearestFontInTwips(CFbsFont*& aFont, const TFontSpec& aFontSpec);
- inline TInt GetNearestFontInPixels(CFbsFont*& aFont, const TFontSpec& aFontSpec);
- inline TInt GetNearestFontToDesignHeightInTwips(CFbsFont*& aFont, const TFontSpec& aFontSpec);
- inline TInt GetNearestFontToDesignHeightInPixels(CFbsFont*& aFont, const TFontSpec& aFontSpec);
- inline TInt GetNearestFontToMaxHeightInTwips(CFbsFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- inline TInt GetNearestFontToMaxHeightInPixels(CFbsFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- inline TInt GetFontById(CFbsFont*& aFont,TUid aFileId,const TAlgStyle& aStyle);
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- __declspec(dllexport) TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) TInt NumTypefaces() const;
- __declspec(dllexport) void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const;
- __declspec(dllexport) TInt SetCustomPalette(const CPalette* aPalette);
- inline CGraphicsAccelerator* GraphicsAccelerator() const;
- inline CFbsBitGc::TGraphicsOrientation Orientation() const;
- __declspec(dllexport) static TDisplayMode DisplayMode16M();
- __declspec(dllexport) TInt SetScalingFactor(const TPoint& aOrigin,
- TInt aFactorX, TInt aFactorY,
- TInt aDivisorX, TInt aDivisorY);
- __declspec(dllexport) void GetDrawRect(TRect& aRect) const;
- protected:
- CFbsDevice();
- virtual void DrawingBegin(TBool = EFalse) {}
- virtual void DrawingEnd(TBool = EFalse) {}
- virtual void SetBits() {}
- virtual void CancelSprite() const {}
- virtual TSpriteBase* HideSprite() const {return(0 );}
- virtual TSpriteBase* HideSprite(const TRect&,const TRegion*) const {return(0 );}
- virtual void ShowSprite(TSpriteBase*) const {}
- virtual void ShowSprite(TSpriteBase*,const TRect&,const TRegion*) const {}
- TInt GetNearestFbsFont(CFbsFont*& aFont,const TFontSpec& aFontSpec);
- void DoGetScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TDisplayMode aDispMode);
- void ReadLineDiffMode(TInt,TInt,TInt,TAny*,TDisplayMode) const;
- void TruncateRect(TRect& aRect);
- TBool SetOrientation(CFbsBitGc::TGraphicsOrientation aOrientation);
- void DrawingBegin(const CFbsBitmap* aBitmap,TBool aAlways);
- void DrawingEnd(const CFbsBitmap* aBitmap,TBool aAlways);
- protected:
- CFbsDrawDevice* iDrawDevice;
- RFbsSession* iFbs;
- CFbsTypefaceStore* iTypefaceStore;
- TBool iLockHeap;
- TBool iScreenDevice;
- TUint8* iBitBltMaskedBuffer;
- CGraphicsAccelerator* iGraphicsAccelerator;
- CFbsBitGc::TGraphicsOrientation iOrientation;
- };
- #line 131
- class CFbsScreenDevice : public CFbsDevice
- {
- public:
- __declspec(dllexport) static CFbsScreenDevice* NewL(const TDesC& aLibname,TDisplayMode aDispMode);
- __declspec(dllexport) static CFbsScreenDevice* NewL(const TDesC& aLibname,TDisplayMode aDispMode, TRgb aWhite);
- __declspec(dllexport) static CFbsScreenDevice* NewL(TInt aScreenNo, TDisplayMode aDispMode);
- __declspec(dllexport) virtual ~CFbsScreenDevice();
- __declspec(dllexport) void GetScanLine(TDes8& aBuf,const TPoint& aStartPixel,TInt aLength,TDisplayMode aDispMode) const;
- __declspec(dllexport) void GetPixel(TRgb& aColor,const TPoint& aPixel) const;
- __declspec(dllexport) TInt HorizontalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TInt VerticalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TInt HorizontalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) TInt VerticalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) void SetAutoUpdate(TBool aValue);
- __declspec(dllexport) void DrawSpriteBegin();
- __declspec(dllexport) void DrawSpriteEnd();
- __declspec(dllexport) void CancelSprite() const;
- __declspec(dllexport) TSpriteBase* HideSprite() const;
- __declspec(dllexport) TSpriteBase* HideSprite(const TRect& aRect,const TRegion* aClippingRegion) const;
- __declspec(dllexport) void ShowSprite(TSpriteBase* aSprite) const;
- __declspec(dllexport) void ShowSprite(TSpriteBase* aSprite,const TRect& aRect,const TRegion* aClippingRegion) const;
- __declspec(dllexport) void ChangeScreenDevice(CFbsScreenDevice* aOldDevice);
- __declspec(dllexport) void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const;
- __declspec(dllexport) void SetPalette(CPalette* aPalette);
- __declspec(dllexport) TInt GetPalette(CPalette*& aPalette) const;
- __declspec(dllexport) void Update();
- __declspec(dllexport) void Update(const TRegion& aRegion);
- __declspec(dllexport) TSize SizeInTwips() const;
- __declspec(dllexport) RHardwareBitmap HardwareBitmap();
- private:
- CFbsScreenDevice(TInt aScreenNo);
- void ConstructL(TInt aScreenNo, TDisplayMode aDispMode);
- private:
- TSpriteBase* iSprite;
- TBool iSpriteDraw;
- TInt iScreenNo;
- };
- #line 177
- class CFbsBitmapDevice : public CFbsDevice
- {
- public:
- __declspec(dllexport) static CFbsBitmapDevice* NewL(CFbsBitmap* aFbsBitmap);
- __declspec(dllexport) static CFbsBitmapDevice* NewL(CFbsBitmap* aFbsBitmap,const TDesC& aLibname);
- __declspec(dllexport) virtual ~CFbsBitmapDevice();
- __declspec(dllexport) TInt Resize(const TSize& aSize);
- __declspec(dllexport) virtual void GetScanLine(TDes8& aBuf,const TPoint& aStartPixel,TInt aLength,TDisplayMode iDispMode) const;
- __declspec(dllexport) virtual void GetPixel(TRgb& aColor,const TPoint& aPixel) const;
- __declspec(dllexport) virtual TInt HorizontalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) virtual TInt VerticalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) virtual TInt HorizontalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) virtual TInt VerticalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) virtual TSize SizeInTwips() const;
- __declspec(dllexport) virtual void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const;
- __declspec(dllexport) virtual void SetPalette(CPalette* aPalette);
- __declspec(dllexport) virtual TInt GetPalette(CPalette*& aPalette) const;
- __declspec(dllexport) virtual void DrawingBegin(TBool aAlways);
- __declspec(dllexport) virtual void DrawingEnd(TBool aAlways);
- __declspec(dllexport) TInt SwapWidthAndHeight();
- private:
- CFbsBitmapDevice();
- virtual void SetBits();
- void ConstructL(CFbsBitmap* aFbsBitmap);
- void ConstructL(CFbsBitmap* aFbsBitmap,const TDesC& aLibname);
- private:
- CFbsBitGcBitmap* iFbsBmp;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.inl" /* stack depth 8 */
- #line 16
- TInt CFbsDevice::CreateContext(CGraphicsContext*& aGc)
- {
- return CreateContext((CFbsBitGc*&)aGc);
- }
- #line 36
- TInt CFbsDevice::GetNearestFontInTwips(CFbsFont*& aFont, const TFontSpec& aFontSpec)
- {
- return GetNearestFontToDesignHeightInTwips(aFont, aFontSpec);
- }
- #line 55
- TInt CFbsDevice::GetNearestFontInPixels(CFbsFont*& aFont, const TFontSpec& aFontSpec)
- {
- return GetNearestFontToDesignHeightInPixels(aFont, aFontSpec);
- }
- #line 74
- TInt CFbsDevice::GetNearestFontToDesignHeightInTwips(CFbsFont*& aFont, const TFontSpec& aFontSpec)
- {
- return GetNearestFontToDesignHeightInTwips((CFont*&)aFont, aFontSpec);
- }
- #line 92
- TInt CFbsDevice::GetNearestFontToDesignHeightInPixels(CFbsFont*& aFont, const TFontSpec& aFontSpec)
- {
- return GetNearestFontToDesignHeightInPixels((CFont*&)aFont, aFontSpec);
- }
- #line 117
- TInt CFbsDevice::GetNearestFontToMaxHeightInTwips(CFbsFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight)
- {
- return GetNearestFontToMaxHeightInTwips((CFont*&)aFont, aFontSpec, aMaxHeight);
- }
- #line 142
- TInt CFbsDevice::GetNearestFontToMaxHeightInPixels(CFbsFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight)
- {
- return GetNearestFontToMaxHeightInPixels((CFont*&)aFont, aFontSpec, aMaxHeight);
- }
- #line 156
- TInt CFbsDevice::GetFontById(CFbsFont*& aFont,TUid aFileId,const TAlgStyle& aStyle)
- {
- return GetFontById((CFont*&)aFont,aFileId,aStyle);
- }
- CGraphicsAccelerator* CFbsDevice::GraphicsAccelerator() const
- {
- return iGraphicsAccelerator;
- }
- CFbsBitGc::TGraphicsOrientation CFbsDevice::Orientation() const
- {
- return iOrientation;
- }
- #line 206 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.h" /* stack depth 7 */
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\w32std.h" /* stack depth 6 */
- const static TLitC<sizeof(L"Wserv")/2> KWSERVThreadName={sizeof(L"Wserv")/2-1,L"Wserv"} ;
- const static TLitC<sizeof(L"!Windowserver")/2> KWSERVServerName={sizeof(L"!Windowserver")/2-1,L"!Windowserver"} ;
- class RWindowBase;
- class RWindow;
- class RWsBuffer;
- class TSizeMode
- {
- public:
- inline TSizeMode(){}
- inline TSizeMode(TSize& aSize);
- static inline TInt ScaledCord(TInt aOrigin,TInt aScale);
- inline TPoint ScaledOrigin();
- public:
- CFbsBitGc::TGraphicsOrientation iRotation;
- TPoint iOrigin;
- TSize iScreenSize;
- TSize iScreenTwipsSize;
- TUint iAlternativeRotations;
- TRect iPointerCursorArea;
- TSize iScreenScale;
- TDisplayMode iDefaultDisplayMode;
- };
- #line 79
- enum TScreenModeEnforcement
- {
- ESizeEnforcementNone,
- ESizeEnforcementPixelsAndRotation,
- ESizeEnforcementPixelsTwipsAndRotation,
- };
- struct TPixelsAndRotation
- #line 112
- {
- TSize iPixelSize;
- CFbsBitGc::TGraphicsOrientation iRotation;
- };
- struct TPixelsTwipsAndRotation
- #line 128
- {
- TSize iPixelSize;
- TSize iTwipsSize;
- CFbsBitGc::TGraphicsOrientation iRotation;
- };
- #line 144
- enum {
- KLogMessageLength=0x80
- };
- typedef TBuf<KLogMessageLength> TLogMessageText;
- #line 165
- enum
- {
- KPasswordWindowGroupPriority=1000
- };
- #line 185
- enum {
- KOrdinalPositionSwitchToOwningWindow=0x80000000
- };
- #line 201
- enum TCornerType
- {
- EWindowCornerSquare,
- EWindowCorner1,
- EWindowCorner2,
- EWindowCorner3,
- EWindowCorner5,
- EWindowCornerRegion,
- ECornerTypeMask=0xFFFF
- };
- #line 240
- enum TCornerFlags
- {
- EWindowCornerNotTL=0x10000,
- EWindowCornerNotTR=0x20000,
- EWindowCornerNotBL=0x40000,
- EWindowCornerNotBR=0x80000,
- };
- enum TWindowBackupType
- {
- EWindowBackupAreaBehind=0x0001,
- EWindowBackupFullScreen=0x0002,
- };
- #line 281
- enum TEventCode
- {
- EEventNull,
- #line 298
- EEventKey,
- EEventKeyUp,
- EEventKeyDown,
- EEventModifiersChanged,
- #line 325
- EEventPointer,
- EEventPointerEnter,
- EEventPointerExit,
- EEventPointerBufferReady,
- EEventDragDrop,
- EEventFocusLost,
- EEventFocusGained,
- EEventSwitchOn,
- #line 370
- EEventPassword,
- EEventWindowGroupsChanged,
- #line 386
- EEventErrorMessage,
- EEventMessageReady,
- EEventMarkInvalid,
- #line 401
- EEventSwitchOff,
- EEventKeySwitchOff,
- EEventScreenDeviceChanged,
- EEventFocusGroupChanged,
- EEventCaseOpened,
- #line 427
- EEventCaseClosed,
- EEventWindowGroupListChanged,
- EEventWindowVisibilityChanged,
- EEventKeyRepeat=100,
- EEventDirectScreenAccessBegin=200,
- EEventDirectScreenAccessEnd,
- EEventHeartbeatTimerStateChange,
- #line 472
- EEventUser=1000,
- };
- enum THotKey
- {
- EHotKeyEnableLogging,
- EHotKeyDisableLogging,
- EHotKeyStateDump,
- EHotKeyOfDeath,
- EHotKeyShutDown,
- EHotKeyHeapDump,
- EHotKeyIncContrast,
- EHotKeyDecContrast,
- EHotKeyOff,
- EHotKeyBacklightOn,
- EHotKeyBacklightOff,
- EHotKeyBacklightToggle,
- EHotKeyScreenDimension0,
- EHotKeyScreenDimension1,
- EHotKeyScreenDimension2,
- EHotKeyScreenDimension3,
- #line 569
- EHotKeyCycleDisplaySize,
- #line 583
- EHotKeyCycleOrientation,
- EHotKeyIncBrightness,
- EHotKeyDecBrightness,
- EHotKeyCycleFocusScreen,
- EHotKeyFirstKeyType=EHotKeyEnableLogging,
- EHotKeyLastKeyType=EHotKeyCycleFocusScreen,
- };
- enum TPasswordMode
- {
- EPasswordCancel,
- EPasswordNone,
- EPasswordOnceADay,
- EPasswordAlways,
- EPasswordAlwaysTriggerNow,
- EPasswordOnceADayTriggerNow,
- };
- struct TTextCursor
- #line 662
- {
- #line 675
- enum ENamedCursors
- {
- ETypeNone,
- ETypeRectangle,
- ETypeHollowRectangle,
- ETypeFirst=ETypeRectangle,
- ETypeLast=ETypeHollowRectangle,
- ETypeLastBasic = 1000,
- };
- typedef TInt EType;
- enum EFlags
- {
- EFlagNoFlash = 0x00000001,
- EFlagClipHorizontal = 0x00000002,
- EFlagClipVertical = 0x00000004,
- EUserFlags = 0x0000FFFF,
- EFlagClipped = 0x00010000,
- EPrivateFlags = 0xFFFF0000,
- };
- TInt iType;
- TInt iHeight;
- TInt iAscent;
- TInt iWidth;
- TUint iFlags;
- TRgb iColor;
- };
- #line 762
- enum TSpriteFlags
- {
- ESpriteFlash=0x1,
- #line 782
- ESpriteNoChildClip=0x2,
- ESpriteNoShadows=0x4,
- ESpriteNonSystemFlags=0x0000FFFF,
- ESpriteSystemFlags= 0xFFFF0000,
- ESpritePointer=0x10000,
- ESpriteOOM=0x20000,
- ESpriteDisabled=0x40000,
- ESpriteActive=0x80000,
- };
- struct TSpriteMember
- {
- CFbsBitmap *iBitmap;
- #line 832
- CFbsBitmap *iMaskBitmap;
- TBool iInvertMask;
- CGraphicsContext::TDrawMode iDrawMode;
- TPoint iOffset;
- TTimeIntervalMicroSeconds32 iInterval;
- };
- #line 860
- enum TEventControl
- {
- EEventControlAlways,
- EEventControlOnlyWithKeyboardFocus,
- EEventControlOnlyWhenVisible
- };
- #line 882
- enum TPointerFilter
- {
- EPointerFilterEnterExit=0x1,
- EPointerFilterMove=0x2,
- EPointerFilterDrag=0x4,
- EPointerGenerateSimulatedMove=0x8,
- #line 907
- EPointerMoveEvents=EPointerFilterMove|EPointerGenerateSimulatedMove,
- };
- struct TPointerEvent
- {
- enum TType
- {
- EButton1Down,
- EButton1Up,
- EButton2Down,
- EButton2Up,
- EButton3Down,
- EButton3Up,
- EDrag,
- EMove,
- EButtonRepeat,
- ESwitchOn,
- };
- TType iType;
- TUint iModifiers;
- TPoint iPosition;
- TPoint iParentPosition;
- };
- struct TKeyEvent
- #line 989
- {
- TUint iCode;
- TInt iScanCode;
- TUint iModifiers;
- TInt iRepeats;
- };
- struct TModifiersChangedEvent
- {
- TUint iChangedModifiers;
- TUint iModifiers;
- };
- struct TWsVisibilityChangedEvent
- {
- enum
- {
- ECanBeSeen = 0x01,
- ECantBeSeen = 0x02,
- };
- enum
- {
- EPartiallyVisible = 0x01,
- ENotVisible = 0x02,
- EFullyVisible = 0x04,
- };
- TUint iFlags;
- };
- struct TWsErrorMessage
- {
- enum TErrorCategory
- {
- EDrawingRegion,
- EBackLight,
- ELogging,
- EContrast,
- };
- TErrorCategory iErrorCategory;
- TUint iError;
- };
- class TWsRedrawEvent
- #line 1096
- {
- public:
- inline TUint Handle() const;
- inline TRect Rect() const;
- public:
- void SetHandle(TUint aHandle);
- void SetRect(TRect aRect);
- protected:
- TUint iHandle;
- TRect iRect;
- };
- class TWsPriorityKeyEvent
- {
- public:
- inline TKeyEvent *Key() const;
- inline TUint Handle() const;
- inline void SetHandle(TUint aHandle);
- protected:
- TUint iHandle;
- TUint8 iEventData[sizeof(TKeyEvent)];
- };
- class TWsEvent
- #line 1143
- {
- public:
- enum
- {
- EWsEventDataSize=sizeof(TPointerEvent)+8
- };
- public:
- inline TPointerEvent* Pointer() const;
- inline TKeyEvent* Key() const;
- inline TModifiersChangedEvent* ModifiersChanged() const;
- inline TWsVisibilityChangedEvent* VisibilityChanged();
- inline const TWsVisibilityChangedEvent* VisibilityChanged() const;
- inline TWsErrorMessage* ErrorMessage() const;
- inline TUint8* EventData() const;
- inline TInt Type() const;
- inline TUint Handle() const;
- inline TTime Time() const;
- inline void SetType(TInt aType);
- inline void SetHandle(TUint aHandle);
- inline void SetTimeNow();
- inline TInt* Int() const;
- protected:
- TInt iType;
- TUint iHandle;
- TTime iTime;
- TUint8 iEventData[EWsEventDataSize];
- };
- class RWsPointerCursor;
- #line 1192
- enum TPointerCursorMode
- {
- EPointerCursorNone,
- EPointerCursorFixed,
- EPointerCursorNormal,
- EPointerCursorWindow,
- EPointerCursorFirstMode=EPointerCursorNone,
- EPointerCursorLastMode=EPointerCursorWindow,
- };
- #line 1229
- enum TLongCaptureFlags
- {
- ELongCaptureShortEventImmediately=0x01,
- ELongCaptureRepeatEvents=0x02,
- ELongCaptureNormal=ELongCaptureShortEventImmediately,
- ELongCaptureWaitShort=0,
- };
- class TIpcArgs;
- class TReadDescriptorType;
- class TWriteDescriptorType;
- class CWindowGc;
- class MWsClientClass
- {
- friend class CWindowGc;
- public:
- MWsClientClass();
- MWsClientClass(RWsBuffer *aBuffer);
- inline TInt WsHandle() const;
- protected:
- void Write(const TAny *aData, TInt aLength,const TAny *aData2, TInt aLength2,TUint aOpcode) const;
- void Write(const TAny *aBuf, TInt aBufLen,TUint aOpcode) const;
- void Write(TUint aOpcode) const;
- void WriteInt(TInt aInt, TUint aOpcode) const;
- void WriteRect(const TRect &aRect, TUint aOpcode) const;
- void WritePoint(const TPoint &aPoint, TUint aOpcode) const;
- void WriteSize(const TSize &aSize, TUint aOpcode) const;
- TInt WriteReply(TUint aOpcode,const TIpcArgs* aIpcArgs=0 ) const;
- TInt WriteReplyInt(TInt aInt, TUint aOpcode,const TIpcArgs* aIpcArgs=0 ) const;
- TInt WriteReply(const TAny *aBuf, TInt aBufLen,TUint aOpcode,const TIpcArgs* aIpcArgs=0 ) const;
- TInt WriteReply(const TAny *aBuf, TInt aBufLen,const TAny *aBuf2, TInt aBuflen2,TUint aOpcode,const TIpcArgs* aIpcArgs=0 ) const;
- TInt WriteReplyP(const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
- TInt WriteReplyIntP(TInt aInt, const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
- TInt WriteReplyP(const TAny *aBuf, TInt aBufLen, const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
- TInt WriteReplyP(const TAny *aBuf, TInt aBufLen,const TAny *aBuf2, TInt aBuflen2, const TWriteDescriptorType& aReplyPackage,TUint aOpcode) const;
- TInt WriteReplyByProvidingRemoteReadAccess(const TAny* aBuf, TInt aBufLen,const TReadDescriptorType& aRemoteReadBuffer,TUint aOpcode) const;
- void AddToBitmapArray(const TInt aBitmapHandle)const;
- protected:
- TInt32 iWsHandle;
- RWsBuffer *iBuffer;
- };
- class RWindowTreeNode;
- class CWsScreenDevice;
- class CWsBitmap;
- class RAnimDll;
- class RWsSpriteBase;
- class RDirectScreenAccess;
- class RSoundPlugIn;
- class RWsSession : public MWsClientClass, public RSessionBase
- #line 1339
- {
- friend class RWsBuffer;
- friend class RWindowTreeNode;
- friend class CWsScreenDevice;
- friend class CWsBitmap;
- friend class RAnimDll;
- friend class RWsSpriteBase;
- friend class RDirectScreenAccess;
- friend class RSoundPlugIn;
- public:
- #line 1357
- enum TComputeMode
- {
- EPriorityControlDisabled,
- EPriorityControlComputeOn,
- EPriorityControlComputeOff
- };
- enum {ESystemInfoArraySize=16};
- enum TLoggingCommand
- {
- ELoggingEnable,
- ELoggingDisable,
- ELoggingStatusDump,
- ELoggingHeapDump,
- };
- struct TWindowGroupChainInfo
- {
- TInt iId;
- TInt iParentId;
- };
- struct SSystemInfo
- {
- TInt iInfo[ESystemInfoArraySize];
- };
- enum TCustomTextCursorAlignment
- {
- ECustomTextCursorAlignTop,
- ECustomTextCursorAlignBaseline,
- ECustomTextCursorAlignBottom
- };
- public:
- __declspec(dllexport) RWsSession();
- __declspec(dllexport) TInt Connect();
- __declspec(dllexport) TInt Connect(RFs& aFileServer);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TVersion Version();
- __declspec(dllexport) TInt SetHotKey(THotKey aType, TUint aKeyCode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) TInt ClearHotKeys(THotKey aType);
- __declspec(dllexport) TInt RestoreDefaultHotKey(THotKey aType);
- __declspec(dllexport) void EventReady(TRequestStatus *aStat);
- __declspec(dllexport) void EventReadyCancel();
- __declspec(dllexport) void GetEvent(TWsEvent &aEvent);
- __declspec(dllexport) void PurgePointerEvents();
- __declspec(dllexport) void RedrawReady(TRequestStatus *aStat);
- __declspec(dllexport) void RedrawReadyCancel();
- __declspec(dllexport) void GetRedraw(TWsRedrawEvent &aEvent);
- __declspec(dllexport) void PriorityKeyReady(TRequestStatus *aStat);
- __declspec(dllexport) void PriorityKeyReadyCancel();
- __declspec(dllexport) void GetPriorityKey(TWsPriorityKeyEvent &aEvent);
- __declspec(dllexport) void Flush();
- __declspec(dllexport) TBool SetAutoFlush(TBool aState);
- __declspec(dllexport) TInt SetKeyboardRepeatRate(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime);
- __declspec(dllexport) void GetKeyboardRepeatRate(TTimeIntervalMicroSeconds32 &aInitialTime, TTimeIntervalMicroSeconds32 &aTime);
- __declspec(dllexport) void GetDoubleClickSettings(TTimeIntervalMicroSeconds32 &aInterval, TInt &aDistance);
- __declspec(dllexport) TInt SetDoubleClick(const TTimeIntervalMicroSeconds32 &aInterval, TInt aDistance);
- __declspec(dllexport) TInt NumWindowGroups() const;
- __declspec(dllexport) TInt WindowGroupList(CArrayFixFlat<TInt> *aWindowList);
- __declspec(dllexport) TInt WindowGroupList(RArray<TWindowGroupChainInfo> * aWindowList);
- __declspec(dllexport) TInt NumWindowGroups(TInt aPriority) const;
- __declspec(dllexport) TInt WindowGroupList(TInt aPriority, CArrayFixFlat<TInt> *aWindowList);
- __declspec(dllexport) TInt WindowGroupList(TInt aPriority, RArray<TWindowGroupChainInfo> * aWindowList);
- __declspec(dllexport) TInt GetFocusWindowGroup();
- __declspec(dllexport) TInt GetDefaultOwningWindow();
- __declspec(dllexport) TInt SetWindowGroupOrdinalPosition(TInt aIdentifier, TInt aPosition);
- __declspec(dllexport) TInt GetWindowGroupClientThreadId(TInt aIdentifier, TThreadId &aThreadId);
- __declspec(dllexport) TInt GetWindowGroupHandle(TInt aIdentifier);
- __declspec(dllexport) TInt GetWindowGroupOrdinalPriority(TInt aIdentifier);
- __declspec(dllexport) TInt SendEventToWindowGroup(TInt aIdentifier, const TWsEvent &aEvent);
- __declspec(dllexport) TInt SendEventToAllWindowGroups(const TWsEvent &aEvent);
- __declspec(dllexport) TInt SendEventToAllWindowGroups(TInt aPriority, const TWsEvent &aEvent);
- __declspec(dllexport) TInt SendEventToOneWindowGroupsPerClient(const TWsEvent &aEvent);
- __declspec(dllexport) TInt GetWindowGroupNameFromIdentifier(TInt aIdentifier, TDes &aWindowName);
- __declspec(dllexport) TInt FindWindowGroupIdentifier(TInt aPreviousIdentifier,const TDesC& aMatch,TInt aOffset=0);
- __declspec(dllexport) TInt FindWindowGroupIdentifier(TInt aPreviousIdentifier,TThreadId aThreadId);
- __declspec(dllexport) TInt SendMessageToWindowGroup(TInt aIdentifier, TUid aUid, const TDesC8 &aParams);
- __declspec(dllexport) TInt SendMessageToAllWindowGroups(TUid aUid, const TDesC8& aParams);
- __declspec(dllexport) TInt SendMessageToAllWindowGroups(TInt aPriority, TUid aUid, const TDesC8& aParams);
- __declspec(dllexport) TInt FetchMessage(TUid &aUid, TPtr8 &aParams, const TWsEvent& aMessageEvent);
- __declspec(dllexport) void SetShadowVector(const TPoint &aVector);
- __declspec(dllexport) TPoint ShadowVector() const;
- __declspec(dllexport) void SetBackgroundColor(TRgb aColor);
- __declspec(dllexport) TRgb GetBackgroundColor() const;
- __declspec(dllexport) TInt SetSystemPointerCursor(const RWsPointerCursor &aPointerCursor,TInt aCursorNumber);
- __declspec(dllexport) void ClearSystemPointerCursor(TInt aCursorNumber);
- __declspec(dllexport) TInt ClaimSystemPointerCursorList();
- __declspec(dllexport) void FreeSystemPointerCursorList();
- __declspec(dllexport) TInt SetCustomTextCursor(TInt aIdentifier, const TArray<TSpriteMember>& aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment);
- __declspec(dllexport) TInt ResourceCount();
- __declspec(dllexport) void PasswordEntered();
- __declspec(dllexport) void ComputeMode(TComputeMode aMode);
- __declspec(dllexport) TInt HeapCount() const;
- __declspec(dllexport) void MarkStart();
- __declspec(dllexport) void CheckNum(TUint aCount);
- __declspec(dllexport) void MarkEnd(TUint aCount);
- __declspec(dllexport) void HeapSetFail(TInt aTAllocFail,TInt aValue);
- __declspec(dllexport) TInt SetModifierState(TEventModifier aModifier,TModifierState aState);
- __declspec(dllexport) TInt GetModifierState() const;
- __declspec(dllexport) TInt RequestOffEvents(TBool aOn,RWindowTreeNode *aWin=0 );
- __declspec(dllexport) TDisplayMode GetDefModeMaxNumColors(TInt& aColor,TInt& aGray) const;
- __declspec(dllexport) TInt GetColorModeList(CArrayFixFlat<TInt> *aModeList) const;
- __declspec(dllexport) void SetPointerCursorArea(const TRect& aArea);
- __declspec(dllexport) void SetPointerCursorArea(TInt aScreenSizeMode,const TRect& aArea);
- __declspec(dllexport) TRect PointerCursorArea() const;
- __declspec(dllexport) TRect PointerCursorArea(TInt aScreenSizeMode) const;
- __declspec(dllexport) void SetPointerCursorMode(TPointerCursorMode aMode);
- __declspec(dllexport) TInt SetClientCursorMode(TPointerCursorMode aMode);
- __declspec(dllexport) TPointerCursorMode PointerCursorMode() const;
- __declspec(dllexport) void SetDefaultSystemPointerCursor(TInt aCursorNumber);
- __declspec(dllexport) void ClearDefaultSystemPointerCursor();
- __declspec(dllexport) TInt SetPointerCursorPosition(const TPoint& aPosition);
- __declspec(dllexport) TPoint PointerCursorPosition() const;
- __declspec(dllexport) void SetDefaultFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) void PrepareForSwitchOff();
- __declspec(dllexport) void SetBufferSizeL(TInt aBufSize);
- __declspec(dllexport) TInt SetSystemFaded(TBool aFaded);
- __declspec(dllexport) TInt SetSystemFaded(TBool aFaded,TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) TInt SetFocusScreen(TInt aScreenNumber);
- __declspec(dllexport) TInt GetFocusScreen();
- __declspec(dllexport) void ClearAllRedrawStores();
- __declspec(dllexport) void SetRemoveKeyCode(TBool aRemove);
- __declspec(dllexport) void SimulateXyInputType(TXYInputType aInputType);
- __declspec(dllexport) void SimulateRawEvent(TRawEvent aEvent);
- __declspec(dllexport) void SimulateKeyEvent(TKeyEvent aEvent);
- __declspec(dllexport) void LogCommand(TLoggingCommand aCommand);
- __declspec(dllexport) void LogMessage(const TLogMessageText &aMessage);
- __declspec(dllexport) void SystemInfo(TInt &aSystemInfoNumber, SSystemInfo &aSystemInfo);
- __declspec(dllexport) void TestWrite(TInt aHandle,TInt aOpcode,const TAny *aData, TInt aLength);
- __declspec(dllexport) void TestWriteReply(TInt aHandle,TInt aOpcode,const TAny *aData, TInt aLength);
- __declspec(dllexport) void TestWriteReplyP(TInt aHandle,TInt aOpcode,const TAny *aData,TInt aLength,TDes8 *aReplyPackage);
- __declspec(dllexport) TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle,TInt aOpcode,const TDesC8& aData,const TDesC8& aRemoteReadBuffer);
- __declspec(dllexport) TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle,TInt aOpcode,const TDesC8& aData,const TDesC16& aRemoteReadBuffer);
- private:
- TInt doWindowGroupList(TInt aPriority, CArrayFixFlat<TInt> * aWindowListId, TInt aNumOpcode, TInt aListOpcode);
- TInt doWindowGroupList(TInt aPriority, RArray<TWindowGroupChainInfo> * aWindowListCh, TInt aNumOpcode, TInt aListOpcode);
- TInt doSetHotKey(TInt aOpcode, TInt aType, TUint aKeycode, TUint aModifierMask, TUint aModifiers);
- void doReadEvent(TRequestStatus *aStat, TInt aOpcode);
- private:
- void connectL();
- TInt DoFlush(const TIpcArgs& aIpcArgs);
- void DirectAcessActivation(TBool aIsNowActive);
- };
- class RWindowGroup;
- class RWsSprite;
- typedef TInt (*AnimCommand)(TPtr8 *aBufPtr,TAny *aPackage);
- class RWindowTreeNode : public MWsClientClass
- #line 1581
- {
- friend class RWindowGroup;
- friend class RWindowBase;
- friend class CWindowGc;
- friend class RAnimDll;
- friend class RWsSprite;
- public:
- enum TFadeControl
- {
- EFadeIncludeChildren=ETrue,
- EFadeWindowOnly=EFalse,
- };
- protected:
- RWindowTreeNode();
- RWindowTreeNode(RWsSession &aWs);
- public:
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Destroy();
- __declspec(dllexport) TUint32 Parent() const;
- __declspec(dllexport) TUint32 PrevSibling() const;
- __declspec(dllexport) TUint32 NextSibling() const;
- __declspec(dllexport) TUint32 Child() const;
- __declspec(dllexport) TInt OrdinalPriority() const;
- __declspec(dllexport) TInt OrdinalPosition() const;
- __declspec(dllexport) TInt FullOrdinalPosition() const;
- __declspec(dllexport) void SetOrdinalPosition(TInt aPos);
- __declspec(dllexport) void SetOrdinalPosition(TInt aPos,TInt aOrdinalPriority);
- __declspec(dllexport) TInt WindowGroupId();
- __declspec(dllexport) TInt SetPointerCursor(TInt aCursorNumber);
- __declspec(dllexport) void SetCustomPointerCursor(const RWsPointerCursor &aPointerCursor);
- __declspec(dllexport) TInt EnableOnEvents(TEventControl aCircumstances=EEventControlOnlyWithKeyboardFocus);
- __declspec(dllexport) void DisableOnEvents();
- __declspec(dllexport) TInt EnableGroupChangeEvents();
- __declspec(dllexport) void DisableGroupChangeEvents();
- __declspec(dllexport) TInt EnableFocusChangeEvents();
- __declspec(dllexport) void DisableFocusChangeEvents();
- __declspec(dllexport) TInt EnableGroupListChangeEvents();
- __declspec(dllexport) void DisableGroupListChangeEvents();
- __declspec(dllexport) TInt EnableVisibilityChangeEvents();
- __declspec(dllexport) void DisableVisibilityChangeEvents();
- __declspec(dllexport) TInt EnableErrorMessages(TEventControl aCircumstances);
- __declspec(dllexport) void DisableErrorMessages();
- __declspec(dllexport) TInt EnableModifierChangedEvents(TUint aModifierMask, TEventControl aCircumstances);
- __declspec(dllexport) void DisableModifierChangedEvents();
- __declspec(dllexport) void SetNonFading(TBool aNonFading);
- __declspec(dllexport) void SetFaded(TBool aFaded,TFadeControl aIncludeChildren);
- __declspec(dllexport) void SetFaded(TBool aFaded,TFadeControl aIncludeChildren,TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) void ClearPointerCursor();
- protected:
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class RWindowBase : public RWindowTreeNode
- #line 1654
- {
- public:
- enum TCaptureFlags
- {
- TCaptureFlagEnabled=0x01,
- TCaptureFlagDragDrop=0x02,
- TCaptureFlagAllGroups=0x04,
- TCaptureDisabled=0,
- TCaptureEnabled=TCaptureFlagEnabled,
- TCaptureDragDrop=TCaptureFlagEnabled|TCaptureFlagDragDrop|TCaptureFlagAllGroups,
- };
- protected:
- RWindowBase();
- RWindowBase(RWsSession &aWs);
- public:
- __declspec(dllexport) void Activate();
- __declspec(dllexport) void SetPosition(const TPoint &point);
- __declspec(dllexport) TInt SetSizeErr(const TSize &size);
- __declspec(dllexport) TInt SetExtentErr(const TPoint &point,const TSize &size);
- __declspec(dllexport) TSize Size() const;
- __declspec(dllexport) TPoint InquireOffset(const RWindowTreeNode &aWindow) const;
- __declspec(dllexport) void PointerFilter(TUint32 aFilterMask, TUint32 aFilter);
- __declspec(dllexport) void SetPointerGrab(TBool aState);
- __declspec(dllexport) void ClaimPointerGrab(TBool aSendUpEvent=ETrue);
- __declspec(dllexport) void SetPointerCapture(TInt aFlags);
- __declspec(dllexport) void SetPointerCapturePriority(TInt aPriority);
- __declspec(dllexport) TInt GetPointerCapturePriority() const;
- __declspec(dllexport) void SetVisible(TBool aState);
- __declspec(dllexport) void SetShadowHeight(TInt aHeight);
- __declspec(dllexport) void SetShadowDisabled(TBool aState);
- __declspec(dllexport) TPoint Position() const;
- __declspec(dllexport) TPoint AbsPosition() const;
- __declspec(dllexport) TInt SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0);
- __declspec(dllexport) TInt SetShape(const TRegion &aRegion);
- __declspec(dllexport) TInt SetRequiredDisplayMode(TDisplayMode aMode);
- __declspec(dllexport) TDisplayMode DisplayMode();
- __declspec(dllexport) void EnableBackup(TUint aBackupType=EWindowBackupAreaBehind);
- __declspec(dllexport) void RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime,const TRect &aRect);
- __declspec(dllexport) void CancelPointerRepeatEventRequest();
- __declspec(dllexport) TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags);
- __declspec(dllexport) void FreePointerMoveBuffer();
- __declspec(dllexport) void EnablePointerMoveBuffer();
- __declspec(dllexport) void DisablePointerMoveBuffer();
- __declspec(dllexport) TInt RetrievePointerMoveBuffer(TDes8 &aBuf);
- __declspec(dllexport) void DiscardPointerMoveBuffer();
- __declspec(dllexport) TInt AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn);
- __declspec(dllexport) void RemoveAllKeyRects();
- __declspec(dllexport) TInt PasswordWindow(TPasswordMode aPasswordMode);
- __declspec(dllexport) void FadeBehind(TBool aFade);
- __declspec(dllexport) TBool IsFaded();
- __declspec(dllexport) TBool IsNonFading();
- __declspec(dllexport) TInt MoveToGroup(TInt aIdentifier);
- protected:
- TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
- };
- class RBlankWindow : public RWindowBase
- #line 1735
- {
- public:
- __declspec(dllexport) RBlankWindow();
- __declspec(dllexport) RBlankWindow(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle);
- __declspec(dllexport) void SetColor(TRgb aColor);
- __declspec(dllexport) void SetColor();
- __declspec(dllexport) void SetSize(const TSize &size);
- __declspec(dllexport) void SetExtent(const TPoint &point,const TSize &size);
- };
- class RDrawableWindow : public RWindowBase
- #line 1757
- {
- protected:
- RDrawableWindow();
- RDrawableWindow(RWsSession &aWs);
- public:
- __declspec(dllexport) void Scroll(const TPoint &aOffset);
- __declspec(dllexport) void Scroll(const TRect &aClipRect, const TPoint &aOffset);
- __declspec(dllexport) void Scroll(const TPoint &aOffset, const TRect &aRect);
- __declspec(dllexport) void Scroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect);
- __declspec(dllexport) TRect GetDrawRect();
- protected:
- void SetDrawRect(const TRect &aRect);
- private:
- void doScroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect, TInt aOpcode);
- TRect iDrawRect;
- };
- class RWindow : public RDrawableWindow
- {
- public:
- __declspec(dllexport) RWindow();
- __declspec(dllexport) RWindow(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(const RWindowTreeNode &parent,TUint32 aHandle);
- __declspec(dllexport) void BeginRedraw();
- __declspec(dllexport) void BeginRedraw(const TRect &aRect);
- __declspec(dllexport) void EndRedraw();
- __declspec(dllexport) void Invalidate();
- __declspec(dllexport) void Invalidate(const TRect &aRect);
- __declspec(dllexport) void GetInvalidRegion(RRegion &aRegion);
- __declspec(dllexport) void SetBackgroundColor(TRgb aColor);
- __declspec(dllexport) void SetBackgroundColor();
- __declspec(dllexport) void SetSize(const TSize &size);
- __declspec(dllexport) void SetExtent(const TPoint &point,const TSize &size);
- __declspec(dllexport) void HandleTransparencyUpdate();
- __declspec(dllexport) TInt SetTransparencyFactor(const TRgb& aTransparencyFactor);
- __declspec(dllexport) TInt SetTransparencyBitmap(const CFbsBitmap& aTransparencyBitmap);
- __declspec(dllexport) TInt SetTransparencyWsBitmap(const CWsBitmap& aTransparencyBitmap);
- __declspec(dllexport) void SetNonTransparent();
- __declspec(dllexport) void EnableRedrawStore(TBool aEnabled);
- __declspec(dllexport) TInt SetTransparencyAlphaChannel();
- __declspec(dllexport) TInt SetTransparentRegion(const TRegion& aRegion);
- };
- class RBackedUpWindow : public RDrawableWindow
- #line 1823
- {
- public:
- __declspec(dllexport) RBackedUpWindow();
- __declspec(dllexport) RBackedUpWindow(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(const RWindowTreeNode &parent,TDisplayMode aDisplayMode, TUint32 aHandle);
- __declspec(dllexport) TInt BitmapHandle();
- __declspec(dllexport) void UpdateScreen();
- __declspec(dllexport) void UpdateScreen(const TRegion &aRegion);
- __declspec(dllexport) void UpdateBackupBitmap();
- __declspec(dllexport) void MaintainBackup();
- };
- class RWindowGroup : public RWindowTreeNode
- {
- public:
- __declspec(dllexport) RWindowGroup();
- __declspec(dllexport) RWindowGroup(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(TUint32 aClientHandle);
- __declspec(dllexport) TInt Construct(TUint32 aClientHandle,TBool aIsFocusable);
- __declspec(dllexport) TInt ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle);
- __declspec(dllexport) TInt ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle,TBool aIsFocusable);
- __declspec(dllexport) void AllowProcessToCreateChildWindowGroups(TUid aProcessSID);
- __declspec(dllexport) void EnableReceiptOfFocus(TBool aState);
- __declspec(dllexport) void AutoForeground(TBool aState);
- __declspec(dllexport) void SetOrdinalPriorityAdjust(TInt aAdjust);
- __declspec(dllexport) TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier, TInt aPriority);
- __declspec(dllexport) void CancelCaptureKey(TInt32 aCaptureKey);
- __declspec(dllexport) TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier, TInt aPriority);
- __declspec(dllexport) void CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey);
- __declspec(dllexport) TInt32 CaptureLongKey(TUint aInputKeyCode,TUint aOutputKeyCode,TUint aModifierMask,TUint aModifier
- ,TInt aPriority,TUint aFlags);
- __declspec(dllexport) TInt32 CaptureLongKey(TTimeIntervalMicroSeconds32 aRepeatTime,TUint aInputKeyCode,TUint aOutputKeyCode
- ,TUint aModifierMask,TUint aModifier,TInt aPriority,TUint aFlags);
- __declspec(dllexport) void CancelCaptureLongKey(TInt32 aCaptureKey);
- __declspec(dllexport) TInt AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) void RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor);
- __declspec(dllexport) void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect);
- __declspec(dllexport) void CancelTextCursor();
- __declspec(dllexport) void SetOwningWindowGroup(TInt aIdentifier);
- __declspec(dllexport) void DefaultOwningWindow();
- __declspec(dllexport) TInt SetName(const TDesC &aName);
- __declspec(dllexport) TInt Name(TDes &aWindowName) const;
- __declspec(dllexport) TInt Identifier() const;
- __declspec(dllexport) void DisableKeyClick(TBool aState);
- __declspec(dllexport) TInt EnableScreenChangeEvents();
- __declspec(dllexport) void DisableScreenChangeEvents();
- __declspec(dllexport) void SimulatePointerEvent(TRawEvent aEvent);
- private:
- TInt32 doCaptureKey(TUint aKey, TUint aModifierMask, TUint aModifiers, TInt aPriority, TInt aOpcode);
- void doCancelCaptureKey(TInt32 aCaptureKeyHandle, TInt aOpcode);
- };
- class CWsBitmap : public CFbsBitmap, public MWsClientClass
- #line 1893
- {
- public:
- __declspec(dllexport) CWsBitmap();
- __declspec(dllexport) CWsBitmap(RWsSession &aWs);
- __declspec(dllexport) ~CWsBitmap();
- __declspec(dllexport) TInt Create(const TSize& aSizeInPixels,TDisplayMode aDispMode);
- __declspec(dllexport) TInt Duplicate(TInt aHandle);
- __declspec(dllexport) TInt Load(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded=ETrue);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void Reset();
- private:
- TInt createWsBitmap(TInt aErr);
- };
- class CWindowGc : public CBitmapContext, public MWsClientClass
- #line 1933
- {
- friend class CWsScreenDevice;
- public:
- __declspec(dllexport) CWindowGc(CWsScreenDevice *aDevice);
- __declspec(dllexport) virtual ~CWindowGc();
- __declspec(dllexport) virtual TInt Construct();
- __declspec(dllexport) virtual void Activate(RDrawableWindow &aDevice);
- __declspec(dllexport) virtual void Deactivate();
- __declspec(dllexport) virtual CGraphicsDevice* Device() const;
- __declspec(dllexport) virtual void SetOrigin(const TPoint &aPoint=TPoint(0,0));
- __declspec(dllexport) virtual void SetDrawMode(TDrawMode aDrawingMode);
- __declspec(dllexport) virtual void SetClippingRect(const TRect& aRect);
- __declspec(dllexport) virtual void CancelClippingRect();
- __declspec(dllexport) virtual void Reset();
- __declspec(dllexport) virtual void UseFont(const CFont *aFont);
- __declspec(dllexport) virtual void DiscardFont();
- __declspec(dllexport) virtual void SetUnderlineStyle(TFontUnderline aUnderlineStyle);
- __declspec(dllexport) virtual void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle);
- __declspec(dllexport) virtual void SetWordJustification(TInt aExcessWidth,TInt aNumGaps);
- __declspec(dllexport) virtual void SetCharJustification(TInt aExcessWidth,TInt aNumChars);
- __declspec(dllexport) virtual void SetPenColor(const TRgb &aColor);
- __declspec(dllexport) virtual void SetPenStyle(TPenStyle aPenStyle);
- __declspec(dllexport) virtual void SetPenSize(const TSize& aSize);
- __declspec(dllexport) virtual void SetBrushColor(const TRgb &aColor);
- __declspec(dllexport) virtual void SetBrushStyle(TBrushStyle aBrushStyle);
- __declspec(dllexport) virtual void SetBrushOrigin(const TPoint &aOrigin);
- __declspec(dllexport) virtual void UseBrushPattern(const CFbsBitmap *aDevice);
- __declspec(dllexport) virtual void DiscardBrushPattern();
- __declspec(dllexport) virtual void MoveTo(const TPoint &aPoint);
- __declspec(dllexport) virtual void MoveBy(const TPoint &aPoint);
- __declspec(dllexport) virtual void Plot(const TPoint &aPoint);
- __declspec(dllexport) virtual void DrawArc(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd);
- __declspec(dllexport) virtual void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2);
- __declspec(dllexport) virtual void DrawLineTo(const TPoint &aPoint);
- __declspec(dllexport) virtual void DrawLineBy(const TPoint &aPoint);
- __declspec(dllexport) virtual void DrawPolyLine(const CArrayFix<TPoint> *aPointList);
- __declspec(dllexport) virtual void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints);
- __declspec(dllexport) virtual void DrawPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd);
- __declspec(dllexport) virtual void DrawEllipse(const TRect &aRect);
- __declspec(dllexport) virtual void DrawRect(const TRect &aRect);
- __declspec(dllexport) virtual void DrawRoundRect(const TRect &aRect,const TSize &aEllipse);
- __declspec(dllexport) virtual TInt DrawPolygon(const CArrayFix<TPoint> *aPointList,TFillRule aFillRule=EAlternate);
- __declspec(dllexport) virtual TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule=EAlternate);
- __declspec(dllexport) virtual void DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice);
- __declspec(dllexport) virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice);
- __declspec(dllexport) virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect);
- __declspec(dllexport) virtual void DrawBitmapMasked(const TRect& aDestRect, const CFbsBitmap* aBitmap, const TRect& aSourceRect, const CFbsBitmap* aMaskBitmap, TBool aInvertMask);
- __declspec(dllexport) virtual void DrawBitmapMasked(const TRect& aDestRect, const CWsBitmap* aBitmap, const TRect& aSourceRect, const CWsBitmap* aMaskBitmap, TBool aInvertMask);
- __declspec(dllexport) virtual void DrawText(const TDesC &aBuf,const TPoint &aPos);
- __declspec(dllexport) virtual void DrawText(const TDesC &aBuf,const TRect &aBox,TInt aBaselineOffset,TTextAlign aHoriz=ELeft,TInt aLeftMrg=0);
- __declspec(dllexport) virtual void Clear();
- __declspec(dllexport) virtual void Clear(const TRect &aRect);
- __declspec(dllexport) virtual void CopyRect(const TPoint &anOffset,const TRect &aRect);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource);
- __declspec(dllexport) virtual void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource);
- __declspec(dllexport) virtual void BitBltMasked(const TPoint& aPoint,const CWsBitmap *aBitmap,const TRect& aSourceRect,const CWsBitmap *aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) virtual void MapColors(const TRect& aRect,const TRgb* aColors,TInt aNumPairs=2,TBool aMapForwards=ETrue);
- __declspec(dllexport) virtual void DrawTextVertical(const TDesC& aText,const TPoint& aPos,TBool aUp);
- __declspec(dllexport) virtual void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0);
- __declspec(dllexport) virtual void SetDitherOrigin(const TPoint& aPoint);
- __declspec(dllexport) virtual TInt SetClippingRegion(const TRegion &aRegion);
- __declspec(dllexport) virtual void CancelClippingRegion();
- __declspec(dllexport) virtual void SetOpaque(TBool aDrawOpaque=ETrue);
- __declspec(dllexport) virtual void SetFaded(TBool aFaded);
- __declspec(dllexport) virtual void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CFbsBitmap* aSrcBmp, const TRect& aSrcRect, const CFbsBitmap* aAlphaBmp, const TPoint& aAlphaPt);
- __declspec(dllexport) virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CWsBitmap* aSrcBmp, const TRect& aSrcRect, const CWsBitmap* aAlphaBmp, const TPoint& aAlphaPt);
- private:
- __declspec(dllexport) void Reserved_CGraphicsContext_1();
- __declspec(dllexport) void Reserved_CGraphicsContext_2();
- __declspec(dllexport) void Reserved_CBitmapContext_1();
- __declspec(dllexport) void Reserved_CBitmapContext_2();
- __declspec(dllexport) void Reserved_CBitmapContext_3();
- __declspec(dllexport) virtual void Reserved_CWindowGc_1();
- __declspec(dllexport) virtual void Reserved_CWindowGc_2();
- __declspec(dllexport) virtual void Reserved_CWindowGc_3();
- __declspec(dllexport) virtual void Reserved_CWindowGc_4();
- __declspec(dllexport) virtual void Reserved_CWindowGc_5();
- private:
- TRgb Color(TInt aOpcode)const;
- void SetJustification(TInt aExcessWidth,TInt aNumGaps, TInt aOpcode);
- void DrawArcOrPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd, TInt aOpcode);
- void doDrawPolyLine(const CArrayFix<TPoint> *aPointArray, const TPoint* aPointList,TInt aNumPoints);
- TInt doDrawPolygon(const CArrayFix<TPoint> *aPointArray,const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule);
- void WriteTextPos(TInt aOpcode,TInt aOpcodePtr,const TPoint &aPos,const TDesC &aBuf) const;
- void WriteTextCommand(TAny *aCmd, TInt aLen,const TDesC &aBuf,TInt aOpcode,TInt aOpcodePtr) const;
- private:
- CFbsFont *iFont;
- CWsScreenDevice *iDevice;
- };
- class CWsScreenDevice : public CBitmapDevice, public MWsClientClass
- #line 2077
- {
- public:
- enum TSpriteInCompare
- {
- ERemoveSprite=0,
- EIncludeSprite=1,
- };
- public:
- __declspec(dllexport) CWsScreenDevice();
- __declspec(dllexport) CWsScreenDevice(RWsSession &aWs);
- __declspec(dllexport) ~CWsScreenDevice();
- __declspec(dllexport) TInt Construct();
- __declspec(dllexport) TInt Construct( TInt aDefaultScreenNumber ) ;
- __declspec(dllexport) TDisplayMode DisplayMode() const;
- __declspec(dllexport) TSize SizeInPixels() const;
- __declspec(dllexport) TSize SizeInTwips() const;
- __declspec(dllexport) TInt HorizontalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) TInt VerticalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) TInt HorizontalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TInt VerticalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TRect PointerRect() const;
- __declspec(dllexport) TInt CreateContext(CGraphicsContext *&aGc);
- inline TInt CreateContext(CWindowGc*& aGc);
- __declspec(dllexport) virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont,const TFontSpec& aFontSpec,TInt aMaxHeight);
- __declspec(dllexport) TInt NumTypefaces() const;
- __declspec(dllexport) void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const;
- __declspec(dllexport) TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) void GetPixel(TRgb& aColor,const TPoint& aPixel) const;
- __declspec(dllexport) void GetScanLine(TDes8& aScanLine,const TPoint& aStartPixel,TInt aPixelLength, TDisplayMode aDispMode) const;
- __declspec(dllexport) TInt AddFile(const TDesC& aName,TInt& aId);
- __declspec(dllexport) void RemoveFile(TInt aId=0);
- __declspec(dllexport) virtual TInt GetNearestFontInPixels(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInPixels(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont,const TFontSpec& aFontSpec,TInt aMaxHeight);
- __declspec(dllexport) TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- __declspec(dllexport) void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const;
- __declspec(dllexport) void SetPalette(CPalette* aPalette);
- __declspec(dllexport) TInt GetPalette(CPalette*& aPalette) const;
- __declspec(dllexport) TInt SetCustomPalette(const CPalette* aPalette);
- __declspec(dllexport) TInt GetFontById(CFont*& aFont,TUid aUid,const TAlgStyle& aAlgStyle);
- __declspec(dllexport) TBool RectCompare(const TRect &aRect1,const TRect &aRect2);
- __declspec(dllexport) TBool RectCompare(const TRect& aRect1,const TRect &aRect2,TUint aFlags) const;
- __declspec(dllexport) TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap) const;
- __declspec(dllexport) TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap, const TRect &aRect) const;
- __declspec(dllexport) void SetScreenSizeAndRotation(const TPixelsTwipsAndRotation &aSizeAndRotation);
- __declspec(dllexport) void GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) void SetScreenSizeAndRotation(const TPixelsAndRotation &aSizeAndRotation);
- __declspec(dllexport) void GetDefaultScreenSizeAndRotation(TPixelsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) TScreenModeEnforcement ScreenModeEnforcement() const;
- __declspec(dllexport) void SetScreenModeEnforcement(TScreenModeEnforcement aMode) const;
- __declspec(dllexport) void GetScreenModeSizeAndRotation(TInt aMode, TPixelsTwipsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) void GetScreenModeSizeAndRotation(TInt aMode, TPixelsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) void SetCurrentRotations(TInt aMode, CFbsBitGc::TGraphicsOrientation aRotation) const;
- __declspec(dllexport) TInt GetRotationsList(TInt aMode, CArrayFixFlat<TInt> *aRotationList) const;
- __declspec(dllexport) TInt NumScreenModes() const;
- __declspec(dllexport) void SetScreenMode(TInt aMode);
- __declspec(dllexport) TInt CurrentScreenMode() const;
- __declspec(dllexport) void SetAppScreenMode(TInt aMode);
- __declspec(dllexport) TPoint GetDefaultScreenModeOrigin() const;
- __declspec(dllexport) TPoint GetScreenModeOrigin(TInt aMode) const;
- __declspec(dllexport) TSize GetCurrentScreenModeScale() const;
- __declspec(dllexport) TSize GetScreenModeScale(TInt aMode) const;
- __declspec(dllexport) TPoint GetCurrentScreenModeScaledOrigin() const;
- __declspec(dllexport) TPoint GetScreenModeScaledOrigin(TInt aMode) const;
- __declspec(dllexport) TInt GetScreenSizeModeList(RArray<TInt> * aModeList);
- __declspec(dllexport) TDisplayMode GetScreenModeDisplayMode(const TInt &aMode) const;
- __declspec(dllexport) TSizeMode GetCurrentScreenModeAttributes() const;
- __declspec(dllexport) void SetCurrentScreenModeAttributes(const TSizeMode &aModeAtt);
- __declspec(dllexport) TInt GetScreenNumber() const;
- private:
- CFbsTypefaceStore* iTypefaceStore;
- TSize iPhysicalScreenSizeInTwips;
- TSize iDisplaySizeInPixels;
- friend class CWindowGc;
- };
- class RWsSpriteBase : public MWsClientClass
- #line 2190
- {
- protected:
- __declspec(dllexport) RWsSpriteBase();
- __declspec(dllexport) RWsSpriteBase(RWsSession &aWs);
- public:
- __declspec(dllexport) TInt Activate();
- __declspec(dllexport) TInt AppendMember(const TSpriteMember &aMemberData);
- __declspec(dllexport) void UpdateMember(TInt aIndex);
- __declspec(dllexport) TInt UpdateMember(TInt aIndex, const TSpriteMember &aMemberData);
- __declspec(dllexport) void Close();
- };
- class RWsSprite : public RWsSpriteBase
- {
- public:
- __declspec(dllexport) RWsSprite();
- __declspec(dllexport) RWsSprite(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(RWindowTreeNode &aWindow, const TPoint &aPos, TInt aFlags);
- __declspec(dllexport) void SetPosition(const TPoint &aPos);
- };
- class RWsPointerCursor : public RWsSpriteBase
- #line 2242
- {
- friend class RWindowTreeNode;
- friend class RWsSession;
- public:
- __declspec(dllexport) RWsPointerCursor();
- __declspec(dllexport) RWsPointerCursor(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(TInt aFlags);
- };
- class RAnim;
- class RAnimDll : public MWsClientClass
- #line 2266
- {
- public:
- __declspec(dllexport) RAnimDll();
- __declspec(dllexport) virtual ~RAnimDll();
- __declspec(dllexport) RAnimDll(RWsSession &aWs);
- __declspec(dllexport) TInt Load(const TDesC &aFileName);
- __declspec(dllexport) void Destroy();
- __declspec(dllexport) virtual void Close();
- private:
- TInt CommandReply(TInt aHandle, TInt aOpcode, const TIpcArgs* aIpcArgs=0 );
- TInt CommandReply(TInt aHandle, TInt aOpcode, const TDesC8& aArgs, const TIpcArgs* aIpcArgs=0 );
- void Command(TInt aHandle, TInt aOpcode, const TPtrC8 &aArgs);
- void Command(TInt aHandle, TInt aOpcode);
- void AsyncCommandReply(TRequestStatus& aStatus, TInt aOpcode, TIpcArgs& aIpcArgs);
- TInt CreateInstance(TInt32& aHandle, const MWsClientClass &aDevice, TInt aType, const TDesC8 &aArgs, TInt aOpcode, const TIpcArgs* aIpcArgs);
- void DestroyInstance(TInt aHandle);
- private:
- friend class RAnim;
- };
- class RAnim
- {
- public:
- __declspec(dllexport) virtual ~RAnim();
- __declspec(dllexport) virtual void Close();
- __declspec(dllexport) void Destroy();
- protected:
- __declspec(dllexport) RAnim();
- __declspec(dllexport) RAnim(RAnimDll &aDll);
- __declspec(dllexport) TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams);
- __declspec(dllexport) TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs);
- __declspec(dllexport) TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams);
- __declspec(dllexport) TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs);
- __declspec(dllexport) TInt CommandReply(TInt aOpcode);
- __declspec(dllexport) TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs);
- __declspec(dllexport) TInt CommandReply(TInt aOpcode, const TDesC8& aArgs, const TIpcArgs& aIpcArgs);
- __declspec(dllexport) void Command(TInt aOpcode, const TPtrC8 &aArgs);
- __declspec(dllexport) void Command(TInt aOpcode);
- __declspec(dllexport) void AsyncCommandReply(TRequestStatus& aRequestStatus,TInt aOpcode, const TIpcArgs& aIpcArgs);
- private:
- TInt32 iHandle;
- RAnimDll *iAnimDll;
- };
- class CDsaMsgQueue;
- class RDirectScreenAccess : public MWsClientClass
- #line 2330
- {
- public:
- #line 2341
- enum TTerminationReasons
- {
- ETerminateCancel,
- ETerminateRegion,
- ETerminateScreenMode,
- ETerminateRotation,
- };
- enum TPriority
- {
- EPriorityVeryHigh=2000,
- };
- public:
- __declspec(dllexport) RDirectScreenAccess();
- __declspec(dllexport) RDirectScreenAccess(RWsSession& aWs);
- __declspec(dllexport) TInt Construct();
- __declspec(dllexport) TInt Request(RRegion*& aRegion,TRequestStatus& aStatus,const RWindowBase& aWindow);
- __declspec(dllexport) void Completed();
- __declspec(dllexport) void Cancel();
- __declspec(dllexport) void Close();
- private:
- RWsSession* iWs;
- CDsaMsgQueue* iMsgQueue;
- RThread iWsThread;
- TRequestStatus* iDummyRequest;
- };
- class MAbortDirectScreenAccess
- {
- public:
- #line 2404
- virtual void AbortNow(RDirectScreenAccess::TTerminationReasons aReason)=0;
- };
- class MDirectScreenAccess : public MAbortDirectScreenAccess
- #line 2419
- {
- public:
- #line 2433
- virtual void Restart(RDirectScreenAccess::TTerminationReasons aReason)=0;
- };
- class CDirectScreenAccess : public CActive
- #line 2454
- {
- public:
- __declspec(dllexport) static CDirectScreenAccess* NewL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWin,MDirectScreenAccess& aAbort);
- ~CDirectScreenAccess();
- __declspec(dllexport) void StartL();
- inline CFbsBitGc* Gc();
- inline CFbsScreenDevice*& ScreenDevice();
- inline RRegion* DrawingRegion();
- private:
- enum TFlags
- {
- EDirectCheckModeChange=0x1,
- EDirectCheckSizeModeChange=0x2,
- };
- private:
- inline CDirectScreenAccess(RWsSession& aWs,CWsScreenDevice* aScreenDevice,RWindowBase& aWindow,MDirectScreenAccess& aAbort);
- void ConstructL(RWsSession& aWs);
- void CreateScreenObjectsL(TDisplayMode aCurrentMode);
- void UpdateSizeAndRotation(CFbsBitGc* aGc);
- static TInt Restart(TAny* aDirect);
- void Restart();
- void DoCancel();
- void RunL();
- private:
- CFbsBitGc* iGc;
- CFbsScreenDevice* iScreenDevice;
- RRegion* iDrawingRegion;
- RWindowBase& iWindow;
- CWsScreenDevice* iWsScreenDevice;
- MDirectScreenAccess& iAbort;
- RDirectScreenAccess iDirectAccess;
- RDirectScreenAccess::TTerminationReasons iReason;
- CIdle* iRestart;
- TSize iScreenSize;
- TBool iAborting;
- TUint iFlags;
- TInt iScreenNumber;
- };
- class RSoundPlugIn : public MWsClientClass
- {
- public:
- enum
- {
- ESoundWrongPlugIn=KMinTInt
- };
- public:
- __declspec(dllexport) RSoundPlugIn();
- __declspec(dllexport) RSoundPlugIn(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(TUid aUid=TUid::Null() );
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Destroy();
- __declspec(dllexport) TBool IsLoaded(TBool& aIsChangeable);
- __declspec(dllexport) TInt Unload();
- __declspec(dllexport) TInt Load(const TDesC &aFileName);
- __declspec(dllexport) void SetKeyClick(TBool aEnabled);
- __declspec(dllexport) void SetPenClick(TBool aEnabled);
- __declspec(dllexport) TBool KeyClickEnabled();
- __declspec(dllexport) TBool PenClickEnabled();
- __declspec(dllexport) TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs);
- };
- inline TInt MWsClientClass::WsHandle() const
- {return(iWsHandle);}
- inline TInt CWsScreenDevice::CreateContext(CWindowGc *&aGc)
- #line 2545
- {return(CreateContext((CGraphicsContext *&)aGc));}
- inline TUint TWsRedrawEvent::Handle() const
- {return(iHandle);}
- inline TRect TWsRedrawEvent::Rect() const
- {return(iRect);}
- inline TPointerEvent *TWsEvent::Pointer() const
- {return((TPointerEvent *)&iEventData);}
- inline TKeyEvent *TWsEvent::Key() const
- {return((TKeyEvent *)&iEventData);}
- inline TWsVisibilityChangedEvent* TWsEvent::VisibilityChanged()
- { return reinterpret_cast<TWsVisibilityChangedEvent*>(iEventData); }
- inline const TWsVisibilityChangedEvent* TWsEvent::VisibilityChanged() const
- { return reinterpret_cast<const TWsVisibilityChangedEvent*>(iEventData); }
- inline TModifiersChangedEvent *TWsEvent::ModifiersChanged() const
- {return((TModifiersChangedEvent *)&iEventData);}
- inline TWsErrorMessage *TWsEvent::ErrorMessage() const
- {return((TWsErrorMessage *)&iEventData);}
- inline TUint8 *TWsEvent::EventData() const
- #line 2627
- {return((TUint8 *)&iEventData);}
- inline TInt TWsEvent::Type() const
- {return(iType);}
- inline TUint TWsEvent::Handle() const
- {return(iHandle);}
- inline TTime TWsEvent::Time() const
- {return(iTime);}
- inline void TWsEvent::SetType(TInt aType)
- {iType=aType;}
- inline void TWsEvent::SetHandle(TUint aHandle)
- {iHandle=aHandle;}
- inline void TWsEvent::SetTimeNow()
- {iTime.UniversalTime();}
- inline TInt *TWsEvent::Int() const
- { return (TInt*)&iEventData; }
- inline TUint TWsPriorityKeyEvent::Handle() const
- {return(iHandle);}
- inline TKeyEvent *TWsPriorityKeyEvent::Key() const
- {return((TKeyEvent *)&iEventData);}
- inline void TWsPriorityKeyEvent::SetHandle(TUint aHandle)
- {iHandle=aHandle;}
- inline CDirectScreenAccess::CDirectScreenAccess(RWsSession& aWs,CWsScreenDevice* aScreenDevice,RWindowBase& aWindow,MDirectScreenAccess& aAbort)
- :CActive(RDirectScreenAccess::EPriorityVeryHigh), iWindow(aWindow), iAbort(aAbort), iDirectAccess(aWs)
- {iWsScreenDevice=aScreenDevice;}
- inline CFbsBitGc* CDirectScreenAccess::Gc()
- #line 2713
- { return iGc; }
- inline CFbsScreenDevice*& CDirectScreenAccess::ScreenDevice()
- { return iScreenDevice; }
- inline RRegion* CDirectScreenAccess::DrawingRegion()
- #line 2737
- { return iDrawingRegion; }
- inline TSizeMode::TSizeMode(TSize& aSize) :
- iOrigin(0, 0), iScreenSize(aSize)
- {}
- inline TInt TSizeMode::ScaledCord(TInt aOrigin,TInt aScale)
- {return (aOrigin+aScale-1)/aScale;}
- inline TPoint TSizeMode::ScaledOrigin()
- {return TPoint(ScaledCord(iOrigin.iX,iScreenScale.iWidth),ScaledCord(iOrigin.iY,iScreenScale.iHeight));}
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsdef.h" /* stack depth 6 */
- #line 12
- class TVwsViewId
- #line 21
- {
- public:
- inline TVwsViewId();
- inline TVwsViewId(const TVwsViewId& aUid);
- inline TVwsViewId(TUid aAppUid,TUid aViewUid);
- inline TBool operator==(const TVwsViewId& aUid) const;
- inline TBool operator!=(const TVwsViewId& aUid) const;
- public:
- TUid iAppUid;
- TUid iViewUid;
- };
- const TInt KErrViewWrongMode=1;
- class TVwsViewIdAndMessage
- {
- public:
- inline TVwsViewIdAndMessage();
- inline TVwsViewIdAndMessage(const TVwsViewId& aId);
- inline TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- inline TVwsViewIdAndMessage& operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage);
- public:
- TVwsViewId iViewId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- TPtrC8 iCustomMessage;
- };
- class TVwsViewEvent
- #line 79
- {
- public:
- enum TVwsViewEventType
- {
- EVwsActivateView,
- EVwsDeactivateView,
- EVwsScreenDeviceChanged,
- EVwsDeactivationNotification,
- EVwsActivationNotification
- };
- public:
- inline TVwsViewEvent();
- inline TVwsViewEvent(TVwsViewEventType aEventType);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength);
- public:
- TVwsViewEventType iEventType;
- TVwsViewId iViewOneId;
- TVwsViewId iViewTwoId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- };
- typedef TPckgBuf<TVwsViewIdAndMessage> TVwsViewIdAndMessageBuf;
- typedef TPckgBuf<TVwsViewEvent> TVwsViewEventBuf;
- inline TVwsViewId::TVwsViewId()
- : iAppUid(TUid::Null() ), iViewUid(TUid::Null() ) {}
- inline TVwsViewId::TVwsViewId(const TVwsViewId& aUid)
- : iAppUid(aUid.iAppUid), iViewUid(aUid.iViewUid) {}
- inline TVwsViewId::TVwsViewId(TUid aAppUid,TUid aViewUid)
- : iAppUid(aAppUid), iViewUid(aViewUid) {}
- inline TBool TVwsViewId::operator==(const TVwsViewId& aUid) const
- #line 147
- {
- return (aUid.iAppUid==iAppUid && aUid.iViewUid==iViewUid);
- }
- inline TBool TVwsViewId::operator!=(const TVwsViewId& aUid) const
- #line 160
- {
- return (aUid.iAppUid!=iAppUid || aUid.iViewUid!=iViewUid);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage()
- : iViewId(TVwsViewId()), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId)
- : iViewId(aId), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage)
- : iViewId(aId), iCustomMessageId(aCustomMessageId)
- {
- iCustomMessageLength=aCustomMessage.Length();
- iCustomMessage.Set(aCustomMessage);
- }
- inline TVwsViewIdAndMessage& TVwsViewIdAndMessage::operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage)
- {
- iViewId=aVwsViewIdAndMessage.iViewId;
- iCustomMessageId=aVwsViewIdAndMessage.iCustomMessageId;
- iCustomMessageLength=aVwsViewIdAndMessage.iCustomMessage.Length();
- iCustomMessage.Set(aVwsViewIdAndMessage.iCustomMessage);
- return(*this);
- }
- inline TVwsViewEvent::TVwsViewEvent() {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType)
- : iEventType(aEventType),iViewOneId(),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(aCustomMessageId),iCustomMessageLength(aCustomMessageLength) {}
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coedef.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\guldef.h" /* stack depth 7 */
- #line 13
- enum TGulAdjacent
- {
- EGulAdjNone =0x00,
- EGulAdjTop =0x01,
- EGulAdjBottom =0x02,
- EGulAdjLeft =0x04,
- EGulAdjRight =0x08
- };
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\coedef.h" /* stack depth 6 */
- #line 19
- enum TKeyResponse
- {
- EKeyWasNotConsumed,
- EKeyWasConsumed
- };
- #line 34
- enum TDrawNow
- {
- ENoDrawNow,
- EDrawNow
- };
- enum TCoeWinPriority
- {
- ECoeWinPriorityNeverAtFront =-1000,
- ECoeWinPriorityLow =-750,
- ECoeWinPriorityNormal =0,
- ECoeWinPriorityMedium =500,
- ECoeWinPriorityHigh =750,
- ECoeWinPriorityFep =900,
- ECoeWinPriorityAlwaysAtFront =1000
- };
- const TInt KUidValueCoeColorSchemeChangeEvent =0x100056C4;
- const TInt KUidValueCoeZoomChangeEvent =0x100057C3;
- const TInt KUidValueCoeFontChangeEvent =0x100057C4;
- const TUint KUidFepFrameworkRepository=0x10272618;
- enum
- {
- ERepositoryKeyMask_DefaultSetting =0x00001000,
- ERepositoryKeyMask_DynamicSetting =0x00002000,
- ERepositoryKeyMask_FepId =0x00000001,
- ERepositoryKeyMask_OnState =0x00000002,
- ERepositoryKeyMask_OnKeyData =0x00000004,
- ERepositoryKeyMask_OffKeyData =0x00000008,
- ERepositoryKey_DefaultFepId =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_FepId,
- ERepositoryKey_DefaultOnState =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnState,
- ERepositoryKey_DefaultOnKeyData =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnKeyData,
- ERepositoryKey_DefaultOffKeyData =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OffKeyData,
- ERepositoryKey_DynamicFepId =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_FepId,
- ERepositoryKey_DynamicOnState =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnState,
- ERepositoryKey_DynamicOnKeyData =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnKeyData,
- ERepositoryKey_DynamicOffKeyData =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OffKeyData
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coehelp.h" /* stack depth 6 */
- #line 17
- typedef TBuf<30> TCoeContextName;
- class TCoeHelpContext
- #line 30
- {
- public:
- __declspec(dllexport) TCoeHelpContext();
- __declspec(dllexport) TCoeHelpContext(TUid aMajor,const TDesC& aContext);
- __declspec(dllexport) TBool IsNull() const;
- __declspec(dllexport) TBool operator==(const TCoeHelpContext& aContext) const;
- __declspec(dllexport) TBool operator!=(const TCoeHelpContext& aContext) const;
- public:
- TUid iMajor;
- TCoeContextName iContext;
- private:
- TInt iTCoeHelpContext_Reserved1;
- };
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeview.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\barsc.h" /* stack depth 8 */
- #line 12
- class RResourceFileImpl;
- #line 34
- class RResourceFile
- {
- public:
- __declspec(dllexport) RResourceFile();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void OpenL(RFs &aFs,const TDesC &aName);
- __declspec(dllexport) TUidType UidType() const;
- __declspec(dllexport) void ReadL(TDes8 &aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC8 *AllocReadL(TInt aResourceId) const;
- __declspec(dllexport) HBufC8 *AllocReadLC(TInt aResourceId) const;
- __declspec(dllexport) void ConfirmSignatureL(TInt aSignature);
- __declspec(dllexport) void ConfirmSignatureL();
- __declspec(dllexport) TInt SignatureL() const;
- __declspec(dllexport) TBool OwnsResourceId(TInt aResourceId) const;
- __declspec(dllexport) TBool OwnsResourceIdL(TInt aResourceId) const;
- __declspec(dllexport) void OpenL(RFs& aFs, const TDesC& aName, TUint aFileOffset, TInt aFileSize);
- inline TInt Offset() const;
- private:
- void DoOpenL(RFs& aFs, const TDesC& aName, TUint aFileOffset, TInt aFileSize);
- __declspec(dllexport) TInt Offset2() const;
- RResourceFileImpl* Impl();
- const RResourceFileImpl* Impl() const;
- private:
- enum
- {
- KRscFileSize = 24
- };
- TUint8 iImpl[KRscFileSize];
- };
- #line 72
- inline TInt RResourceFile::Offset() const
- {
- return Offset2();
- }
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\badesca.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bamdesca.h" /* stack depth 9 */
- #line 19
- class MDesC8Array
- #line 28
- {
- public:
- virtual ~MDesC8Array() {}
- virtual TInt MdcaCount() const =0;
- #line 48
- virtual TPtrC8 MdcaPoint(TInt aIndex) const =0;
- };
- class MDesC16Array
- #line 61
- {
- public:
- virtual ~MDesC16Array() {}
- virtual TInt MdcaCount() const =0;
- #line 81
- virtual TPtrC16 MdcaPoint(TInt aIndex) const =0;
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\badesca.h" /* stack depth 8 */
- #line 22
- class CDesC8Array : public CArrayFixBase, public MDesC8Array
- {
- protected:
- __declspec(dllexport) CDesC8Array(TBufRep aRep,TInt aGranularity);
- public:
- __declspec(dllexport) ~CDesC8Array();
- __declspec(dllexport) void AppendL(const TDesC8& aPtr);
- __declspec(dllexport) void InsertL(TInt aPos,const TDesC8& aPtr);
- __declspec(dllexport) TInt InsertIsqL(const TDesC8& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt InsertIsqAllowDuplicatesL(const TDesC8& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt Find(const TDesC8& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) TInt FindIsq(const TDesC8& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) void Delete(TInt aPos);
- __declspec(dllexport) void Delete(TInt aIndex,TInt aCount);
- __declspec(dllexport) void Reset();
- inline TPtrC8 operator[](TInt aIndex) const;
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC8 MdcaPoint(TInt aIndex) const;
- };
- inline TPtrC8 CDesC8Array::operator[](TInt aIndex) const
- { return(MdcaPoint(aIndex)); }
- class CDesC8ArrayFlat : public CDesC8Array
- {
- public:
- __declspec(dllexport) CDesC8ArrayFlat(TInt aGranularity);
- __declspec(dllexport) ~CDesC8ArrayFlat();
- };
- class CDesC8ArraySeg : public CDesC8Array
- {
- public:
- __declspec(dllexport) CDesC8ArraySeg(TInt aGranularity);
- __declspec(dllexport) ~CDesC8ArraySeg();
- };
- class CDesC16Array : public CArrayFixBase, public MDesC16Array
- #line 93
- {
- protected:
- __declspec(dllexport) CDesC16Array(TBufRep aRep,TInt aGranularity);
- public:
- __declspec(dllexport) ~CDesC16Array();
- __declspec(dllexport) void AppendL(const TDesC16& aPtr);
- __declspec(dllexport) void InsertL(TInt aPos,const TDesC16& aPtr);
- __declspec(dllexport) TInt InsertIsqL(const TDesC16& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt InsertIsqAllowDuplicatesL(const TDesC16& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt Find(const TDesC16& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) TInt FindIsq(const TDesC16& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) void Delete(TInt aPos);
- __declspec(dllexport) void Delete(TInt aIndex,TInt aCount);
- __declspec(dllexport) void Reset();
- inline TPtrC16 operator[](TInt aIndex) const;
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC16 MdcaPoint(TInt aIndex) const;
- };
- inline TPtrC16 CDesC16Array::operator[](TInt aIndex) const
- #line 129
- { return(MdcaPoint(aIndex)); }
- class CDesC16ArrayFlat : public CDesC16Array
- {
- public:
- __declspec(dllexport) CDesC16ArrayFlat(TInt aGranularity);
- __declspec(dllexport) ~CDesC16ArrayFlat();
- };
- class CDesC16ArraySeg : public CDesC16Array
- {
- public:
- __declspec(dllexport) CDesC16ArraySeg(TInt aGranularity);
- __declspec(dllexport) ~CDesC16ArraySeg();
- };
- class CPtrC8Array : public CArrayFixFlat<TPtrC8>, public MDesC8Array
- {
- public:
- __declspec(dllexport) CPtrC8Array(TInt aGranularity);
- __declspec(dllexport) ~CPtrC8Array();
- __declspec(dllexport) void CopyL(const MDesC8Array& aArray);
- inline void operator=(const MDesC8Array& aArray);
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC8 MdcaPoint(TInt aIndex) const;
- };
- class CPtrC16Array : public CArrayFixFlat<TPtrC16>, public MDesC16Array
- {
- public:
- __declspec(dllexport) CPtrC16Array(TInt aGranularity);
- __declspec(dllexport) ~CPtrC16Array();
- __declspec(dllexport) void CopyL(const MDesC16Array& aArray);
- inline void operator=(const MDesC16Array& aArray);
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC16 MdcaPoint(TInt aIndex) const;
- };
- inline void CPtrC8Array::operator=(const MDesC8Array& aArray)
- #line 212
- {CopyL(aArray);}
- inline void CPtrC16Array::operator=(const MDesC16Array& aArray)
- #line 225
- {CopyL(aArray);}
- #line 237
- typedef CDesC16Array CDesCArray;
- #line 246
- typedef CDesC16ArrayFlat CDesCArrayFlat;
- #line 255
- typedef CDesC16ArraySeg CDesCArraySeg;
- #line 270
- typedef CPtrC16Array CPtrCArray;
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\basched.h" /* stack depth 8 */
- #line 25
- const TInt KErrExtended=(-1000);
- const TInt KErrExtendedWithText=(-1001);
- const TInt KLeaveWithoutAlert=(-1002);
- const TInt KLeaveExit=(-1003);
- struct SExtendedError
- {
- TUid iComponent;
- TInt iErrorNumber;
- TBool iInformation;
- };
- class CBaErrorHandler;
- class CBaActiveScheduler : public CActiveScheduler
- {
- public:
- __declspec(dllexport) static void LeaveNoAlert();
- public:
- __declspec(dllexport) static void Exit();
- __declspec(dllexport) static void LeaveForAlert(TUid aComponent,TInt aErrorNumber);
- __declspec(dllexport) static void LeaveForInfoPrint(TUid aComponent,TInt aErrorNumber);
- __declspec(dllexport) static void LeaveForErrorHandler(const CBaErrorHandler *aHandler);
- __declspec(dllexport) static const SExtendedError& ExtendedError();
- __declspec(dllexport) static void DisplayExtendedError(TUid aComponent,TInt aErrorNumber);
- __declspec(dllexport) virtual void DisplayError(TInt aError) const;
- public:
- __declspec(dllexport) void Error(TInt aError) const;
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- static void ExtendedLeave(TUid aComponent,TInt aErrorNumber,TBool aLeaveForInfoPrint);
- protected:
- SExtendedError iExtendedError;
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemop.h" /* stack depth 8 */
- #line 24
- class TTypeUid : public TUid
- #line 43
- {
- public:
- class Ptr
- {
- friend class TTypeUid;
- private:
- explicit inline Ptr(TAny* aPtr)
- : iPtr(aPtr)
- {}
- public:
- inline TAny* Pointer() const
- {return iPtr;}
- private:
- TAny* iPtr;
- };
- public:
- inline TTypeUid(TInt aUid)
- { iUid = aUid; }
- inline static Ptr Null()
- { return Ptr(0 ); }
- template <class T> inline Ptr MakePtr(T* aT) const
- { (void)((iUid == T::ETypeId)||(User::Invariant(),0)) ; return Ptr(aT); }
- };
- class MObjectProvider
- #line 106
- {
- public:
- template<class T>
- T* MopGetObject(T*& aPtr)
- #line 119
- { return (aPtr=(T*)MopGetById(T::ETypeId)); }
- template<class T>
- T* MopGetObjectNoChaining(T*& aPtr)
- #line 133
- { return (aPtr=(T*)MopGetByIdNoChaining(T::ETypeId)); }
- private:
- #line 145
- virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId) = 0;
- protected:
- __declspec(dllexport) MObjectProvider();
- private:
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- __declspec(dllexport) virtual void MObjectProvider_Reserved1();
- __declspec(dllexport) virtual void MObjectProvider_Reserved2();
- private:
- __declspec(dllexport) TAny* MopGetById(TTypeUid aId);
- __declspec(dllexport) TAny* MopGetByIdNoChaining(TTypeUid aId);
- private:
- TInt iMObjectProvider_Reserved1;
- };
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulbordr.h" /* stack depth 10 */
- #line 22
- class TGulBorder
- #line 38
- {
- public:
- class TColors
- #line 53
- {
- public:
- __declspec(dllexport) TColors();
- public:
- TRgb iLine;
- TRgb iBack;
- TRgb iLight;
- TRgb iMidlight;
- TRgb iMid;
- TRgb iDark;
- TRgb iInternalBack;
- };
- public:
- enum TOutlineStyle
- {
- EWithOutline=0x01,
- EDottedOutline=0x02
- };
- enum TInlineStyle
- {
- EWithInline=0x04
- };
- enum T3DStyle
- {
- EFlat=0x10,
- ESunken=0x20,
- ERaised=0x40
- };
- enum TConstructionStyle
- {
- EOneStep=0x100,
- ETwoStep=0x200,
- EThreeStep=0x400,
- EInvertedTwoStep=0x800
- };
- #line 153
- enum TThickness
- {
- EAddOnePixel=0x1000,
- EAddTwoPixels=0x2000,
- EAddFourPixels=0x4000
- };
- enum TRounding
- {
- EAddOneRoundingPixel=0x10000,
- EAddTwoRoundingPixels=0x20000,
- EAddFourRoundingPixels=0x40000
- };
- private:
- enum TNull
- {
- ENoBorder=0x00
- };
- enum TLegacyStyle
- {
- EShallow=EAddOnePixel,
- EDeep=EAddTwoPixels,
- EThick=EAddFourPixels,
- EHorizontal=0x100000,
- EWithOverlap=0x200000,
- EGray=0x400000,
- EBlack=0x80000
- };
- enum TLogicalStyle
- {
- ELogical=0x800000
- };
- public:
- enum TLogicalFamily
- {
- EWindowFamily=ELogical|0x1,
- EContainerFamily=ELogical|0x2,
- EControlFamily=ELogical|0x3
- };
- public:
- enum TBorderType
- {
- ENone=ENoBorder,
- ESingleGray=EWithOutline|EGray,
- ESingleBlack=EWithOutline|EBlack,
- ESingleDotted=EWithOutline|EDottedOutline,
- EShallowRaised=ERaised|EOneStep|EAddOnePixel,
- EShallowSunken=ESunken|EOneStep|EAddOnePixel,
- EDeepRaised=EWithOutline|ERaised|EOneStep|EAddTwoPixels,
- EDeepRaisedWithOutline=EWithOutline|ERaised|EOneStep|EAddTwoPixels,
- EDeepSunken=EWithOutline|ESunken|EOneStep|EAddTwoPixels,
- EDeepSunkenWithOutline=EWithOutline|ESunken|EOneStep|EAddTwoPixels,
- EThickDeepRaisedWithOutline=EWithOutline|ERaised|EOneStep|EAddOnePixel|EAddTwoPixels,
- EVerticalBar=ERaised|EOneStep|EAddTwoPixels|EWithOverlap,
- EHorizontalBar=ERaised|EOneStep|EAddTwoPixels|EHorizontal|EWithOverlap
- };
- enum TLogicalType
- {
- EWindow=EWindowFamily|ERaised,
- EFlatContainer=EContainerFamily|EFlat,
- ERaisedContainer=EContainerFamily|ERaised,
- ESunkenContainer=EContainerFamily|ESunken,
- EFlatControl=EControlFamily|EFlat,
- ERaisedControl=EControlFamily|ERaised,
- ESunkenControl=EControlFamily|ESunken,
- EFocusedRaisedControl=EControlFamily|ERaised|0x100,
- EFocusedSunkenControl=EControlFamily|ESunken|0x100
- };
- public:
- __declspec(dllexport) TGulBorder();
- __declspec(dllexport) TGulBorder(TBorderType aType);
- __declspec(dllexport) TGulBorder(TBorderType aType,TGulAdjacent aAdjacent);
- __declspec(dllexport) TGulBorder(TInt aType);
- __declspec(dllexport) TGulBorder(TInt aType,TGulAdjacent aAdjacent);
- __declspec(dllexport) void Draw(CGraphicsContext& aGc,const TRect& aRect,const TColors& aBorderColors) const;
- __declspec(dllexport) void Draw(CGraphicsContext& aGc,const TRect& aRect) const;
- __declspec(dllexport) TRect InnerRect(const TRect& aOuterRect) const;
- __declspec(dllexport) TRect OuterRect(const TRect& aInnerRect) const;
- __declspec(dllexport) void SetType(TInt aType);
- __declspec(dllexport) void SetAdjacent(TInt aAdjacent);
- __declspec(dllexport) TSize SizeDelta() const;
- __declspec(dllexport) TMargins Margins() const;
- __declspec(dllexport) TBool HasBorder() const;
- __declspec(dllexport) TInt Adjacent() const;
- __declspec(dllexport) TInt Type() const;
- public:
- __declspec(dllexport) TInt Thickness() const;
- __declspec(dllexport) TInt Rounding() const;
- private:
- TBool IsSunken() const;
- TInt Depth() const;
- void DrawOutline(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor) const;
- void DrawRectOutline(CGraphicsContext& aGc,const TRect& aRect) const;
- void DrawInline(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor) const;
- TMargins OutlineMargins() const;
- TMargins BorderMargins() const;
- TMargins InlineMargins() const;
- TRect OutlineInnerRect(const TRect& aOuterRect) const;
- TRect BorderInnerRect(const TRect& aOuterRect) const;
- TInt BorderRounding() const;
- TInt InlineRounding() const;
- void DrawOneStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aMidlight,TRgb aMid) const;
- void DrawTwoStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aLight,TRgb aMidlight,TRgb aMid,TRgb aDark) const;
- void DrawInvertedTwoStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aLight,TRgb aMidlight,TRgb aMid,TRgb aDark) const;
- void DrawThreeStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aBack,TRgb aLight,TRgb aMidlight,TRgb aMid,TRgb aDark) const;
- void DrawTopLeft(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor,const TInt aRounding) const;
- void DrawRoundedTopLeft(CGraphicsContext& aGc,const TRect& aRect,const TInt aRounding) const;
- void DrawBottomRight(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor,const TInt aRounding) const;
- void DrawRoundedBottomRight(CGraphicsContext& aGc,const TRect& aRect,const TInt aRounding) const;
- void DrawRoundedCorner(CGraphicsContext& aGc,const TPoint& aStart,const TInt aRoundedLength, const TBool aUp, const TBool aRight) const;
- TInt RoundingMargin(const TInt aRoundedLength) const;
- inline TInt InternalType() const;
- void TranslateLegacyTypes();
- private:
- TInt iType;
- };
- class MGulLogicalBorder
- {
- public:
- virtual void Draw(const TGulBorder& aBorder,CGraphicsContext& aGc, const TRect& aRect, const TGulBorder::TColors& aBorderColors) const=0;
- virtual TMargins Margins(const TGulBorder& aBorder) const=0;
- private:
- __declspec(dllexport) virtual void MGulLogicalBorderReserved();
- };
- class GulTls
- {
- public:
- __declspec(dllexport) static void SetLogicalBorder(MGulLogicalBorder* aLogicalBorder);
- __declspec(dllexport) static const MGulLogicalBorder* LogicalBorder();
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulftflg.hrh" /* stack depth 10 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 9 */
- const TUint KTextUtilClipEndChar=0x2026;
- const TUint KColumnListSeparator='t';
- class CFont;
- class CFbsFont;
- class CWsScreenDevice;
- class TResourceReader;
- class CColorArray;
- class CGraphicsDevice;
- class RWsSession;
- class CColorList;
- template <class T> class CArrayFix;
- class TMargins8
- {
- public :
- TInt8 iLeft;
- TInt8 iRight;
- TInt8 iTop;
- TInt8 iBottom;
- public :
- __declspec(dllexport) TMargins8();
- __declspec(dllexport) void SetAllValuesTo(TInt aCommonValue);
- __declspec(dllexport) TRect InnerRect(const TRect& aOuterRect) const;
- __declspec(dllexport) TRect OuterRect(const TRect& aInnerRect) const;
- __declspec(dllexport) TSize SizeDelta() const;
- };
- class DrawUtils
- {
- public:
- __declspec(dllexport) static void DrawText(CGraphicsContext& aGc,const TDesC& aString,const TRect& aBox,TInt aBaseLineOffset,
- CGraphicsContext::TTextAlign aHoriz,TInt aMargin,const CFont* aFont);
- __declspec(dllexport) static void DrawBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);
- __declspec(dllexport) static void ClearBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);
- };
- class TextUtils
- {
- public:
- __declspec(dllexport) static void ClipToFit(TDes& aBuffer,const CFont& aFont,TInt aMaxWidthInPixels,TChar aAlternativeEnd=KTextUtilClipEndChar);
- __declspec(dllexport) static TInt ColumnText(TPtrC& aColumnText,TInt aColumn,const TDesC* aSourceText,TChar aColumnSeparator=KColumnListSeparator);
- __declspec(dllexport) static void TruncateToNumChars(TDes& aBuffer, TInt numChars);
- };
- class FontUtils
- {
- public:
- __declspec(dllexport) static void GetAvailableFontsL(CGraphicsDevice& aDevice,CDesCArray& aFontNameList,
- TInt aFonts=0x10 );
- __declspec(dllexport) static TInt TypefaceAttributes(CGraphicsDevice& aDevice,const TDesC& aTypefaceName);
- __declspec(dllexport) static TInt GetAvailableHeightsInTwipsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
- CArrayFix<TInt>& aHeightList);
- __declspec(dllexport) static TInt GetAvailableHeightsInTwipsAndPointsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
- CArrayFix<TInt>& aTwipsList,CDesCArray& aPointsList);
- __declspec(dllexport) static TInt PointsFromTwips(TInt aTwips);
- __declspec(dllexport) static TInt TwipsFromPoints(TInt aPoints);
- __declspec(dllexport) static TInt TwipsFromPoints(const TDesC& aPoints);
- __declspec(dllexport) static TInt IndexOfNearestHeight(CArrayFix<TInt>& aTwipsList,TInt aHeight);
- };
- class ResourceUtils
- #line 120
- {
- public:
- __declspec(dllexport) static CFbsFont* CreateNamedScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- __declspec(dllexport) static CFbsFont* CreateNamedScreenFontInPixelsL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- __declspec(dllexport) static CFbsFont* CreateScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- inline static TInt8 ReadTInt8L(TResourceReader& aReader);
- inline static TInt16 ReadTInt16L(TResourceReader& aReader);
- inline static TInt32 ReadTInt32L(TResourceReader& aReader);
- __declspec(dllexport) static void PopulateColorArrayL(CColorArray& aColors,TResourceReader& aReader);
- private:
- enum TResourceTypeInt { EResourceInt8,EResourceInt16,EResourceInt32 };
- private:
- __declspec(dllexport) static TInt32 ReadResourceIntL(TResourceReader& aReader,TResourceTypeInt aSize);
- };
- class ColorUtils
- {
- public:
- enum TBitmapOrientation
- {
- EBitmapOrientationVertical,
- EBitmapOrientationHorizontal
- };
- public:
- __declspec(dllexport) static TRgb ColorAdjust(TRgb aColor,TInt aPercentage);
- __declspec(dllexport) static void CreateGradientBitmapL(CFbsBitmap& aBitmap,RWsSession& aWs,TInt aBreadth,
- TBitmapOrientation aOrientation,TRgb aStartColor,TRgb aEndColor);
- __declspec(dllexport) static CColorList* CreateSystemColorListL(RFs& aFs);
- __declspec(dllexport) static CColorList* CreateSystemColorListL(RFs& aFs,const CColorList& aColorList);
- __declspec(dllexport) static void UpdateSystemColorListL(RFs& aFs,CColorList& aColorList);
- __declspec(dllexport) static void GetRgbDerivedBorderColors(TGulBorder::TColors& aBorderColors,TRgb aBackgroundColor,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbDarkerColor(TRgb aRgb,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbMidDarkerColor(TRgb aRgb,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbLighterColor(TRgb aRgb,TDisplayMode aMode);
- };
- class TFindWidthOfWidestTextItem
- #line 176
- {
- protected:
- inline TFindWidthOfWidestTextItem() {}
- public:
- __declspec(dllexport) TInt MaximumWidthInPixels(const CFont& aFont) const;
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const=0;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const=0;
- };
- class TFindWidthOfWidestDigit : public TFindWidthOfWidestTextItem
- #line 209
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDigit();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDigitType : public TFindWidthOfWidestTextItem
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDigitType(TDigitType aDigitType);
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- private:
- TDigitType iDigitType;
- };
- class TFindWidthOfWidestAmPmName : public TFindWidthOfWidestTextItem
- #line 243
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAmPmName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestAbbreviatedDayName : public TFindWidthOfWidestTextItem
- #line 261
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAbbreviatedDayName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDayName : public TFindWidthOfWidestTextItem
- #line 279
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDayName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestAbbreviatedMonthName : public TFindWidthOfWidestTextItem
- #line 297
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAbbreviatedMonthName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestMonthName : public TFindWidthOfWidestTextItem
- #line 314
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestMonthName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDateSuffix : public TFindWidthOfWidestTextItem
- #line 331
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDateSuffix();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- inline TInt8 ResourceUtils::ReadTInt8L(TResourceReader& aReader)
- { return((TInt8)ReadResourceIntL(aReader,EResourceInt8)); }
- inline TInt16 ResourceUtils::ReadTInt16L(TResourceReader& aReader)
- { return((TInt16)ReadResourceIntL(aReader,EResourceInt16)); }
- inline TInt32 ResourceUtils::ReadTInt32L(TResourceReader& aReader)
- { return((TInt32)ReadResourceIntL(aReader,EResourceInt32)); }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulalign.h" /* stack depth 9 */
- #line 25
- enum TGulHAlignment
- {
- EHLeft=CGraphicsContext::ELeft,
- EHCenter=CGraphicsContext::ECenter,
- EHRight=CGraphicsContext::ERight
- };
- enum TGulVAlignment
- {
- EVTop=0x00,
- EVCenter=0x10,
- EVBottom=0x20
- };
- enum TGulAlignmentValue
- {
- EHLeftVTop=EHLeft|EVTop,
- EHLeftVCenter=EHLeft|EVCenter,
- EHLeftVBottom=EHLeft|EVBottom,
- EHCenterVTop=EHCenter|EVTop,
- EHCenterVCenter=EHCenter|EVCenter,
- EHCenterVBottom=EHCenter|EVBottom,
- EHRightVTop=EHRight|EVTop,
- EHRightVCenter=EHRight|EVCenter,
- EHRightVBottom=EHRight|EVBottom
- };
- class TGulAlignment
- {
- private:
- enum {EHMask=0x03, EVMask=0x30};
- public:
- inline TGulAlignment();
- inline TGulAlignment(TGulAlignmentValue aValue);
- inline TGulAlignment(CGraphicsContext::TTextAlign aHAlign, TGulVAlignment aVAlign = EVTop);
- inline operator TGulAlignmentValue() const;
- inline TGulVAlignment VAlignment() const;
- inline TGulHAlignment HAlignment() const;
- inline CGraphicsContext::TTextAlign TextAlign() const;
- __declspec(dllexport) void SetVAlignment(TGulVAlignment aVAlign);
- __declspec(dllexport) void SetHAlignment(TGulHAlignment aHAlign);
- __declspec(dllexport) void SetHAlignment(CGraphicsContext::TTextAlign aHAlign);
- __declspec(dllexport) TPoint InnerTopLeft(const TRect& aOuter,const TSize& aInnerSize) const;
- __declspec(dllexport) TRect InnerRect(const TRect& aOuter,const TSize& aInnerSize) const;
- private:
- TGulAlignmentValue iValue;
- };
- inline TGulAlignment::TGulAlignment()
- {};
- inline TGulAlignment::TGulAlignment(TGulAlignmentValue aValue)
- {iValue=aValue;}
- inline TGulAlignment::TGulAlignment(CGraphicsContext::TTextAlign aHAlign, TGulVAlignment aVAlign)
- { iValue = static_cast<TGulAlignmentValue>(((TGulHAlignment)aHAlign) |aVAlign); }
- inline TGulAlignment::operator TGulAlignmentValue() const
- {return(iValue);}
- inline TGulVAlignment TGulAlignment::VAlignment() const
- {return((TGulVAlignment)(iValue&EVMask));}
- inline TGulHAlignment TGulAlignment::HAlignment() const
- {return((TGulHAlignment)(iValue&EHMask));}
- inline CGraphicsContext::TTextAlign TGulAlignment::TextAlign() const
- {return((CGraphicsContext::TTextAlign)(HAlignment()));}
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 8 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\biditext.h" /* stack depth 9 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bidi.h" /* stack depth 10 */
- #line 16
- class RWriteStream;
- class RReadStream;
- class TBidirectionalState
- #line 31
- {
- public:
- class TRunInfo
- #line 44
- {
- public:
- TUint iCategory;
- TUint8 iEmbeddingLevel;
- TUint8 iDirection;
- TInt iIndex;
- TInt iStart;
- TInt iLength;
- };
- __declspec(dllexport) TBidirectionalState();
- __declspec(dllexport) void ReorderLine(TRunInfo* aRunInfo,TInt aRuns,TBool aParStart,TBool aParEnd,TBool aParRightToLeft,
- TChar::TBdCategory aNextCategory,TChar::TBdCategory aNextStrongCategory,
- TBool& aVisualEndIsAmbiguous);
- __declspec(dllexport) void ReorderLine(TRunInfo* aRunInfo,TInt aRuns,TBool aParStart,TBool aParEnd,TBool aParRightToLeft,
- TChar::TBdCategory aNextCategory,TChar::TBdCategory aNextStrongCategory);
- __declspec(dllexport) static TInt ReorderText(const TText* aText,TInt aLength,TBool aParRightToLeft,TText*& aNewText);
- __declspec(dllexport) static void ReverseGroups(TText* aStart,TInt aLength);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TBool IsDefault() const;
- __declspec(dllexport) TBool operator==(const TBidirectionalState& aState) const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aDest);
- __declspec(dllexport) void InternalizeL(RReadStream& aSource);
- TBool ParRightToLeft() const { return iStack[0].iEmbeddingLevel & 1; }
- private:
- enum TCategory
- {
- ELeftToRight = 1 << TChar::ELeftToRight,
- ELeftToRightEmbedding = 1 << TChar::ELeftToRightEmbedding,
- ELeftToRightOverride = 1 << TChar::ELeftToRightOverride,
- ERightToLeft = 1 << TChar::ERightToLeft,
- ERightToLeftArabic = 1 << TChar::ERightToLeftArabic,
- ERightToLeftEmbedding = 1 << TChar::ERightToLeftEmbedding,
- ERightToLeftOverride = 1 << TChar::ERightToLeftOverride,
- EPopDirectionalFormat = 1 << TChar::EPopDirectionalFormat,
- EEuropeanNumber = 1 << TChar::EEuropeanNumber,
- EEuropeanNumberSeparator = 1 << TChar::EEuropeanNumberSeparator,
- EEuropeanNumberTerminator = 1 << TChar::EEuropeanNumberTerminator,
- EArabicNumber = 1 << TChar::EArabicNumber,
- ECommonNumberSeparator = 1 << TChar::ECommonNumberSeparator,
- ENonSpacingMark = 1 << TChar::ENonSpacingMark,
- EBoundaryNeutral = 1 << TChar::EBoundaryNeutral,
- EParagraphSeparator = 1 << TChar::EParagraphSeparator,
- ESegmentSeparator = 1 << TChar::ESegmentSeparator,
- EWhitespace = 1 << TChar::EWhitespace,
- EOtherNeutral = 1 << TChar::EOtherNeutral,
- EBdControlsGroup = ELeftToRightEmbedding | ERightToLeftEmbedding |
- ELeftToRightOverride | ERightToLeftOverride | EPopDirectionalFormat,
- ELeftToRightGroup = ELeftToRight | EEuropeanNumber | ELeftToRightOverride | ELeftToRightEmbedding,
- ERightToLeftGroup = ERightToLeft | EArabicNumber | ERightToLeftArabic | ERightToLeftOverride |
- ERightToLeftEmbedding,
- EStrongGroup = ELeftToRightEmbedding | ERightToLeftEmbedding
- | ELeftToRightOverride | ERightToLeftOverride
- | ELeftToRight | ERightToLeft | ERightToLeftArabic,
- ENoCategory = 0
- };
- enum
- {
- EMaxExplicitLevel = 61,
- EMaxLevel = 63,
- EMaxStackLevels = 62
- };
- enum TOverrideState
- {
- ENoOverrideState = 0,
- ELeftToRightOverrideState = ELeftToRightOverride,
- ERightToLeftOverrideState = ERightToLeftOverride
- };
- class TStackItem
- {
- public:
- TUint8 iEmbeddingLevel;
- TOverrideState iOverrideState;
- TCategory iStartCategory;
- };
- public:
- class TReorderContext
- {
- public:
- void SetNextCategory(TChar::TBdCategory aCat);
- void SetNextStrongCategory(TChar::TBdCategory aCat);
- public:
- TCategory iNextCategory;
- TCategory iNextStrongCategory;
- TRunInfo* iRunInfo;
- TInt iRuns;
- TUint32 iCategories;
- TCategory iLastStrongCategory;
- };
- public:
- static TInt GenerateBdRunArray(const TText* aText, TInt aLength,
- TBidirectionalState::TRunInfo* aRun, TInt aMaxRuns);
- private:
- const TStackItem& State() const { return iStack[iStackLevel]; }
- TCategory Push(TCategory aStartCategory);
- TCategory Pop();
- public:
- TBidirectionalState(TChar::TBdCategory aPrevCat,
- TChar::TBdCategory aPrevStrongCat, TBool aParRightToLeft);
- void HandleBdControls(TReorderContext& aContext);
- void ResolveWeakTypesW1W2W3(TReorderContext& aContext);
- void ResolveWeakTypesW4W5W6(TReorderContext& aContext);
- void ResolveWeakTypesW7(TReorderContext& aContext);
- void ResolveNeutralTypes(TReorderContext& aContext);
- void ResolveImplicitLevels(TReorderContext& aContext);
- void PrepareForNextLine(const TReorderContext& aContext);
- void ReorderRuns(TReorderContext& aContext);
- static TInt CatToNumber(TInt aCat);
- static TCategory CharToBdCat(TChar::TBdCategory aCat);
- static TCategory UintToBdCat(TUint aCat);
- static void DeneutralizeRuns(TRunInfo* aStart, TRunInfo* aEnd,
- TCategory aStartCategory, TCategory aEndCategory);
- private:
- TCategory iPreviousCategory;
- TCategory iPreviousStrongCategory;
- TInt16 iStackLevel;
- TInt8 iPushesBeyond60;
- TInt8 iPushesBeyond61;
- TStackItem iStack[EMaxStackLevels];
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\biditext.h" /* stack depth 9 */
- enum CGraphicsContext::TTextAlign;
- class MLineBreaker;
- class RRunInfoArray;
- class CBidiTextTls;
- #line 27
- class TBidiText
- {
- public:
- enum TDirectionality
- {
- ELeftToRight = 0,
- ERightToLeft = 1
- };
- enum TPanicCodes
- {
- EPanicRunArrayNull,
- };
- __declspec(dllexport) static TDirectionality ScriptDirectionality(TLanguage aLanguage);
- __declspec(dllexport) static TDirectionality TextDirectionality(
- const TDesC& aText, TBool* aFound = 0);
- protected:
- TBidiText();
- public:
- __declspec(dllexport) static TBidiText* NewL(TInt aReservedMaxLength, TInt aMaxLines);
- __declspec(dllexport) static TBidiText* NewL(const TDesC& aText, TInt aMaxLines);
- __declspec(dllexport) static TBidiText* NewL(const TDesC& aText, TInt aMaxLines,
- TDirectionality aDirectionality);
- __declspec(dllexport) TInt SetText(const TDesC& aText, RRunInfoArray& aRunInfoArray);
- __declspec(dllexport) TInt SetText(const TDesC& aText, TDirectionality aDirectionality, RRunInfoArray& aRunInfoArray);
- __declspec(dllexport) void SetTruncationChar(TChar aTruncateWith);
- __declspec(dllexport) void WrapText(TInt aWrappingWidth, const CFont& aFont,
- const MLineBreaker* aBreaker, TInt aMaxLines);
- __declspec(dllexport) void WrapText(TInt aWrappingWidth, const CFont& aFont,
- const MLineBreaker* aBreaker = 0 );
- __declspec(dllexport) TSize MinimumSize(TInt aWrappingWidth, const CFont& aFont, TInt aLineGap, TInt aMaxLines = -1,
- const MLineBreaker* aBreaker = 0 ) const;
- __declspec(dllexport) TPtrC Text() const;
- __declspec(dllexport) TPtrC DisplayText() const;
- __declspec(dllexport) TInt WrappingWidth() const;
- __declspec(dllexport) TDirectionality Directionality() const;
- __declspec(dllexport) TChar TruncationChar() const;
- __declspec(dllexport) TInt NumberOfLinesInDisplayText() const;
- __declspec(dllexport) TPtrC LineOfDisplayText(TInt aLine, TInt& aWidthInPixels) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TPoint& aLeft) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc,
- const TPoint& aLeft, TInt aBaseLineSpacing,
- CGraphicsContext::TTextAlign aAlignment) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc,
- const TPoint& aLeft, TInt aBaseLineSpacing) const;
- private:
- TInt DoWrapText(TInt aWrappingWidth, const CFont& aFont, const MLineBreaker* aBreaker,
- TInt aMaxLines, TText*& aOutputText, TInt& aNumLines, TInt16* aLineWidthArray) const;
- };
- #line 93
- class RRunInfoArray
- {
- friend class TBidiText;
- public:
- __declspec(dllexport) RRunInfoArray();
- __declspec(dllexport) void OpenL();
- __declspec(dllexport) void Close();
- private:
- TBidirectionalState::TRunInfo* RunArray() const;
- private:
- CBidiTextTls* iTls;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 8 */
- #line 30
- class CCoeTextDrawerBase;
- class TCoeTextTypeAdaptor;
- #line 51
- class XCoeTextDrawer
- {
- public:
- __declspec(dllexport) XCoeTextDrawer(CCoeTextDrawerBase& aTextDrawer);
- __declspec(dllexport) ~XCoeTextDrawer();
- __declspec(dllexport) void operator=(CCoeTextDrawerBase& aTextDrawer);
- __declspec(dllexport) CCoeTextDrawerBase *operator ->();
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TBidiText& aText, const TRect& aTextRect, const CFont& aFont) const;
- __declspec(dllexport) void DrawDisplayOrderedText(CGraphicsContext& aGc, const TDesC& aText, const TRect& aTextRect, const CFont& aFont) const;
- __declspec(dllexport) TRect ClipRect() const;
- __declspec(dllexport) void SetClipRect(const TRect& aClipRect);
- private:
- XCoeTextDrawer(XCoeTextDrawer& aTextDrawer);
- private:
- CCoeTextDrawerBase* iTextDrawer;
- TRect iClipRect;
- };
- class CCoeTextDrawerBaseExt;
- #line 96
- class CCoeTextDrawerBase : public CBase, public MObjectProvider
- {
- friend class XCoeTextDrawer;
- public:
- __declspec(dllexport) ~CCoeTextDrawerBase();
- __declspec(dllexport) virtual void Reset();
- virtual TRgb TextColor() const = 0;
- virtual void SetTextColor(TRgb aColor) = 0;
- __declspec(dllexport) TGulAlignment Alignment() const;
- __declspec(dllexport) void SetAlignment(const TGulAlignment& aAlignment);
- __declspec(dllexport) TMargins8 Margins() const;
- __declspec(dllexport) void SetMargins(const TMargins8& aMargins);
- __declspec(dllexport) TInt LineGapInPixels() const;
- __declspec(dllexport) void SetLineGapInPixels(TInt aLineGapInPixels);
- __declspec(dllexport) TBool IsReusable() const;
- __declspec(dllexport) void SetReusable(TBool aIsReusable);
- protected:
- __declspec(dllexport) CCoeTextDrawerBase();
- __declspec(dllexport) TInt Construct();
- private:
- virtual void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const = 0;
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved1();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved2();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved3();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved4();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved5();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved6();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved7();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved8();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved9();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved10();
- private:
- TBool iIsReusable;
- TGulAlignment iAlignment;
- TMargins8 iMargins;
- TInt iLineGap;
- CCoeTextDrawerBaseExt* iExtension;
- };
- #line 169
- class TCoeTextTypeAdaptor
- {
- public:
- __declspec(dllexport) TCoeTextTypeAdaptor(const TDesC& aText);
- __declspec(dllexport) TCoeTextTypeAdaptor(const TBidiText& aText);
- __declspec(dllexport) TInt NumberOfLines() const;
- __declspec(dllexport) TPtrC LineOfText(TInt aLineNumber, TInt& aWidthInPixels, const CFont& aFont) const;
- __declspec(dllexport) TBool HasRightToLeftDirectionality() const;
- private:
- enum TTextType
- {
- ENewlineSeparated,
- EBidiText
- };
- const TAny* iText;
- TTextType iTextType;
- };
- #line 196
- class CCoePlainTextDrawer : public CCoeTextDrawerBase
- {
- public:
- enum { ETypeId = 0x1020831A };
- public:
- __declspec(dllexport) static CCoePlainTextDrawer* New(TRgb aTextColor);
- __declspec(dllexport) TRgb TextColor() const;
- __declspec(dllexport) void SetTextColor(TRgb aTextColor);
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const;
- void Reset();
- CCoePlainTextDrawer(TRgb aTextColor);
- __declspec(dllexport) TInt Construct();
- private:
- TRgb iTextColor;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 7 */
- #line 42
- class CVwsSessionWrapper;
- class MVwsSessionWrapperObserver;
- class CCoeAppUi;
- class CCoeEnv;
- class TResourceReader;
- class RGenericPointerArray;
- enum TActivePriority
- {
- EActivePriorityClockTimer=300,
- EActivePriorityIpcEventsHigh=200,
- EActivePriorityFepLoader=150,
- EActivePriorityWsEvents=100,
- EActivePriorityRedrawEvents=50,
- EActivePriorityDefault=0,
- EActivePriorityLogonA=-10
- };
- class CCoeEnvExtra;
- class CCoeStatic;
- class MCoeObserverOfLoadedFep
- #line 90
- {
- public:
- virtual void HandleChangeInLoadedFep()=0;
- protected:
- __declspec(dllexport) MCoeObserverOfLoadedFep();
- private:
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_1();
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_2();
- private:
- TInt iMCoeObserverOfLoadedFep_Reserved1;
- };
- class TCoeInputCapabilities;
- class MCoeFocusObserver
- #line 125
- {
- public:
- virtual void HandleChangeInFocus()=0;
- virtual void HandleDestructionOfFocusedItem()=0;
- protected:
- __declspec(dllexport) MCoeFocusObserver();
- private:
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_2();
- private:
- TInt iMCoeFocusObserver_Reserved1;
- };
- class MCoeResourceChangeObserver
- {
- public:
- virtual void HandleResourceChange()=0;
- protected:
- __declspec(dllexport) MCoeResourceChangeObserver();
- private:
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_2();
- private:
- TInt iMCoeResourceChangeObserver_Reserved1;
- };
- class MCoeForegroundObserver
- #line 182
- {
- public:
- virtual void HandleGainingForeground()=0;
- virtual void HandleLosingForeground()=0;
- protected:
- __declspec(dllexport) MCoeForegroundObserver();
- private:
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_2();
- private:
- TInt iMCoeForegroundObserver_Reserved1;
- };
- class MCoeMessageObserver
- #line 214
- {
- public:
- enum TMessageResponse
- {
- EMessageNotHandled,
- EMessageHandled
- };
- public:
- #line 236
- virtual TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8& aMessageParameters)=0;
- protected:
- __declspec(dllexport) MCoeMessageObserver();
- private:
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_2();
- private:
- TInt iMCoeMessageObserver_Reserved1();
- };
- class MCoeMessageMonitorObserver
- {
- public:
- virtual void MonitorWsMessage(const TWsEvent& aEvent)=0;
- private:
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_2();
- };
- class MCoeFepObserver;
- typedef void (*TCoeFepObserverFunction)(MCoeFepObserver& aFepObserver);
- class CCoeFepParameters : public CBase
- {
- public:
- static CCoeFepParameters* NewLC();
- private:
- inline CCoeFepParameters() {}
- };
- class CCoeFep;
- class CCoeScheduler : public CBaActiveScheduler
- {
- public:
- __declspec(dllexport) CCoeScheduler(CCoeEnv* aCoeEnv);
- __declspec(dllexport) virtual void WaitForAnyRequest();
- __declspec(dllexport) virtual void DisplayError(TInt aError) const;
- inline CCoeEnv* CoeEnv() {return iCoeEnv;}
- TBool Flush() const;
- void SetFlush(TBool aFlush);
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- CCoeEnv* iCoeEnv;
- TBool iFlush;
- };
- class CCoeFontProvider;
- class CCoeEnv : public CActive
- , public MObjectProvider
- #line 331
- {
- public:
- __declspec(dllexport) ~CCoeEnv();
- __declspec(dllexport) CCoeEnv();
- __declspec(dllexport) virtual void DestroyEnvironment();
- __declspec(dllexport) CCoeAppUi* SetAppUi(CCoeAppUi* aAppUi);
- __declspec(dllexport) void ExecuteD();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void DoCancel();
- __declspec(dllexport) virtual void HandleError(TInt aError);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState);
- __declspec(dllexport) void ConstructL( TBool aInitialFocusState, TInt aDefaultScreenNumber ) ;
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState, TInt aDefaultScreenNumber, TInt aWindowGroupID );
- inline const TWsEvent& LastEvent() const;
- inline CCoeAppUi* AppUi() const;
- inline RFs& FsSession() const;
- inline RWsSession& WsSession() const;
- inline RWindowGroup& RootWin() const;
- inline CWindowGc& SystemGc() const;
- inline const CFont* NormalFont() const;
- inline CWsScreenDevice* ScreenDevice() const;
- inline TBool IsSchedulerRunning() const;
- __declspec(dllexport) CWindowGc* CreateGcL();
- __declspec(dllexport) void Flush(TTimeIntervalMicroSeconds32 aDelay=0);
- __declspec(dllexport) CFbsFont* CreateDeviceFontL(CGraphicsDevice* aDevice,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFbsFont* CreateScreenFontL(const TFontSpec& aFontSpec);
- __declspec(dllexport) void ReleaseScreenFont(CFont* aFont) const;
- __declspec(dllexport) void CreateResourceReaderLC(TResourceReader& aReader,TInt aResourceId) const;
- inline void ReadResource(TDes& aDes,TInt aResourceId) const;
- inline void ReadResourceL(TDes& aDes,TInt aResourceId) const;
- inline HBufC* AllocReadResourceL(TInt aResourceId) const;
- inline HBufC* AllocReadResourceLC(TInt aResourceId) const;
- __declspec(dllexport) TInt AddResourceFileL(const TDesC& aFileName);
- __declspec(dllexport) void DeleteResourceFile(TInt aOffset);
- inline CDesCArrayFlat* ReadDesCArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void LeaveWithErrorText(const TDesC& aMsg,const TDesC* aContextText=0 );
- __declspec(dllexport) void Format128(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) void Format256(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) static TVersion Version();
- __declspec(dllexport) static CCoeEnv* Static();
- __declspec(dllexport) void SimulateKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) TBool IsWservEventPending() const;
- __declspec(dllexport) TBool IsRedrawEventPending() const;
- __declspec(dllexport) void PrepareToExit();
- __declspec(dllexport) void BringOwnerToFront();
- __declspec(dllexport) void ReadResourceAsDes8(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes8L(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8L(TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC8ArrayFlat* ReadDesC8ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void SuppressNextFlush();
- __declspec(dllexport) void ReadResourceAsDes16(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes16L(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16L(TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC16ArrayFlat* ReadDesC16ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void AddObserverOfLoadedFepL(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void RemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void AddFocusObserverL(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void RemoveFocusObserver(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void SyncNotifyFocusObserversOfChangeInFocus();
- void NotifyFocusObserversOfDestructionOfFocusedItem();
- __declspec(dllexport) void AddForegroundObserverL(MCoeForegroundObserver& aForegroundObserver);
- __declspec(dllexport) void RemoveForegroundObserver(MCoeForegroundObserver& aForegroundObserver);
- void NotifyForegroundObserversOfGainingForeground();
- void NotifyForegroundObserversOfLosingForeground();
- __declspec(dllexport) void AddResourceChangeObserverL(MCoeResourceChangeObserver& aResourceChangeObserver);
- __declspec(dllexport) void RemoveResourceChangeObserver(MCoeResourceChangeObserver& aResourceChangeObserver);
- void NotifyResourceObserversOfChangeInResource();
- __declspec(dllexport) void AddMessageObserverL(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void RemoveMessageObserver(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void AddMessageMonitorObserverL(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- __declspec(dllexport) void RemoveMessageMonitorObserver(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- void NotifyMessageMonitorObserversOfEvent(const TWsEvent& aEvent);
- __declspec(dllexport) void AddFepObserverL(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void RemoveFepObserver(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void ForEachFepObserverCall(TCoeFepObserverFunction aFepObserverFunction);
- void EnsureCorrectFepIsLoadedL();
- #line 419
- void EnsureSpecifiedFepIsLoadedL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid, const TBool aLeave);
- __declspec(dllexport) void AvailableFepsL(RArray<TUid>& aUids, CDesCArray* aDisplayNames);
- __declspec(dllexport) void ExecuteFepSettingsDialogL(TUid aFepUid);
- __declspec(dllexport) CCoeFep* Fep() const;
- __declspec(dllexport) TUid FepUid() const;
- __declspec(dllexport) CWindowGc* SwapSystemGc(CWindowGc* aGc);
- __declspec(dllexport) static CCoeStatic* Static(TUid aUid);
- __declspec(dllexport) CCoeStatic* FindStatic(TUid aUid);
- __declspec(dllexport) void DisableExitChecks(TBool aDisable);
- __declspec(dllexport) void InputCapabilitiesChanged();
- __declspec(dllexport) TBool IsResourceAvailableL(TInt aResourceId) const;
- __declspec(dllexport) CCoeTextDrawerBase& DefaultTextDrawer() const;
- __declspec(dllexport) const CCoeFontProvider& DefaultFontProvider() const;
- public:
- TInt AppStartupInstrumentationEventIdBase();
- public:
- __declspec(dllexport) void GetMessageNotifyingObserversLC(TUint32 aClientHandleOfTargetWindowGroup, TUid& aMessageUid, TPtr8& aMessageParameters, const TWsEvent& aMessageEvent);
- protected:
- __declspec(dllexport) void SetAppStartupInstrumentationEventIdBaseL(TInt aAppStartupInstrumentationEventIdBase);
- __declspec(dllexport) void DestroyEnvironmentStatic();
- __declspec(dllexport) void DestroyEnvironmentEnd();
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- __declspec(dllexport) TInt RunError(TInt aError);
- public:
- void ReadEvent();
- CVwsSessionWrapper* InitViewServerSessionL(MVwsSessionWrapperObserver& aObserver);
- void AddStatic(CCoeStatic* aStatic);
- void QueueNotificationToFocusObserversOfChangeInFocus();
- TInt FocusObserverNotificationIdentifier() const;
- TBool FocusObserverNotificationIsStillPending(TInt aFocusObserverNotificationIdentifier) const;
- void RefetchPixelMapping();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- public:
- __declspec(dllexport) void SetZoomFactor(const TZoomFactor& aZoomFactor);
- __declspec(dllexport) TZoomFactor ZoomFactor() const;
- protected:
- __declspec(dllexport) virtual void DestroyScreen();
- inline TDes& ErrorText();
- inline TDes& ErrorContextText();
- private:
- __declspec(dllexport) virtual void InitSystemFontsL();
- __declspec(dllexport) virtual TInt ResourceFileVersionNumber() const;
- void CreateActiveSchedulerL();
- void ConnectToFileServerL();
- void ConnectToWindowServerL();
- void InitScreenL( TInt aDefaultScreenNumber );
- void InitRootWindowL(TBool aInitialFocusState, TInt aWindowGroupID=0);
- void InitSystemGcL();
- RResourceFile& ResourceFileForId(TInt aResourceId) const;
- void DestroyAllResourceFiles();
- void AddObserverL(TAny* aObserver, RGenericPointerArray& aArray);
- void RemoveObserver(TAny* aObserver, RGenericPointerArray& aArray);
- inline TBool DisableShutdownChecks() const;
- void UpdateStatic(CCoeAppUi* aNewAppUi);
- void SetInitialHandleCount();
- inline TUint InitialHandleCount() const;
- protected:
- CCoeAppUi* iAppUi;
- RFs iFsSession;
- RWsSession iWsSession;
- RWindowGroup iRootWin;
- CWindowGc* iSystemGc;