S60UIExamplePlayContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1695k
源码类别:
Symbian
开发平台:
C/C++
- __declspec(dllexport) void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0);
- __declspec(dllexport) void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TInt aTextWidth,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0);
- __declspec(dllexport) void MapColors(const TRect& aRect,const TRgb* aColors,TInt aNumPairs=2,TBool aMapForwards=ETrue);
- __declspec(dllexport) void MoveTo(const TPoint& aPoint);
- __declspec(dllexport) void MoveBy(const TPoint& aVector);
- __declspec(dllexport) void OrientationsAvailable(TBool aOrientation[4]);
- __declspec(dllexport) void Plot(const TPoint& aPoint);
- __declspec(dllexport) void RectDrawnTo(TRect& aRect);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void Resized();
- __declspec(dllexport) void SetBrushColor(const TRgb& aColor);
- __declspec(dllexport) void SetBrushOrigin(const TPoint& aOrigin);
- __declspec(dllexport) void SetBrushStyle(TBrushStyle aBrushStyle);
- __declspec(dllexport) void SetClippingRegion(const TRegion* aRegion);
- __declspec(dllexport) void SetClippingRect(const TRect& aRect);
- __declspec(dllexport) void SetDitherOrigin(const TPoint& aPoint);
- __declspec(dllexport) void SetDrawMode(TDrawMode);
- __declspec(dllexport) void SetOrigin(const TPoint& aPoint=TPoint(0,0));
- __declspec(dllexport) void SetPenColor(const TRgb& aColor);
- __declspec(dllexport) void SetPenStyle(TPenStyle);
- __declspec(dllexport) void SetPenSize(const TSize& aSize);
- __declspec(dllexport) void SetCharJustification(TInt aExcessWidth,TInt aNumGaps);
- __declspec(dllexport) void SetWordJustification(TInt aExcessWidth,TInt aNumChars);
- __declspec(dllexport) void SetUnderlineStyle(TFontUnderline aUnderlineStyle);
- __declspec(dllexport) void SetUserDisplayMode(TDisplayMode aDisplayMode);
- __declspec(dllexport) void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle);
- __declspec(dllexport) void SetShadowMode(TBool aShadowMode = EFalse);
- inline void SetFadeMode(TBool aFadeMode = EFalse);
- inline void SetFadingParameters(TUint8 aBlackMap = 0);
- __declspec(dllexport) void SetFaded(TBool aFaded);
- __declspec(dllexport) void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) TBool SetOrientation(TGraphicsOrientation aOrientation);
- __declspec(dllexport) void ShadowArea(const TRegion* aRegion);
- __declspec(dllexport) void FadeArea(const TRegion* aRegion);
- __declspec(dllexport) void UpdateJustification(const TDesC& aText);
- __declspec(dllexport) void UpdateJustificationVertical(const TDesC& aText,TBool aUp);
- __declspec(dllexport) void UseBrushPattern(const CFbsBitmap* aBitmap);
- __declspec(dllexport) TInt UseBrushPattern(TInt aFbsBitmapHandle);
- __declspec(dllexport) void UseFont(const CFont* aFont);
- __declspec(dllexport) TInt UseFont(TInt aFontHandle);
- __declspec(dllexport) void UseFontNoDuplicate(const CFbsBitGcFont* aFont);
- __declspec(dllexport) TBool IsBrushPatternUsed() const;
- __declspec(dllexport) TBool IsFontUsed() const;
- inline static TInt16 Load16(const TUint8* aPtr) { return TInt16(aPtr[0]+(aPtr[1]<<8)); }
- __declspec(dllexport) TInt AlphaBlendBitmaps(const TPoint& aDestPt,
- const CFbsBitmap* aSrcBmp1,
- const CFbsBitmap* aSrcBmp2,
- const TRect& aSrcRect1,
- const TPoint& aSrcPt2,
- const CFbsBitmap* aAlphaBmp,
- const TPoint& aAlphaPt);
- __declspec(dllexport) TInt AlphaBlendBitmaps(const TPoint& aDestPt,
- const CFbsBitmap* aSrcBmp,
- const TRect& aSrcRect,
- const CFbsBitmap* aAlphaBmp,
- const TPoint& aAlphaPt);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aWriteStream);
- __declspec(dllexport) void InternalizeL(RReadStream& aReadStream);
- __declspec(dllexport) TInt SetClippingRegion(const TRegion& aRegion);
- __declspec(dllexport) TInt AlphaBlendBitmaps(const TPoint& aDestPt,
- const CWsBitmap* aSrcBmp,
- const TRect& aSrcRect,
- const CWsBitmap* aAlphaBmp,
- const TPoint& aAlphaPt);
- __declspec(dllexport) TRgb BrushColor();
- __declspec(dllexport) TRgb PenColor();
- private:
- CFbsBitGc();
- void AddRect(const TRect& aRect);
- void AnalyseEllipse(const TRect& rc,TPoint& srad,TPoint& erad,TPoint& center,TInt& startq,TInt& endq,TBool* quads);
- void BitMultiply(TUint32* aBinaryDataPtr,TInt aBitLength,TInt aMultiplier);
- void CheckDevice() const;
- TBool CheckDevice(const TRect& aRect) const;
- TUint32* ClipBinaryArray(TUint32* aArray,TUint32* aArrayLimit,TInt aArrayWordWd,TInt& aDataWd,TInt& aDataHt,TPoint& aPos);
- void ClipFillLine(TPoint,TPoint);
- void CopyCharWord(TUint32* aBinaryDataPtr,const TUint8* aData,TInt aBitShift);
- void CopyCharLine(TUint32* aBinaryDataPtr,TInt aBufferWords,const TUint8* aData,TInt aBitShift,TInt aCharWidth);
- void DrawText(const TDesC& aText,const TPoint& aPosition,TTextAlign aAlignment,
- CFont::TTextDirection aDirection,const TRect* aBox = 0 );
- 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 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\graphicsaccelerator.h" /* stack depth 6 */
- #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 5 */
- 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 6 */
- #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 5 */
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\w32std.h" /* stack depth 4 */
- 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\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulalign.h" /* stack depth 4 */
- #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 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coedef.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\guldef.h" /* stack depth 5 */
- #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 4 */
- #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\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecobs.h" /* stack depth 4 */
- #line 11
- class CCoeControl;
- class MCoeControlObserver
- {
- public:
- enum TCoeEvent
- {
- EEventRequestExit,
- EEventRequestCancel,
- EEventRequestFocus,
- EEventPrepareFocusTransition,
- EEventStateChanged,
- EEventInteractionRefused
- };
- public:
- #line 63
- virtual void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType)=0;
- protected:
- __declspec(dllexport) MCoeControlObserver();
- private:
- __declspec(dllexport) virtual void MCoeControlObserver_Reserved1();
- __declspec(dllexport) virtual void MCoeControlObserver_Reserved2();
- private:
- TInt iMCoeControlObserver_Reserved1;
- };
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coehelp.h" /* stack depth 4 */
- #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 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeinput.h" /* stack depth 4 */
- #line 14
- class MCoeFepAwareTextEditor;
- class MCoeCaptionRetrieverForFep;
- class MObjectProvider;
- class TCoeInputCapabilities
- {
- public:
- enum
- {
- ENone =0,
- EWesternNumericIntegerPositive =0x00000001,
- EWesternNumericIntegerNegative =0x00000002,
- EWesternNumericReal =0x00000004,
- EWesternAlphabetic =0x00000008,
- EJapaneseHiragana =0x00000010,
- EJapaneseKatakanaHalfWidth =0x00000020,
- EJapaneseKatakanaFullWidth =0x00000040,
- EDialableCharacters =0x00000080,
- ESecretText =0x00000100,
- EAutoSentenceCase =0x00000200,
- ENonPredictive =0x00000400,
- EAllText =0x01000000,
- ENavigation =0x02000000
- };
- class MCoeFepSpecificExtensions;
- public:
- __declspec(dllexport) TCoeInputCapabilities();
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities);
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep);
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep, TUid aFepUid, MCoeFepSpecificExtensions* aFepSpecificExtensions);
- __declspec(dllexport) TCoeInputCapabilities(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) TCoeInputCapabilities& operator=(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) TBool operator==(const TCoeInputCapabilities& aAnother) const;
- __declspec(dllexport) TBool operator!=(const TCoeInputCapabilities& aAnother) const;
- __declspec(dllexport) void MergeWith(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) void SetCapabilities(TUint aCapabilities);
- __declspec(dllexport) TUint Capabilities() const;
- __declspec(dllexport) TBool IsNone() const;
- __declspec(dllexport) TBool SupportsWesternNumericIntegerPositive() const;
- __declspec(dllexport) TBool SupportsWesternNumericIntegerNegative() const;
- __declspec(dllexport) TBool SupportsWesternNumericReal() const;
- __declspec(dllexport) TBool SupportsWesternAlphabetic() const;
- __declspec(dllexport) TBool SupportsJapaneseHiragana() const;
- __declspec(dllexport) TBool SupportsJapaneseKatakanaHalfWidth() const;
- __declspec(dllexport) TBool SupportsJapaneseKatakanaFullWidth() const;
- __declspec(dllexport) TBool SupportsDialableCharacters() const;
- __declspec(dllexport) TBool SupportsSecretText() const;
- __declspec(dllexport) TBool SupportsAutoSentenceCase() const;
- __declspec(dllexport) TBool SupportsNonPredictive() const;
- __declspec(dllexport) TBool SupportsAllText() const;
- __declspec(dllexport) TBool SupportsNavigation() const;
- __declspec(dllexport) MCoeFepAwareTextEditor* FepAwareTextEditor() const;
- __declspec(dllexport) MCoeCaptionRetrieverForFep* CaptionRetrieverForFep() const;
- __declspec(dllexport) MCoeFepSpecificExtensions* FepSpecificExtensions(TUid aFepUid) const;
- __declspec(dllexport) MObjectProvider* ObjectProvider() const;
- __declspec(dllexport) void SetObjectProvider(MObjectProvider* aObjectProvider);
- private:
- TUint iCapabilities;
- MCoeFepAwareTextEditor* iFepAwareTextEditor;
- MCoeCaptionRetrieverForFep* iCaptionRetrieverForFep;
- TUint iFepUid;
- MCoeFepSpecificExtensions* iFepSpecificExtensions;
- MObjectProvider* iObjectProvider;
- TAny* iSpareForFutureUse[5];
- };
- #line 38 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemop.h" /* stack depth 4 */
- #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 42 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\barsc.h" /* stack depth 5 */
- #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 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\badesca.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bamdesca.h" /* stack depth 6 */
- #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 5 */
- #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 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\basched.h" /* stack depth 5 */
- #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 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulbordr.h" /* stack depth 7 */
- #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 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulftflg.hrh" /* stack depth 7 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 6 */
- 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: