S60UIExamplePlayContainer.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1695k
源码类别:
Symbian
开发平台:
C/C++
- __declspec(dllexport) virtual TInt DoDescentInPixels() const;
- virtual TInt DoCharWidthInPixels(TChar aChar) const=0;
- virtual TInt DoTextWidthInPixels(const TDesC& aText) const=0;
- virtual TInt DoBaselineOffsetInPixels() const=0;
- virtual TInt DoTextCount(const TDesC& aText,TInt aWidthInPixels) const=0;
- virtual TInt DoTextCount(const TDesC& aText,TInt aWidthInPixels,TInt& aExcessWidthInPixels) const=0;
- virtual TInt DoMaxCharWidthInPixels() const=0;
- virtual TInt DoMaxNormalCharWidthInPixels() const=0;
- virtual TFontSpec DoFontSpecInTwips() const=0;
- protected:
- __declspec(dllexport) virtual TCharacterDataAvailability DoGetCharacterData(TUint aCode, TOpenFontCharMetrics& aMetrics,const TUint8*& aBitmap,TSize& aBitmapSize) const;
- __declspec(dllexport) virtual TBool DoGetCharacterPosition(TPositionParam& aParam) const;
- __declspec(dllexport) virtual TInt DoExtendedFunction(TUid aFunctionId, TAny* aParam = 0 ) const;
- protected:
- __declspec(dllexport) virtual ~CFont();
- public:
- inline TInt FontCapitalAscent() const;
- inline TInt FontMaxAscent() const;
- inline TInt FontStandardDescent() const;
- inline TInt FontMaxDescent() const;
- inline TInt FontLineGap() const;
- inline TInt FontMaxHeight() const;
- public:
- #line 1475
- __declspec(dllexport) TUid TypeUid() const;
- __declspec(dllexport) TInt HeightInPixels() const;
- __declspec(dllexport) TInt AscentInPixels() const;
- __declspec(dllexport) TInt DescentInPixels() const;
- __declspec(dllexport) TInt CharWidthInPixels(TChar aChar) const;
- __declspec(dllexport) TInt TextWidthInPixels(const TDesC& aText) const;
- __declspec(dllexport) TInt BaselineOffsetInPixels() const;
- #line 1528
- __declspec(dllexport) TInt TextCount(const TDesC& aText,TInt aWidthInPixels) const;
- #line 1544
- __declspec(dllexport) TInt TextCount(const TDesC& aText,TInt aWidthInPixels,TInt& aExcessWidthInPixels) const;
- __declspec(dllexport) TInt MaxCharWidthInPixels() const;
- __declspec(dllexport) TInt MaxNormalCharWidthInPixels() const;
- __declspec(dllexport) TFontSpec FontSpecInTwips() const;
- __declspec(dllexport) TCharacterDataAvailability GetCharacterData(TUint aCode, TOpenFontCharMetrics& aMetrics,const TUint8*& aBitmap,TSize& aBitmapSize) const;
- __declspec(dllexport) TBool GetCharacterPosition(TPositionParam& aParam) const;
- __declspec(dllexport) TInt WidthZeroInPixels() const;
- __declspec(dllexport) TInt MeasureText(const TDesC& aText, const TMeasureTextInput* aInput = 0 , TMeasureTextOutput* aOutput = 0 ) const;
- __declspec(dllexport) static TBool CharactersJoin(TInt aLeftCharacter, TInt aRightCharacter);
- __declspec(dllexport) TInt ExtendedFunction(TUid aFunctionId, TAny* aParam = 0 ) const;
- };
- class CFbsBitmap;
- class CWsBitmap;
- #line 1602
- class CGraphicsContext : public CBase
- {
- public:
- enum TTextAlign
- {
- ELeft,
- ECenter,
- ERight
- };
- #line 1628
- enum TDrawModeComponents
- {
- EInvertScreen=1,
- EXor=2,
- EOr=4,
- EAnd=8,
- ELogicalOp=14,
- EInvertPen=16,
- EPenmode=32,
- EWriteAlpha=64,
- };
- #line 1682
- enum TDrawMode
- {
- EDrawModeAND=EAnd,
- EDrawModeNOTAND=EInvertScreen|EAnd,
- EDrawModePEN=EPenmode,
- EDrawModeANDNOT=EAnd|EInvertPen,
- EDrawModeXOR=EXor,
- EDrawModeOR=EOr,
- EDrawModeNOTANDNOT=EInvertScreen|EAnd|EInvertPen,
- EDrawModeNOTXOR=EInvertScreen|EXor,
- EDrawModeNOTSCREEN=EInvertScreen,
- EDrawModeNOTOR=EInvertScreen|EOr,
- EDrawModeNOTPEN=EInvertPen|EPenmode,
- EDrawModeORNOT=EOr|EInvertPen,
- EDrawModeNOTORNOT=EInvertScreen|EOr|EInvertPen,
- EDrawModeWriteAlpha=EWriteAlpha,
- };
- #line 1730
- enum TPenStyle
- {
- ENullPen,
- ESolidPen,
- EDottedPen,
- EDashedPen,
- EDotDashPen,
- EDotDotDashPen
- };
- enum TBrushStyle
- {
- ENullBrush,
- ESolidBrush,
- EPatternedBrush,
- EVerticalHatchBrush,
- EForwardDiagonalHatchBrush,
- EHorizontalHatchBrush,
- ERearwardDiagonalHatchBrush,
- ESquareCrossHatchBrush,
- EDiamondCrossHatchBrush
- };
- #line 1799
- enum TFillRule
- {
- EAlternate,
- EWinding
- };
- struct TDrawTextParam
- {
- public:
- TDrawTextParam():
- iDirection(CFont::EHorizontal),
- iCharJustNum(0),
- iCharJustExcess(0),
- iWordJustNum(0),
- iWordJustExcess(0)
- {}
- public:
- CFont::TTextDirection iDirection;
- TInt iCharJustNum;
- TInt iCharJustExcess;
- TInt iWordJustNum;
- TInt iWordJustExcess;
- };
- struct TDrawTextExtendedParam : public TDrawTextParam
- {
- public:
- TDrawTextExtendedParam():
- iParRightToLeft(EFalse)
- {}
- public:
- TBool iParRightToLeft;
- };
- public:
- virtual CGraphicsDevice* Device() const=0;
- virtual void SetOrigin(const TPoint& aPos=TPoint(0,0))=0;
- #line 1912
- virtual void SetDrawMode(TDrawMode aDrawingMode)=0;
- virtual void SetClippingRect(const TRect& aRect)=0;
- virtual void CancelClippingRect()=0;
- #line 1941
- virtual void Reset()=0;
- #line 1964
- virtual void UseFont(const CFont* aFont)=0;
- virtual void DiscardFont()=0;
- virtual void SetUnderlineStyle(TFontUnderline aUnderlineStyle)=0;
- virtual void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle)=0;
- __declspec(dllexport) static TInt JustificationInPixels(TInt aExcessPixels,TInt aTotalUnits,TInt aFirstUnit,TInt aNumUnits);
- __declspec(dllexport) static TInt JustificationInPixels(TInt& aExcessPixels,TInt& aTotalUnits);
- #line 2034
- virtual void SetWordJustification(TInt aExcessWidth,TInt aNumGaps)=0;
- #line 2110
- virtual void SetCharJustification(TInt aExcessWidth,TInt aNumChars)=0;
- #line 2125
- virtual void SetPenColor(const TRgb& aColor)=0;
- #line 2165
- virtual void SetPenStyle(TPenStyle aPenStyle)=0;
- #line 2204
- virtual void SetPenSize(const TSize& aSize)=0;
- #line 2221
- virtual void SetBrushColor(const TRgb& aColor)=0;
- #line 2242
- virtual void SetBrushStyle(TBrushStyle aBrushStyle)=0;
- #line 2270
- virtual void SetBrushOrigin(const TPoint& aOrigin)=0;
- #line 2295
- virtual void UseBrushPattern(const CFbsBitmap* aBitmap)=0;
- #line 2309
- virtual void DiscardBrushPattern()=0;
- #line 2327
- virtual void MoveTo(const TPoint& aPoint)=0;
- #line 2344
- virtual void MoveBy(const TPoint& aVector)=0;
- #line 2358
- virtual void Plot(const TPoint& aPoint)=0;
- #line 2397
- virtual void DrawArc(const TRect& aRect,const TPoint& aStart,const TPoint& aEnd)=0;
- virtual void DrawLine(const TPoint& aPoint1,const TPoint& aPoint2)=0;
- virtual void DrawLineTo(const TPoint& aPoint)=0;
- #line 2424
- virtual void DrawLineBy(const TPoint& aVector)=0;
- virtual void DrawPolyLine(const CArrayFix<TPoint> * aPointList)=0;
- #line 2441
- virtual void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints)=0;
- #line 2488
- virtual void DrawPie(const TRect& aRect,const TPoint& aStart,const TPoint& aEnd)=0;
- #line 2504
- virtual void DrawEllipse(const TRect& aRect)=0;
- virtual void DrawRect(const TRect& aRect)=0;
- #line 2529
- virtual void DrawRoundRect(const TRect& aRect,const TSize& aCornerSize)=0;
- #line 2546
- virtual TInt DrawPolygon(const CArrayFix<TPoint> * aPointList,TFillRule aFillRule=EAlternate)=0;
- #line 2565
- virtual TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule=EAlternate)=0;
- #line 2588
- virtual void DrawBitmap(const TPoint& aTopLeft,const CFbsBitmap* aSource)=0;
- #line 2611
- virtual void DrawBitmap(const TRect& aDestRect,const CFbsBitmap* aSource)=0;
- #line 2634
- virtual void DrawBitmap(const TRect& aDestRect,const CFbsBitmap* aSource,const TRect& aSourceRect)=0;
- #line 2650
- virtual void DrawBitmapMasked(const TRect& aDestRect,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask)=0;
- #line 2677
- virtual void DrawBitmapMasked(const TRect& aDestRect,const CWsBitmap* aBitmap,const TRect& aSourceRect,const CWsBitmap* aMaskBitmap,TBool aInvertMask)=0;
- #line 2694
- virtual void DrawText(const TDesC& aText,const TPoint& aPosition) = 0;
- #line 2750
- virtual void DrawText(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TTextAlign aAlignment = ELeft,
- TInt aLeftMargin = 0) = 0;
- __declspec(dllexport) virtual void DrawText(const TDesC& aText,const TPoint& aPosition,const TDrawTextParam& aParam);
- __declspec(dllexport) virtual void Reserved();
- __declspec(dllexport) TInt DrawTextExtended(const TDesC& aText,const TPoint& aPosition,const TDrawTextExtendedParam& aParam);
- #line 2766
- virtual void MapColors(const TRect &aRect,const TRgb *aColors,TInt aNumPairs,TBool aMapForwards) = 0;
- virtual TInt SetClippingRegion(const TRegion &aRegion) = 0;
- virtual void CancelClippingRegion() = 0;
- virtual void DrawTextVertical(const TDesC& aText,const TPoint& aPos,TBool aUp) = 0;
- #line 2791
- virtual void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0) = 0;
- protected:
- __declspec(dllexport) virtual void Reserved_CGraphicsContext_1();
- __declspec(dllexport) virtual void Reserved_CGraphicsContext_2();
- };
- #line 2822
- class CBitmapContext : public CGraphicsContext
- {
- public:
- virtual void Clear()=0;
- #line 2839
- virtual void Clear(const TRect& aRect)=0;
- #line 2848
- virtual void CopyRect(const TPoint& aOffset,const TRect& aRect)=0;
- #line 2857
- virtual void BitBlt(const TPoint& aPoint,const CFbsBitmap* aBitmap)=0;
- #line 2872
- virtual void BitBlt(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aRect)=0;
- #line 2906
- virtual void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask)=0;
- virtual void SetFaded(TBool aFaded)=0;
- #line 2932
- virtual void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap)=0;
- #line 2952
- virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CFbsBitmap* aSrcBmp, const TRect& aSrcRect, const CFbsBitmap* aAlphaBmp, const TPoint& aAlphaPt) = 0;
- #line 2965
- virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CWsBitmap* aSrcBmp, const TRect& aSrcRect, const CWsBitmap* aAlphaBmp, const TPoint& aAlphaPt) = 0;
- protected:
- __declspec(dllexport) void Reserved_CGraphicsContext_1();
- __declspec(dllexport) void Reserved_CGraphicsContext_2();
- __declspec(dllexport) virtual void Reserved_CBitmapContext_1();
- __declspec(dllexport) virtual void Reserved_CBitmapContext_2();
- __declspec(dllexport) virtual void Reserved_CBitmapContext_3();
- };
- #line 2988
- class CBitmapDevice : public CGraphicsDevice
- {
- public:
- #line 2999
- virtual void GetPixel(TRgb& aColor,const TPoint& aPixel) const=0;
- #line 3017
- virtual void GetScanLine(TDes8& aBuf,const TPoint& aStartPixel,TInt aLength,TDisplayMode aDispMode) const=0;
- #line 3027
- virtual TInt AddFile(const TDesC& aName,TInt& aId)=0;
- virtual void RemoveFile(TInt aId=0)=0;
- #line 3051
- virtual TInt GetNearestFontInPixels(CFont*& aFont, const TFontSpec& aFontSpec) = 0;
- #line 3070
- virtual TInt GetNearestFontToDesignHeightInPixels(CFont*& , const TFontSpec& ){return 0;}
- #line 3092
- virtual TInt GetNearestFontToMaxHeightInPixels(CFont*& , const TFontSpec& , TInt ){return 0;}
- #line 3115
- virtual TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const=0;
- inline TInt CreateBitmapContext(CBitmapContext*& aGC);
- };
- class TMargins
- {
- public:
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TBool operator==(const TMargins& aMargins) const;
- __declspec(dllexport) TBool operator!=(const TMargins& aMargins) const;
- public:
- TInt iLeft;
- TInt iRight;
- TInt iTop;
- TInt iBottom;
- };
- #line 3150
- class TPictureCapability
- {
- public:
- enum TScalingType
- {
- ENotScaleable,
- EFullyScaleable,
- EScaleableMaintainingAspectRatio
- };
- public:
- inline TPictureCapability(TScalingType aScalingType,TBool aCroppable);
- public:
- TScalingType iScalingType;
- TBool iIsCroppable;
- };
- #line 3200
- class CPicture : public CBase
- {
- public:
- enum TDetach
- {
- EDetachFull,
- EDetachDraw
- };
- public:
- __declspec(dllexport) virtual ~CPicture();
- #line 3227
- virtual void Draw(CGraphicsContext& aGc,const TPoint& aTopLeft,const TRect& aClipRect,MGraphicsDeviceMap* aMap) const=0;
- __declspec(dllexport) virtual TStreamId StoreL(CStreamStore& aStore) const;
- virtual void DetachFromStoreL(TDetach =EDetachFull) {}
- #line 3239
- virtual void ExternalizeL(RWriteStream& aStream) const =0;
- virtual void GetOriginalSizeInTwips(TSize& aSize) const =0;
- __declspec(dllexport) virtual void SetScaleFactor(TInt aScaleFactorWidth,TInt aScaleFactorHeight);
- __declspec(dllexport) virtual void SetCropInTwips(const TMargins& aMargins);
- __declspec(dllexport) virtual TPictureCapability Capability() const;
- __declspec(dllexport) virtual void GetCropInTwips(TMargins& aMargins) const;
- __declspec(dllexport) virtual TInt ScaleFactorWidth() const;
- __declspec(dllexport) virtual TInt ScaleFactorHeight() const;
- __declspec(dllexport) virtual TBool LineBreakPossible(TUint aClass,TBool aBeforePicture,TBool aHaveSpaces) const;
- __declspec(dllexport) virtual TBool NativePixelSize(TSize& aPixelSize);
- __declspec(dllexport) void GetSizeInPixels(MGraphicsDeviceMap* aMap, TSize& aSize) const;
- __declspec(dllexport) void SetSizeInPixels(MGraphicsDeviceMap* aMap, const TSize& aSize);
- __declspec(dllexport) void AddCropInPixels(MGraphicsDeviceMap* aMap, const TMargins& aMargins);
- __declspec(dllexport) void GetSizeInTwips(TSize& aSize) const;
- __declspec(dllexport) void SetSizeInTwips(const TSize& aSize);
- __declspec(dllexport) void ResetToOriginal();
- protected:
- __declspec(dllexport) CPicture();
- };
- #line 3277
- class TPictureHeader
- {
- public:
- __declspec(dllexport) TPictureHeader();
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void DeletePicture();
- public:
- TSwizzle<CPicture> iPicture;
- TUid iPictureType;
- TSize iSize;
- };
- #line 3304
- class MPictureFactory
- {
- public:
- #line 3324
- virtual void NewPictureL(TPictureHeader& aHeader,const CStreamStore& aDeferredPictureStore)const=0;
- };
- #line 3335
- const TInt KMaxPrinterModelNameLength=0x20;
- #line 3344
- typedef TBuf<KMaxPrinterModelNameLength> TPrinterModelName;
- #line 3357
- class TPageSpec
- {
- public:
- enum TPageOrientation
- {
- EPortrait,
- ELandscape
- };
- public:
- __declspec(dllexport) TPageSpec();
- __declspec(dllexport) TPageSpec(TPageOrientation aOrientation,const TSize& aSize);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) TSize OrientedPageSize() const;
- __declspec(dllexport) TBool operator==(const TPageSpec& aPageSpec) const;
- __declspec(dllexport) TBool operator!=(const TPageSpec& aPageSpec) const;
- public:
- TSize iPortraitPageSize;
- TPageOrientation iOrientation;
- };
- #line 3398
- class TBandAttributes
- {
- public:
- TRect iRect;
- TBool iTextIsIgnored;
- TBool iGraphicsIsIgnored;
- TBool iFirstBandOnPage;
- };
- #line 3423
- class CPrinterPort : public CBase
- {
- public:
- virtual void WriteRequest(const TDesC8& aBuf,TRequestStatus& aRequestStatus)=0;
- virtual void Cancel()=0;
- };
- #line 3445
- class TPrinterModelEntry
- {
- public:
- TPrinterModelName iModelName;
- TBool iRequiresPrinterPort;
- TUid iUid;
- public:
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 3469
- class TPrinterModelHeader
- {
- public:
- TPrinterModelEntry iEntry;
- TStreamId iModelDataStreamId;
- public:
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- };
- #line 3496
- class CPrinterControl : public CBase
- {
- public:
- enum TMoreOnPage
- {
- EMoreOnPage,
- ENoMoreOnPage
- };
- public:
- __declspec(dllexport) ~CPrinterControl();
- virtual TInt BandsPerPage()=0;
- #line 3528
- virtual TMoreOnPage QueueGetBand(TRequestStatus& aStatus, TBandAttributes& aBand)=0;
- #line 3539
- virtual void QueueEndPrint(TRequestStatus& aStatus)=0;
- virtual void AbortPrint()=0;
- protected:
- __declspec(dllexport) CPrinterControl(CPrinterPort* aPrinterPort);
- protected:
- enum TState
- {
- ENotPrinting,
- EPrinting
- };
- TState iState;
- CPrinterPort* iPrinterPort;
- };
- class CDictionaryStore;
- class RFs;
- #line 3590
- class CPrinterDevice : public CGraphicsDevice
- {
- public:
- __declspec(dllexport) ~CPrinterDevice();
- inline TPageSpec CurrentPageSpecInTwips() const {return(iCurrentPageSpecInTwips);}
- __declspec(dllexport) virtual void SelectPageSpecInTwips(const TPageSpec& aPageSpec);
- __declspec(dllexport) virtual TRect PrintablePageInPixels() const;
- virtual TPrinterModelEntry Model()const =0;
- virtual TInt SetModel(const TPrinterModelHeader& aModel,CStreamStore& aStore)=0;
- #line 3627
- virtual void CreateControlL(CPrinterPort* aPrinterPort)=0;
- __declspec(dllexport) virtual void DeleteControl();
- virtual void InternalizePropertiesL(RReadStream& ) {}
- virtual void ExternalizePropertiesL(RWriteStream& ) const {}
- __declspec(dllexport) void RestorePropertiesL();
- __declspec(dllexport) void StorePropertiesL() const;
- protected:
- __declspec(dllexport) CPrinterDevice();
- public:
- CPrinterControl* iControl;
- protected:
- TPageSpec iCurrentPageSpecInTwips;
- };
- #line 3669
- class CPrinterModelList : public CBase
- {
- public:
- virtual TInt ModelCount() const=0;
- #line 3686
- virtual const TPrinterModelEntry operator[](TInt anIndex)=0;
- virtual TInt UidToNum(TUid aModelUid) const=0;
- };
- #line 3705
- class MPageRegionPrinter
- {
- public:
- #line 3718
- virtual void PrintBandL(CGraphicsDevice* aDevice,TInt aPageNo,const TBandAttributes& aBandInPixels)=0;
- };
- const TInt KPdrStoreFileUidVal=268435514;
- const TInt KPdlUidVal=268450588;
- const TInt KUdlUidVal=268450589;
- #line 3746
- class CPrinterDriverUI : public CBase
- {
- protected:
- __declspec(dllexport) CPrinterDriverUI();
- public:
- __declspec(dllexport) virtual TBool BeforePrintL();
- __declspec(dllexport) virtual void AfterPrintL();
- __declspec(dllexport) virtual void SetPropertiesL();
- __declspec(dllexport) virtual TBool CanSetProperties();
- virtual TInt SetPrinterDevice(CPrinterDevice* aPrinterDevice)=0;
- };
- class CFileStore;
- #line 3790
- class CPrinterDriver : public CBase
- {
- public:
- __declspec(dllexport) static CPrinterDriver* NewL();
- __declspec(dllexport) ~CPrinterDriver();
- __declspec(dllexport) void OpenPdrL(const TDesC &aName);
- __declspec(dllexport) void Close();
- __declspec(dllexport) TInt NumModels() const;
- __declspec(dllexport) TPrinterModelEntry Model(TInt aNum) const;
- inline CPrinterDevice* PrinterDevice() {return iPrinterDevice;}
- __declspec(dllexport) CPrinterDevice* CreatePrinterDeviceL(TUid aModelUid);
- __declspec(dllexport) CPrinterDriverUI* CreatePrinterDriverUIL();
- private:
- CPrinterDriver();
- void DeletePrinterDevice();
- void DoOpenPdrL(const TDesC &aName);
- void DoCreatePrinterDeviceL(TUid aModelUid);
- void LoadLibraryL(RLibrary& aLibrary,const TDesC& aExt,TUid aUid2);
- private:
- RFs iFs;
- CFileStore *iPdrStore;
- TInt iNumModels;
- TPrinterModelHeader* iModelList;
- TFileName iPdlName;
- TUid iPdlUid;
- RLibrary iPdlLibrary;
- CPrinterDevice* iPrinterDevice;
- RLibrary iUdlLibrary;
- };
- class RResourceFile;
- class CPdrModelList : public CPrinterModelList
- {
- public:
- __declspec(dllexport) static CPdrModelList* NewL();
- __declspec(dllexport) virtual ~CPdrModelList();
- __declspec(dllexport) TInt ModelCount() const;
- __declspec(dllexport) const TPrinterModelEntry operator [] (TInt anIndex);
- __declspec(dllexport) TInt UidToNum(TUid aModelUid) const;
- __declspec(dllexport) void AddDirectoryL(const TDesC& aDir);
- __declspec(dllexport) CPrinterModelList* ScanForModelsL();
- __declspec(dllexport) CPrinterDriver* CreatePrinterDriverL(TInt anIndex);
- private:
- CPdrModelList();
- void ConstructL();
- private:
- class TFileEntry
- {
- public:
- TFileName iFileName;
- TDesC* iDirectory;
- };
- class TModelEntry
- {
- public:
- TPrinterModelEntry iEntry;
- TFileEntry* iFile;
- };
- private:
- void ScanDirectoryL(TInt aDirIndex);
- void ListModelsL(TInt aFileIndex, TParse& aParser, TFileName& aNameOfLoadedResourceFile, TFileName& aTempFileName, RResourceFile& aResourceFile, HBufC8*& aResource);
- HBufC* NewPathBufL(const TFileEntry& aFileEntry);
- private:
- CArrayFixSeg<TModelEntry> * iModelArray;
- CArrayFixFlat<TFileEntry> * iFileArray;
- CArrayFixFlat<HBufC*> * iDirectoryArray;
- RFs iFileServer;
- };
- #line 3881
- class TZoomFactor : public MGraphicsDeviceMap
- {
- public:
- __declspec(dllexport) TZoomFactor();
- __declspec(dllexport) ~TZoomFactor();
- inline TZoomFactor(const MGraphicsDeviceMap* aDevice);
- inline TZoomFactor(const TZoomFactor* aDevice);
- __declspec(dllexport) TInt ZoomFactor() const;
- __declspec(dllexport) void SetZoomFactor(TInt aZoomFactor);
- inline void SetGraphicsDeviceMap(const MGraphicsDeviceMap* aDevice);
- inline const MGraphicsDeviceMap* GraphicsDeviceMap() const;
- __declspec(dllexport) void SetTwipToPixelMapping(const TSize& aSizeInPixels,const TSize& aSizeInTwips);
- __declspec(dllexport) TInt HorizontalTwipsToPixels(TInt aTwipWidth) const;
- __declspec(dllexport) TInt VerticalTwipsToPixels(TInt aTwipHeight) const;
- __declspec(dllexport) TInt HorizontalPixelsToTwips(TInt aPixelWidth) const;
- __declspec(dllexport) TInt VerticalPixelsToTwips(TInt aPixelHeight) const;
- __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) void ReleaseFont(CFont* aFont);
- public:
- enum {EZoomOneToOne=1000};
- private:
- TInt iZoomFactor;
- const MGraphicsDeviceMap* iDevice;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.inl" /* stack depth 7 */
- #line 11
- inline TRgb::TRgb():
- iValue(0xffffffff)
- {}
- inline TRgb::TRgb(TUint32 aValue):
- iValue(((aValue & 0xff0000) >> 16) | (aValue & 0x00ff00) | ((aValue & 0x0000ff) << 16) | (0xff000000 - (aValue & 0xff000000)))
- #line 32
- {}
- inline TRgb::TRgb(TUint32 aInternalValue, TInt aAlpha) :
- iValue((aInternalValue & 0x00ffffff) | (aAlpha << 24))
- #line 49
- {
- }
- inline TRgb::TRgb(TInt aRed,TInt aGreen,TInt aBlue):
- iValue(aRed<<16|aGreen<<8|aBlue|0xff000000)
- {}
- #line 78
- inline TRgb::TRgb(TInt aRed,TInt aGreen,TInt aBlue, TInt aAlpha):
- iValue(aRed<<16|aGreen<<8|aBlue|aAlpha<<24)
- {}
- inline TInt TRgb::Red() const
- {return((iValue&0xff0000)>>16);}
- inline TInt TRgb::Green() const
- {return((iValue&0xff00)>>8);}
- inline TInt TRgb::Blue() const
- {return(iValue&0xff);}
- inline TBool TRgb::operator==(const TRgb& aColor) const
- #line 113
- {return(iValue==aColor.iValue);}
- inline TBool TRgb::operator!=(const TRgb& aColor) const
- #line 125
- {return(!(*this==aColor));}
- inline TRgb& TRgb::operator&=(const TRgb& aColor)
- #line 140
- {iValue&=aColor.iValue;return(*this);}
- inline TRgb& TRgb::operator|=(const TRgb& aColor)
- #line 155
- {iValue|=aColor.iValue;return(*this);}
- inline TRgb& TRgb::operator^=(const TRgb& aColor)
- #line 171
- {iValue^=aColor.iValue;iValue^=0xff000000; return(*this);}
- inline TUint32 TRgb::Value() const
- {return (((iValue & 0xff0000) >> 16) | (iValue & 0x00ff00) | ((iValue & 0x0000ff) << 16) | (0xff000000 - (iValue & 0xff000000)));}
- inline TUint32 TRgb::Internal() const
- {return (iValue);}
- inline void TRgb::SetInternal(TUint32 aInternal)
- {iValue = aInternal;}
- inline TRgb TRgb::operator~() const
- {TRgb rgb; rgb.SetInternal(iValue^0x00ffffff); return rgb;}
- inline TRgb TRgb::operator&(const TRgb& aColor)
- {TRgb rgb; rgb.SetInternal(iValue&aColor.iValue); return rgb;}
- inline TRgb TRgb::operator|(const TRgb& aColor)
- {TRgb rgb; rgb.SetInternal(iValue|aColor.iValue); return rgb;}
- inline TRgb TRgb::operator^(const TRgb& aColor)
- {TRgb rgb; rgb.SetInternal(iValue^aColor.iValue); return rgb;}
- #line 234
- inline TRgb TRgb::_Gray2(TInt aGray2)
- {
- if(aGray2) return(TRgb(0xffffff, 0xff));
- return(TRgb(0, 0xff));
- }
- #line 248
- inline TRgb TRgb::_Gray4(TInt aGray4)
- {
- aGray4&=3;
- aGray4|=aGray4<<2;
- aGray4|=aGray4<<4;
- return(TRgb(aGray4,aGray4,aGray4));
- }
- #line 264
- inline TRgb TRgb::_Gray16(TInt aGray16)
- {
- aGray16&=0xf;
- aGray16|=aGray16<<4;
- return(TRgb(aGray16,aGray16,aGray16));
- }
- #line 279
- inline TRgb TRgb::_Gray256(TInt aGray256)
- {
- aGray256&=0xff;
- return(TRgb(aGray256,aGray256,aGray256));
- }
- #line 292
- inline TRgb TRgb::_Color4K(TInt aColor4K)
- {
- TUint32 value = (aColor4K & 0xf00) << 8;
- value |= (aColor4K & 0x0f0) << 4;
- value |= (aColor4K & 0x00f);
- return TRgb(value | (value << 4), 0xff);
- }
- #line 307
- inline TRgb TRgb::_Color64K(TInt aColor64K)
- {
- TInt red = (aColor64K&0xF800)>>8;
- red += red>>5;
- TInt green = (aColor64K&0x07E0)>>3;
- green += green>>6;
- TInt blue = (aColor64K&0x001F)<<3;
- blue += blue>>5;
- return TRgb(red,green,blue);
- }
- #line 325
- inline TRgb TRgb::_Color16M(TInt a0RGB)
- {
- return TRgb(a0RGB, 0xff);
- }
- inline TRgb TRgb::_Color16MU(TInt a0RGB)
- {
- return TRgb(a0RGB, 0xff);
- }
- inline TInt TRgb::_Gray2() const
- {
- return(Gray256()>>7);
- }
- inline TInt TRgb::_Gray4() const
- {
- return(Gray256()>>6);
- }
- inline TInt TRgb::_Gray16() const
- {
- return(Gray256()>>4);
- }
- inline TInt TRgb::_Gray256() const
- {
- return(((Red()<<1)+Green()+(Green()<<2)+Blue())>>3);
- }
- inline TInt TRgb::_Color4K() const
- {
- TInt color4K = (iValue & 0x0000f0) >> 4;
- color4K |= (iValue & 0x00f000) >> 8;
- color4K |= (iValue & 0xf00000) >> 12;
- return color4K;
- }
- inline TInt TRgb::_Color64K() const
- {
- TInt color64K = (iValue & 0x0000f8) >> 3;
- color64K |= (iValue & 0x00fc00) >> 5;
- color64K |= (iValue & 0xf80000) >> 8;
- return color64K;
- }
- inline TInt TRgb::_Color16M() const
- {
- return (iValue & 0xffffff);
- }
- inline TInt TRgb::_Color16MU() const
- {
- return (iValue & 0xffffff);
- }
- inline TInt TRgb::Alpha() const
- {return (iValue >> 24);}
- #line 432
- inline TRgb TRgb::_Color16MA(TUint aARGB)
- {
- TRgb col; col.SetInternal(aARGB);
- return col;
- }
- inline TUint TRgb::_Color16MA() const
- {
- return (iValue);
- }
- inline TInt CPalette::Entries() const
- {return(iNumEntries);}
- inline TRgb TColor256Util::Color256(TInt aColor256) const
- { return TRgb(iColorTable[aColor256]); }
- inline TBool TFontStyle::operator==(const TFontStyle& aFontStyle) const
- {return(iFlags==aFontStyle.iFlags);}
- inline TGlyphBitmapType TFontStyle::BitmapType() const
- {
- return (TGlyphBitmapType)(iFlags >> 16);
- }
- inline void TFontStyle::SetBitmapType(TGlyphBitmapType aBitmapType)
- #line 502
- {
- iFlags &= 0xFFFF;
- iFlags |= (aBitmapType << 16);
- }
- inline TInt CBitmapDevice::CreateBitmapContext(CBitmapContext*& aGC)
- {return(CreateContext((CGraphicsContext*&)aGC));}
- inline TPictureCapability::TPictureCapability(TScalingType aScalingType,TBool aCroppable):
- iScalingType(aScalingType),iIsCroppable(aCroppable)
- {}
- inline TZoomFactor::TZoomFactor(const MGraphicsDeviceMap* aDevice):
- iZoomFactor(TZoomFactor::EZoomOneToOne),
- iDevice(aDevice)
- {}
- inline TZoomFactor::TZoomFactor(const TZoomFactor* aDevice):
- iDevice(aDevice)
- {
- iZoomFactor=aDevice->iZoomFactor;
- }
- inline void TZoomFactor::SetGraphicsDeviceMap(const MGraphicsDeviceMap* aDevice)
- {iDevice=aDevice;}
- inline const MGraphicsDeviceMap* TZoomFactor::GraphicsDeviceMap() const
- {return(iDevice);}
- #line 579
- inline TInt CFont::FontCapitalAscent() const
- {
- return ExtendedFunction(KFontCapitalAscent);
- }
- #line 595
- inline TInt CFont::FontMaxAscent() const
- {
- return ExtendedFunction(KFontMaxAscent);
- }
- #line 608
- inline TInt CFont::FontStandardDescent() const
- {
- return ExtendedFunction(KFontStandardDescent);
- }
- #line 623
- inline TInt CFont::FontMaxDescent() const
- {
- return ExtendedFunction(KFontMaxDescent);
- }
- inline TInt CFont::FontLineGap() const
- {
- return ExtendedFunction(KFontLineGap);
- }
- #line 648
- inline TInt CFont::FontMaxHeight() const
- {
- return FontMaxAscent() + FontMaxDescent();
- }
- #line 3912 "C:\Symbian\9.1\S60_3rd\epoc32\include\gdi.h" /* stack depth 6 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\openfont.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComErrorCodes.h" /* stack depth 8 */
- #line 20
- const TInt KEComErrBase = -17000;
- const TInt KEComErrLast = -17030;
- #line 39
- const TInt KEComErrNoInterfaceIdentified = -17004;
- const TInt KEComErrNoResolver = -17014;
- const TInt KEComErrTooManyNotificationsOutstanding = -17026;
- #line 64
- const TInt KEComErrMissingParameter = -17028;
- const TInt KEComErrListInvalidAwaitNotification = -17029;
- const TInt KEComErrListCurrentlyUnavailable = -17030;
- #line 90
- const TInt KEComErrInvalidUnloadPolicy = -17003;
- const TInt KEComErrInvalidIIC = -17008;
- const TInt KEComErrDriveNotFound = -17019;
- #line 117
- const TInt KEComErrUnknownService = -17002;
- const TInt KEComErrReferenceCountInvalid = -17013;
- const TInt KEComErrDestructionFailed = -17017;
- const TInt KEComErrInvalidRegistryData = -17022;
- const TInt KEComErrMismatchedTags = -17023;
- #line 156
- const TInt KEComErrDestroyingWithNullDtorKey = -17027;
- #line 166
- const TInt KEComErrAlreadyReceiving = -17001;
- const TInt KEComErrEnableFailed = -17005;
- const TInt KEComErrDisableFailed = -17006;
- const TInt KEComErrNoRegistrationsFound = -17007;
- const TInt KEComErrUninstallFailed = -17009;
- const TInt KEComErrReinstallFailed = -17010;
- const TInt KEComErrRegistrationFailed = -17011;
- const TInt KEComErrNotConnected = -17012;
- const TInt KEComErrSuspendFailed = -17015;
- const TInt KEComErrResumeFailed = -17016;
- const TInt KEComErrDriveAlreadyInstalled = -17018;
- const TInt KEComErrIndexEntryNotFound = -17020;
- const TInt KEComErrNoRegistrationData = -17021;
- const TInt KEComErrInstantiationPointerNotFound = -17024;
- const TInt KEComErrInstantiationPointerNotAvailable = -17025;
- #line 19 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComResolverParams.h" /* stack depth 8 */
- #line 25
- class TEComResolverParams
- {
- public:
- inline TEComResolverParams();
- inline const TDesC8& DataType() const;
- inline void SetDataType(const TDesC8& aDataType);
- inline TBool IsGenericMatch() const;
- inline void SetGenericMatch(TBool aGenericMatch);
- inline TBool IsWildcardMatch() const;
- inline void SetWildcardMatch(TBool aWildcardMatch);
- private:
- TPtrC8 iDataType;
- TBool iGenericMatch;
- };
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComResolverParams.inl" /* stack depth 9 */
- #line 19
- TEComResolverParams::TEComResolverParams()
- : iDataType(0 ,0),
- iGenericMatch(EFalse)
- {
- }
- #line 35
- const TDesC8& TEComResolverParams::DataType() const
- {
- return iDataType;
- }
- #line 50
- void TEComResolverParams::SetDataType(const TDesC8& aDataType)
- {
- iDataType.Set(aDataType);
- }
- #line 62
- TBool TEComResolverParams::IsGenericMatch() const
- {
- return iGenericMatch;
- }
- #line 94
- void TEComResolverParams::SetGenericMatch(TBool aGenericMatch)
- {
- iGenericMatch=aGenericMatch;
- }
- #line 107
- TBool TEComResolverParams::IsWildcardMatch() const
- {
- return iGenericMatch;
- }
- #line 121
- void TEComResolverParams::SetWildcardMatch(TBool aWildcardMatch)
- {
- iGenericMatch=aWildcardMatch;
- }
- #line 56 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\EComResolverParams.h" /* stack depth 8 */
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\ImplementationInformation.h" /* stack depth 8 */
- #line 52
- class CImplementationInformation : public CBase
- {
- public:
- static CImplementationInformation* NewLC(RReadStream& aStream);
- static CImplementationInformation* NewL(TUid aUid,
- TInt aVersion,
- HBufC* aName,
- HBufC8* aDataType,
- HBufC8* aOpaqueData,
- TDriveUnit aDrive,
- TBool aRomOnly,
- TBool aRomBased);
- static CImplementationInformation* NewL(const CImplementationInformation& aImplInfo);
- ~CImplementationInformation();
- inline const TDesC& DisplayName() const;
- inline const TDesC8& DataType() const;
- inline const TDesC8& OpaqueData() const;
- inline TUid ImplementationUid() const;
- inline TInt Version() const;
- inline TBool Disabled() const;
- inline void SetDisabled(TBool aDisabled);
- void ExternalizeL(RWriteStream& aStream) const;
- void InternalizeL(RReadStream& aStream);
- inline TDriveUnit Drive() const;
- inline TBool RomOnly() const;
- inline TBool RomBased() const;
- void SetRomBased(TBool aRomBased);
- private:
- CImplementationInformation();
- CImplementationInformation(TUid aUid,
- TInt aVersion,
- HBufC* aName,
- HBufC8* aDataType,
- HBufC8* aOpaqueData,
- TDriveUnit aDrive,
- TBool aRomOnly,
- TBool aRomBased);
- private:
- TUid iImplementationUid;
- TInt iVersion;
- HBufC* iDisplayName;
- HBufC8* iData;
- HBufC8* iOpaqueData;
- TBool iDisabled;
- TDriveUnit iDrive;
- TBool iRomOnly;
- TBool iRomBased;
- };
- typedef RArray<CImplementationInformation*> RImplInfoArray;
- typedef RPointerArray<CImplementationInformation> RImplInfoPtrArray;
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\ImplementationInformation.inl" /* stack depth 9 */
- #line 22
- const TDesC& CImplementationInformation::DisplayName() const
- {
- if(iDisplayName == 0 )
- return KNullDesC();
- else
- return *iDisplayName;
- }
- #line 37
- const TDesC8& CImplementationInformation::DataType() const
- {
- if(iData == 0 )
- return KNullDesC8();
- else
- return *iData;
- }
- #line 52
- const TDesC8& CImplementationInformation::OpaqueData() const
- {
- if(iOpaqueData == 0 )
- return KNullDesC8();
- else
- return *iOpaqueData;
- }
- #line 67
- TUid CImplementationInformation::ImplementationUid() const
- {
- return iImplementationUid;
- }
- #line 79
- TInt CImplementationInformation::Version() const
- {
- return iVersion;
- }
- #line 92
- TBool CImplementationInformation::Disabled() const
- {
- return iDisabled;
- }
- #line 105
- void CImplementationInformation::SetDisabled(TBool aDisabled)
- {
- iDisabled = aDisabled;
- }
- #line 117
- TDriveUnit CImplementationInformation::Drive() const
- {
- return iDrive;
- }
- #line 129
- TBool CImplementationInformation::RomOnly() const
- {
- return iRomOnly;
- }
- TBool CImplementationInformation::RomBased() const
- {
- return iRomBased;
- }
- #line 159 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\ImplementationInformation.h" /* stack depth 8 */
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\Ecom\Ecom.h" /* stack depth 7 */
- class CLoadManager;
- class CGlobalData;
- const TInt KMaxServiceArgs = 4;
- #line 41
- const TUid KRomOnlyResolverUid = {0x10009D92};
- #line 68
- class REComSession : public RSessionBase
- {
- friend class CGlobalData;
- public:
- __declspec(dllexport) REComSession();
- __declspec(dllexport) static REComSession& OpenL();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void NotifyOnChange(TRequestStatus& aStatus);
- __declspec(dllexport) void CancelNotifyOnChange(TRequestStatus& aStatus);
- __declspec(dllexport) static void ListImplementationsL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- RImplInfoPtrArray& aImplInfoArray);
- __declspec(dllexport) static void ListImplementationsL(TUid aInterfaceUid,
- RImplInfoPtrArray& aImplInfoArray);
- __declspec(dllexport) static void ListImplementationsL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- RImplInfoPtrArray& aImplInfoArray);
- #line 104
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TUid& aDtorIDKey);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TInt32 aKeyOffset);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TUid& aDtorIDKey,
- TAny* aConstructionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aImplementationUid,
- TInt32 aKeyOffset,
- TAny* aConstructionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TUid& aDtorIDKey,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static TAny* CreateImplementationL(TUid aInterfaceUid,
- TInt32 aKeyOffset,
- TAny* aConstructionParameters,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid);
- __declspec(dllexport) static void DestroyedImplementation(TUid aDtorIDKey);
- __declspec(dllexport) static void FinalClose();
- private:
- void ConstructL();
- void ReallyClose();
- static void ListImplementationsL(TInt aServiceId,
- TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- RImplInfoPtrArray& aImplInfoArray);
- TAny* ResolveAndCreateImplL(TUid aImplementationUid,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- TAny* ResolveAndCreateImplL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- TAny* ResolveAndCreateImplL(TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- TAny* ResolveAndCreateImplL(TInt aServiceId,
- TUid aInterfaceUid,
- const TEComResolverParams& aResolutionParameters,
- TUid aResolverUid,
- TUid& aDtorIDKey,
- TAny* aCreationParameters, TBool aCreationParamsFlag);
- public:
- __declspec(dllexport) static void SetGetParametersL(const TIpcArgs &aArgs);
- private:
- TInt iReserved1;
- TBool iDoNotCloseThis;
- TInt iReserved2;
- };
- #line 27 "C:\Symbian\9.1\S60_3rd\epoc32\include\openfont.h" /* stack depth 6 */
- class CFont;
- class COpenFontFile;
- class COpenFontGlyph;
- class COpenFontGlyphCache;
- class COpenFontGlyphTreeEntry;
- class COpenFontPositioner;
- class COpenFontSessionCache;
- class COpenFontSessionCacheList;
- class RFs;
- class TCharacterMetrics;
- class TFontSpec;
- class TOpenFontFaceAttrib;
- class CFontStore;
- class TOpenFontFileData;
- const TInt KUidOpenFontRasterizerPlunginInterface = 0x101F7F5D;
- #line 64
- const TUint KReplacementCharacter = 0xF6DB;
- const TInt KFillCharacterOffset = 0x7FFF;
- #line 81
- class TOpenFontMetrics
- {
- public:
- inline TOpenFontMetrics();
- __declspec(dllexport) TOpenFontMetrics(const CFont* aFont);
- inline TInt Size() const;
- inline TInt Ascent() const;
- inline TInt Descent() const;
- inline TInt MaxHeight() const;
- inline TInt MaxDepth() const;
- inline TInt MaxWidth() const;
- inline void SetSize(TInt aSize);
- inline void SetAscent(TInt aAscent);
- inline void SetDescent(TInt aDescent);
- inline void SetMaxHeight(TInt aMaxHeight);
- inline void SetMaxDepth(TInt aMaxDepth);
- inline void SetMaxWidth(TInt aMaxWidth);
- private:
- TInt16 iDesignHeight;
- TInt16 iAscent;
- TInt16 iDescent;
- TInt16 iMaxHeight;
- TInt16 iMaxDepth;
- TInt16 iMaxWidth;
- TInt32 iReserved;
- };
- #line 128
- class TOpenFontCharMetrics
- {
- public:
- enum TUninitialized { EUninitialized };
- public:
- inline TOpenFontCharMetrics();
- TOpenFontCharMetrics(TUninitialized) {}
- __declspec(dllexport) TOpenFontCharMetrics(const TCharacterMetrics& aMetrics);
- __declspec(dllexport) TBool GetTCharacterMetrics(TCharacterMetrics& aMetrics) const;
- inline TInt Width() const;
- inline TInt Height() const;
- inline TInt HorizBearingX() const;
- inline TInt HorizBearingY() const;
- inline TInt HorizAdvance() const;
- inline TInt VertBearingX() const;
- inline TInt VertBearingY() const;
- inline TInt VertAdvance() const;
- inline void GetHorizBounds(TRect& aBounds) const;
- inline void GetVertBounds(TRect& aBounds) const;
- inline void SetWidth(TInt aWidth);
- inline void SetHeight(TInt aHeight);
- inline void SetHorizBearingX(TInt aHorizBearingX);
- inline void SetHorizBearingY(TInt aHorizBearingY);
- inline void SetHorizAdvance(TInt aHorizAdvance);
- inline void SetVertBearingX(TInt aVertBearingX);
- inline void SetVertBearingY(TInt aVertBearingY);
- inline void SetVertAdvance(TInt aVertAdvance);
- private:
- TInt16 iWidth;
- TInt16 iHeight;
- TInt16 iHorizBearingX;
- TInt16 iHorizBearingY;
- TInt16 iHorizAdvance;
- TInt16 iVertBearingX;
- TInt16 iVertBearingY;
- TInt16 iVertAdvance;
- TInt32 iReserved;
- };
- #line 187
- class TOpenFontGlyphData
- {
- public:
- __declspec(dllexport) static TOpenFontGlyphData* New(RHeap* aHeap,TInt aBufferSize);
- inline TBool Overflow() const;
- inline TInt BytesNeeded() const;
- inline TPtrC8 Bitmap() const;
- inline const TUint8* BitmapPointer() const;
- inline const TOpenFontCharMetrics* Metrics() const;
- inline TInt GlyphIndex() const;
- inline TUint8* BufferStart();
- inline TUint8* BufferEnd();
- inline void SetBytesNeeded(TInt aBytes);
- inline void SetBitmapPointer(const TUint8* aBitmap);
- inline void SetMetricsPointer(const TOpenFontCharMetrics* aMetrics);
- inline void SetPointersToInternalBuffers();
- inline void SetMetrics(TOpenFontCharMetrics& aMetrics);
- inline void SetGlyphIndex(TInt aGlyphIndex);
- private:
- TOpenFontGlyphData();
- ~TOpenFontGlyphData();
- private:
- TInt iBitmapBufferSize;
- TInt iBytesNeeded;
- TOpenFontCharMetrics iMetricsBuffer;
- const TUint8* iBitmap;
- const TOpenFontCharMetrics* iMetrics;
- TInt iGlyphIndex;
- TAny* iReserved;
- TUint8 iBitmapBuffer[1];
- };
- #line 254
- class COpenFont: public CBase
- {
- public:
- #line 282
- virtual void RasterizeL(TInt aCode,TOpenFontGlyphData* aGlyphData) = 0;
- __declspec(dllexport) virtual void Reserved();
- __declspec(dllexport) COpenFont(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList,COpenFontFile* aFile);
- __declspec(dllexport) COpenFont(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList,COpenFontFile* aFile,TInt aFaceIndex);
- __declspec(dllexport) ~COpenFont();
- __declspec(dllexport) void operator delete(TAny*);
- inline const TOpenFontMetrics& Metrics() const;
- inline const TOpenFontFaceAttrib* FaceAttrib() const;
- inline COpenFontFile* File() const;
- inline TInt FaceIndex() const;
- inline TBool CharacterNeedsToBeRasterized(TInt aSessionHandle,TInt aCode) const;
- TBool Rasterize(TInt aSessionHandle,TInt aCode,TOpenFontGlyphData* aGlyphData);
- TBool HasCharacterL(TInt aCode) const;
- TBool GetCharacterData(TInt aSessionHandle,TInt aCode,const TOpenFontCharMetrics*& aMetrics,const TUint8*& aBitmap) const;
- void OnFileDeleted();
- inline TInt FontCapitalAscent() const;
- inline TInt FontMaxAscent() const;
- inline TInt FontStandardDescent() const;
- inline TInt FontMaxDescent() const;
- inline TInt FontLineGap() const;
- inline TInt FontMaxHeight() const;
- protected:
- RHeap* iHeap;
- TOpenFontMetrics iMetrics;
- const COpenFontPositioner* iPositioner;
- TInt iFontCapitalAscent;
- TInt iFontMaxAscent;
- TInt iFontStandardDescent;
- TInt iFontMaxDescent;
- TInt iFontLineGap;
- private:
- const COpenFontGlyph* Glyph(TInt aSessionHandle,TInt aCode) const;
- const COpenFontGlyph* FontCacheGlyph(TInt aCode,COpenFontGlyphTreeEntry**& aNode);
- const COpenFontGlyph* SessionCacheGlyph(RHeap* aHeap,TInt aSessionHandle,TInt aCode,
- COpenFontSessionCache*& aCache,TInt& aIndex,TBool aCreate) const;
- void RasterizeHelperL(TInt aCode,TOpenFontGlyphData* aGlyphData,TOpenFontGlyphData*& aTempGlyphData);
- private:
- COpenFontFile* iFile;
- TInt iFaceIndex;
- COpenFontGlyphCache* iGlyphCache;
- COpenFontSessionCacheList* iSessionCacheList;
- TAny* iReserved;
- };
- #line 351
- class TOpenFontFaceAttribBase
- {
- public:
- inline TOpenFontFaceAttribBase();
- inline TBool HasLatin() const;
- inline TBool HasGreek() const;
- inline TBool HasCyrillic() const;
- inline TBool HasKana() const;
- inline TBool HasHangul() const;
- inline TBool HasCJK() const;
- inline TBool IsSymbol() const;
- inline TBool IsBold() const;
- inline TBool IsItalic() const;
- inline TBool IsSerif() const;
- inline TBool IsMonoWidth() const;
- inline TPtrC Name() const;
- inline const TUint* Coverage() const;
- inline void SetName(const TDesC& aName);
- inline void SetCoverage(TUint aCoverage0,TUint aCoverage1 = 0,TUint aCoverage2 = 0,TUint aCoverage3 = 0);
- inline void SetBold(TBool aBold);
- inline void SetItalic(TBool aItalic);
- inline void SetSerif(TBool aSerif);
- inline void SetMonoWidth(TBool aMonoWidth);
- inline TBool operator==(const TOpenFontFaceAttribBase& aAttrib) const;
- enum
- {
- ELatinSet = 0x1,
- EGreekSet = 0x80,
- ECyrillicSet = 0x200,
- EArmenianSet = 0x400,
- EHebrewSet = 0x800,
- EArabicSet = 0x2000,
- EDevanagariSet = 0x8000,
- EBengaliSet = 0x10000,
- EGurmukhiSet = 0x20000,
- EGujuratiSet = 0x40000,
- EOriyaSet = 0x80000,
- ETamilSet = 0x100000,
- ETeluguSet = 0x200000,
- EKannadaSet = 0x400000,
- EMalayalamSet = 0x800000,
- EThaiSet = 0x1000000,
- ELaoSet = 0x2000000,
- EGeorgianSet = 0x8000000,
- EHangulJamoSet = 0x10000000,
- };
- enum
- {
- ESymbolSets = 0xFFFE,
- EKanaSets = 0x60000,
- EHangulSet = 0x100000,
- ECJKSet = 0x8000000
- };
- enum
- {
- EBold = 0x1,
- EItalic = 0x2,
- ESerif = 0x4,
- EMonoWidth = 0x8
- };
- enum
- {
- ENameLength = 32
- };
- protected:
- TBufC<ENameLength> iName;
- TUint iCoverage[4];
- TInt iStyle;
- TInt32 iReserved;
- };
- #line 443
- class TOpenFontFaceAttrib: public TOpenFontFaceAttribBase
- {
- public:
- inline TOpenFontFaceAttrib();
- inline TBool operator==(const TOpenFontFaceAttrib& aAttrib) const;
- inline TPtrC FullName() const;
- inline TPtrC FamilyName() const;
- inline TPtrC LocalFullName() const;
- inline TPtrC LocalFamilyName() const;
- inline TPtrC ShortFullName() const;
- inline TPtrC ShortFamilyName() const;
- inline TPtrC ShortLocalFullName() const;
- inline TPtrC ShortLocalFamilyName() const;
- inline void SetFullName(const TDesC& aName);
- inline void SetFamilyName(const TDesC& aName);
- inline void SetLocalFullName(const TDesC& aName);
- inline void SetLocalFamilyName(const TDesC& aName);
- inline TInt MinSizeInPixels() const;
- inline void SetMinSizeInPixels(TInt aSize);
- private:
- TBufC<ENameLength> iFamilyName;
- TBufC<ENameLength> iLocalFullName;
- TBufC<ENameLength> iLocalFamilyName;
- TInt iMinSizeInPixels;
- TInt32 iReserved2;
- };
- #line 488
- class TOpenFontSpec: public TOpenFontFaceAttribBase
- {
- public:
- __declspec(dllexport) TOpenFontSpec();
- __declspec(dllexport) TOpenFontSpec(const TFontSpec& aFontSpec);
- __declspec(dllexport) void operator=(const TFontSpec& aFontSpec);
- inline TBool operator==(const TOpenFontSpec& aFontSpec) const;
- __declspec(dllexport) void SetAttrib(const TOpenFontFaceAttribBase& aAttrib);
- __declspec(dllexport) void GetTFontSpec(TFontSpec& aFontSpec) const;
- __declspec(dllexport) void CompensateForAspectRatio(TInt aPixelWidth,TInt aPixelHeight);
- __declspec(dllexport) void CompensateForAspectRatio(const MGraphicsDeviceMap& aMap);
- inline TInt Height() const;
- inline TInt32 WidthFactor() const;
- inline TInt32 SlantFactor() const;
- inline TGlyphBitmapType BitmapType() const;
- inline TUint32 Effects() const;
- inline TFontPrintPosition PrintPosition() const;
- inline void SetHeight(TInt aHeight);
- inline void SetWidthFactor(TInt32 aWidthFactor);
- inline void SetSlantFactor(TInt32 aSlantFactor);
- inline void SetBitmapType(TGlyphBitmapType aBitmapType);
- inline void SetEffects(TUint32 aEffects);
- __declspec(dllexport) void SetEffects(FontEffect::TEffect aEffect, TBool aOn);
- __declspec(dllexport) TBool IsEffectOn(FontEffect::TEffect aEffect) const;
- static TBool IsCompensationForAspectRatioNeeded(TInt aPixelWidth, TInt aPixelHeight, TReal& aRatio);
- enum
- {
- EAlgorithmicBold = 1,
- EDropShadow = 2,
- EOutline = 4
- };
- private:
- TInt iHeight;
- TInt32 iWidthFactor;
- TInt32 iSlantFactor;
- TInt iBitmapType;
- TUint32 iEffects;
- TBool iSymbol;
- TFontPrintPosition iPrintPosition;
- TInt iReserved2;
- };
- enum TOpenFontAttachment
- {
- EBaselineLeft,
- EBaselineRight,
- ETopLeft,
- ETopCenter,
- ETopRight,
- EBottomLeft,
- EBottomCenter,
- EBottomRight
- };
- #line 599
- class COpenFontFile: public CBase
- {
- public:
- virtual void GetNearestFontInPixelsL(RHeap* aHeap, COpenFontSessionCacheList* aSessionCacheList,
- const TOpenFontSpec& aDesiredFontSpec, TInt aPixelWidth, TInt aPixelHeight,
- COpenFont*& aFont, TOpenFontSpec& aActualFontSpec) = 0;
- virtual void GetNearestFontToDesignHeightInPixelsL(RHeap* , COpenFontSessionCacheList* ,
- const TOpenFontSpec& , TInt , TInt ,
- COpenFont*& , TOpenFontSpec& ){}
- virtual void GetNearestFontToMaxHeightInPixelsL(RHeap* , COpenFontSessionCacheList* ,
- const TOpenFontSpec& , TInt , TInt ,
- COpenFont*& , TOpenFontSpec& , TInt ){}
- virtual TBool HasUnicodeCharacterL(TInt aFaceIndex,TInt aCode) const = 0;
- __declspec(dllexport) virtual void Reserved();
- __declspec(dllexport) COpenFontFile(TInt aUid,const TDesC& aFileName);
- __declspec(dllexport) ~COpenFontFile();
- __declspec(dllexport) TBool GetNearestFontHelper(const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight,
- TInt& aFaceIndex,TOpenFontSpec& aActualFontSpec) const;
- __declspec(dllexport) void AddFaceL(const TOpenFontFaceAttrib& aAttrib);
- inline TUid Uid() const;
- inline const TDesC& FileName() const;
- inline const TOpenFontFaceAttrib& FaceAttrib(TInt aFaceIndex) const;
- inline TInt FaceCount() const;
- inline void IncRefCount();
- inline TBool DecRefCount();
- TInt GetNearestFontInPixels(RHeap* aHeap,COpenFontSessionCacheList* aSessionCacheList,
- const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight,
- COpenFont*& aFont,TOpenFontSpec& aActualFontSpec);
- TInt GetNearestFontToDesignHeightInPixels(RHeap* aHeap, COpenFontSessionCacheList* aSessionCacheList,
- const TOpenFontSpec& aDesiredFontSpec, TInt aPixelWidth, TInt aPixelHeight,
- COpenFont*& aFont, TOpenFontSpec& aActualFontSpec);
- TInt GetNearestFontToMaxHeightInPixels(RHeap* aHeap, COpenFontSessionCacheList* aSessionCacheList,
- const TOpenFontSpec& aDesiredFontSpec, TInt aPixelWidth, TInt aPixelHeight,
- COpenFont*& aFont, TOpenFontSpec& aActualFontSpec, TInt aMaxHeight);
- void RemoveFontFromList(const COpenFont* aFont);
- void SetFontStoreL(CFontStore* aFontStore);
- protected:
- __declspec(dllexport) TBool GetNearestFontHelperOld(const TOpenFontSpec& aDesiredFontSpec,TInt aPixelWidth,TInt aPixelHeight,
- TInt& aFaceIndex,TOpenFontSpec& aActualFontSpec) const;
- private:
- class TAttrib: public TOpenFontFaceAttrib
- {
- public:
- COpenFontPositioner* iPositioner;
- };
- static TInt ScoreByName(const TOpenFontSpec& aDesiredFontSpec, const TAttrib& aAttrib);
- static TInt ScoreByStyle(const TOpenFontSpec& aDesiredFontSpec, const TAttrib& aAttrib, const TOpenFontFileData* aOpenFontFileData);
- private:
- CArrayFixFlat<TAttrib> iFaceAttrib;
- TUid iUid;
- TBuf<KMaxFileName> iFileName;
- TInt iRefCount;
- CArrayPtrFlat<COpenFont> iFontList;
- TOpenFontFileData* iData;
- };
- #line 697
- class COpenFontRasterizer: public CBase
- {
- public:
- #line 730
- virtual COpenFontFile* NewFontFileL(TInt aUid,const TDesC& aFileName,RFs& aFileSession) = 0;
- inline static COpenFontRasterizer* NewL(TUid aInterfaceImplUid);
- inline virtual ~COpenFontRasterizer();
- __declspec(dllexport) virtual void Reserved();
- private:
- TUid iDtor_ID_Key;
- };
- #line 753
- class COpenFontRasterizerContext: public CBase
- {
- public:
- inline COpenFontRasterizerContext();
- inline void StartGlyph(TOpenFontGlyphData* aGlyphData);
- inline void WriteGlyphBit(TInt aBit);
- inline void WriteGlyphByte(TInt aByte);
- inline void EndGlyph();
- private:
- TOpenFontGlyphData* iGlyphData;
- TUint8* iGlyphDataStart;
- TUint8* iGlyphDataPtr;
- TUint8* iGlyphDataEnd;
- TInt iGlyphBit;
- TInt iBytesNeeded;
- TBool iOverflow;
- TAny* iReserved;
- };
- inline TOpenFontMetrics::TOpenFontMetrics()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- inline TInt TOpenFontMetrics::Size() const
- {
- return iDesignHeight;
- }
- inline TInt TOpenFontMetrics::Ascent() const
- {
- return iAscent;
- }
- inline TInt TOpenFontMetrics::Descent() const
- {
- return iDescent;
- }
- #line 824
- inline TInt TOpenFontMetrics::MaxHeight() const
- {
- return iMaxHeight;
- }
- #line 839
- inline TInt TOpenFontMetrics::MaxDepth() const
- {
- return iMaxDepth;
- }
- inline TInt TOpenFontMetrics::MaxWidth() const
- {
- return iMaxWidth;
- }
- inline void TOpenFontMetrics::SetSize(TInt aSize)
- {
- iDesignHeight = static_cast<TInt16>(aSize);
- }
- inline void TOpenFontMetrics::SetAscent(TInt aAscent)
- {
- iAscent = static_cast<TInt16>(aAscent);
- }
- inline void TOpenFontMetrics::SetDescent(TInt aDescent)
- {
- iDescent = static_cast<TInt16>(aDescent);
- }
- inline void TOpenFontMetrics::SetMaxHeight(TInt aMaxHeight)
- {
- iMaxHeight = static_cast<TInt16>(aMaxHeight);
- }
- inline void TOpenFontMetrics::SetMaxDepth(TInt aMaxDepth)
- {
- iMaxDepth = static_cast<TInt16>(aMaxDepth);
- }
- inline void TOpenFontMetrics::SetMaxWidth(TInt aMaxWidth)
- {
- iMaxWidth = static_cast<TInt16>(aMaxWidth);
- }
- inline TOpenFontCharMetrics::TOpenFontCharMetrics()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- inline TInt TOpenFontCharMetrics::Width() const
- {
- return iWidth;
- }
- inline TInt TOpenFontCharMetrics::Height() const
- {
- return iHeight;
- }
- #line 939
- inline TInt TOpenFontCharMetrics::HorizBearingX() const
- {
- return iHorizBearingX;
- }
- #line 951
- inline TInt TOpenFontCharMetrics::HorizBearingY() const
- {
- return iHorizBearingY;
- }
- #line 963
- inline TInt TOpenFontCharMetrics::HorizAdvance() const
- {
- return iHorizAdvance;
- }
- #line 975
- inline TInt TOpenFontCharMetrics::VertBearingX() const
- {
- return iVertBearingX;
- }
- #line 987
- inline TInt TOpenFontCharMetrics::VertBearingY() const
- {
- return iVertBearingY;
- }
- #line 1002
- inline TInt TOpenFontCharMetrics::VertAdvance() const
- {
- return iVertAdvance;
- }
- inline void TOpenFontCharMetrics::GetHorizBounds(TRect& aBounds) const
- {
- aBounds.iTl.iX = iHorizBearingX;
- aBounds.iTl.iY = -iHorizBearingY;
- aBounds.iBr.iX = aBounds.iTl.iX + iWidth;
- aBounds.iBr.iY = aBounds.iTl.iY + iHeight;
- }
- inline void TOpenFontCharMetrics::GetVertBounds(TRect& aBounds) const
- {
- aBounds.iTl.iX = -iVertBearingX;
- aBounds.iTl.iY = iVertBearingY;
- aBounds.iBr.iX = aBounds.iTl.iX + iWidth;
- aBounds.iBr.iY = aBounds.iTl.iY + iHeight;
- }
- inline void TOpenFontCharMetrics::SetWidth(TInt aWidth)
- {
- iWidth = (TInt16)aWidth;
- }
- inline void TOpenFontCharMetrics::SetHeight(TInt aHeight)
- {
- iHeight = (TInt16)aHeight;
- }
- #line 1058
- inline void TOpenFontCharMetrics::SetHorizBearingX(TInt aHorizBearingX)
- {
- iHorizBearingX = (TInt16)aHorizBearingX;
- }
- #line 1070
- inline void TOpenFontCharMetrics::SetHorizBearingY(TInt aHorizBearingY)
- {
- iHorizBearingY = (TInt16)aHorizBearingY;
- }
- #line 1082
- inline void TOpenFontCharMetrics::SetHorizAdvance(TInt aHorizAdvance)
- {
- iHorizAdvance = (TInt16)aHorizAdvance;
- }
- #line 1094
- inline void TOpenFontCharMetrics::SetVertBearingX(TInt aVertBearingX)
- {
- iVertBearingX = (TInt16)aVertBearingX;
- }
- #line 1106
- inline void TOpenFontCharMetrics::SetVertBearingY(TInt aVertBearingY)
- {
- iVertBearingY = (TInt16)aVertBearingY;
- }
- #line 1121
- inline void TOpenFontCharMetrics::SetVertAdvance(TInt aVertAdvance)
- {
- iVertAdvance = (TInt16)aVertAdvance;
- }
- inline const TOpenFontMetrics& COpenFont::Metrics() const
- {
- return iMetrics;
- }
- #line 1144
- inline TInt TOpenFontGlyphData::GlyphIndex() const
- {
- return iGlyphIndex;
- }
- inline const TOpenFontFaceAttrib* COpenFont::FaceAttrib() const
- {
- return iFile ? &iFile->FaceAttrib(iFaceIndex) : 0 ;
- }
- #line 1166
- inline COpenFontFile* COpenFont::File() const
- {
- return iFile;
- }
- inline TInt COpenFont::FaceIndex() const
- {
- return iFaceIndex;
- }
- #line 1188
- inline TBool COpenFont::CharacterNeedsToBeRasterized(TInt aSessionHandle,TInt aCode) const
- {
- return Glyph(aSessionHandle,aCode) == 0 ;
- }
- #line 1201
- inline TInt COpenFont::FontCapitalAscent() const
- {
- return iFontCapitalAscent;
- }
- #line 1217
- inline TInt COpenFont::FontMaxAscent() const
- {
- return iFontMaxAscent;
- }
- #line 1230
- inline TInt COpenFont::FontStandardDescent() const
- {
- return iFontStandardDescent;
- }
- #line 1245
- inline TInt COpenFont::FontMaxDescent() const
- {
- return iFontMaxDescent;
- }
- inline TInt COpenFont::FontLineGap() const
- {
- return iFontLineGap;
- }
- #line 1268
- inline TInt COpenFont::FontMaxHeight() const
- {
- return iFontMaxAscent + iFontMaxDescent;
- }
- inline TOpenFontFaceAttribBase::TOpenFontFaceAttribBase()
- {
- Mem::FillZ(this,sizeof(*this));
- }
- inline TOpenFontFaceAttrib::TOpenFontFaceAttrib():
- iMinSizeInPixels(0),
- iReserved2(0)
- {
- }
- inline TBool TOpenFontFaceAttribBase::HasLatin() const
- {
- return iCoverage[0] & ELatinSet;
- }
- inline TBool TOpenFontFaceAttribBase::HasGreek() const
- {
- return iCoverage[0] & EGreekSet;
- }
- inline TBool TOpenFontFaceAttribBase::HasCyrillic() const
- {
- return iCoverage[0] & ECyrillicSet;
- }
- #line 1336
- inline TBool TOpenFontFaceAttribBase::HasKana() const
- {
- return iCoverage[1] & EKanaSets;
- }
- #line 1350
- inline TBool TOpenFontFaceAttribBase::HasHangul() const
- {
- return iCoverage[1] & EHangulSet;
- }
- #line 1363
- inline TBool TOpenFontFaceAttribBase::HasCJK() const
- {
- return iCoverage[1] & ECJKSet;
- }
- inline TBool TOpenFontFaceAttribBase::IsSymbol() const
- {
- return iCoverage[0] == 0 && iCoverage[2] == 0 && iCoverage[3] == 0 &&
- iCoverage[1] & ESymbolSets && !(iCoverage[1] & ~ESymbolSets);
- }
- inline TBool TOpenFontFaceAttribBase::IsBold() const
- {
- return iStyle & EBold;
- }
- inline TBool TOpenFontFaceAttribBase::IsItalic() const
- {
- return iStyle & EItalic;
- }
- inline TBool TOpenFontFaceAttribBase::IsSerif() const
- {
- return iStyle & ESerif;
- }
- inline TBool TOpenFontFaceAttribBase::IsMonoWidth() const
- {
- return iStyle & EMonoWidth;
- }
- inline TPtrC TOpenFontFaceAttribBase::Name() const
- {
- return iName;
- }
- #line 1424
- inline TPtrC TOpenFontFaceAttrib::FullName() const
- {
- return Name();
- }
- #line 1436
- inline TPtrC TOpenFontFaceAttrib::FamilyName() const
- {
- return iFamilyName;
- }
- #line 1451
- inline TPtrC TOpenFontFaceAttrib::LocalFullName() const
- {
- return iLocalFullName;
- }
- #line 1466
- inline TPtrC TOpenFontFaceAttrib::LocalFamilyName() const
- {
- return iLocalFamilyName;
- }
- #line 1482
- inline TPtrC TOpenFontFaceAttrib::ShortFullName() const
- {
- return TPtrC(iName.Ptr(),Min(iName.Length(),KMaxTypefaceNameLength));
- }
- #line 1498
- inline TPtrC TOpenFontFaceAttrib::ShortFamilyName() const
- {
- return TPtrC(iFamilyName.Ptr(),Min(iFamilyName.Length(),KMaxTypefaceNameLength));
- }
- #line 1514
- inline TPtrC TOpenFontFaceAttrib::ShortLocalFullName() const
- {
- return TPtrC(iLocalFullName.Ptr(),Min(iLocalFullName.Length(),KMaxTypefaceNameLength));
- }
- #line 1530
- inline TPtrC TOpenFontFaceAttrib::ShortLocalFamilyName() const
- {
- return TPtrC(iLocalFamilyName.Ptr(),Min(iLocalFamilyName.Length(),KMaxTypefaceNameLength));
- }
- #line 1547
- inline const TUint* TOpenFontFaceAttribBase::Coverage() const
- {
- return iCoverage;
- }
- inline TInt TOpenFontFaceAttrib::MinSizeInPixels() const
- {
- return iMinSizeInPixels;
- }
- inline void TOpenFontFaceAttribBase::SetName(const TDesC& aName)
- {
- iName = TPtrC(aName.Ptr(),Min(aName.Length(),(TInt)ENameLength));
- }
- inline void TOpenFontFaceAttrib::SetFullName(const TDesC& aName)
- {
- SetName(aName);
- }
- inline void TOpenFontFaceAttrib::SetFamilyName(const TDesC& aName)
- {
- iFamilyName = TPtrC(aName.Ptr(),Min(aName.Length(),(TInt)ENameLength));
- }
- inline void TOpenFontFaceAttrib::SetLocalFullName(const TDesC& aName)
- {
- iLocalFullName = TPtrC(aName.Ptr(),Min(aName.Length(),(TInt)ENameLength));
- }
- inline void TOpenFontFaceAttrib::SetLocalFamilyName(const TDesC& aName)
- {
- iLocalFamilyName = TPtrC(aName.Ptr(),Min(aName.Length(),(TInt)ENameLength));
- }
- #line 1620
- inline void TOpenFontFaceAttribBase::SetCoverage(TUint aCoverage0,TUint aCoverage1,TUint aCoverage2,TUint aCoverage3)
- {
- iCoverage[0] = aCoverage0;
- iCoverage[1] = aCoverage1;
- iCoverage[2] = aCoverage2;
- iCoverage[3] = aCoverage3;
- }
- inline void TOpenFontFaceAttrib::SetMinSizeInPixels(TInt aSize)
- {
- iMinSizeInPixels = aSize;
- }
- #line 1647
- inline TBool TOpenFontFaceAttrib::operator==(const TOpenFontFaceAttrib& aAttrib) const
- {
- return TOpenFontFaceAttribBase::operator==(aAttrib) &&
- iFamilyName == aAttrib.iFamilyName &&
- iLocalFullName == aAttrib.iLocalFullName &&
- iLocalFamilyName == aAttrib.iLocalFamilyName &&
- iMinSizeInPixels == aAttrib.iMinSizeInPixels;
- }
- inline void TOpenFontFaceAttribBase::SetBold(TBool aBold)
- {
- if (aBold)
- iStyle |= EBold;
- else
- iStyle &= ~EBold;
- }
- inline void TOpenFontFaceAttribBase::SetItalic(TBool aItalic)
- {
- if (aItalic)
- iStyle |= EItalic;
- else
- iStyle &= ~EItalic;
- }
- inline void TOpenFontFaceAttribBase::SetSerif(TBool aSerif)
- {
- if (aSerif)
- iStyle |= ESerif;
- else
- iStyle &= ~ESerif;
- }
- inline void TOpenFontFaceAttribBase::SetMonoWidth(TBool aMonoWidth)
- {
- if (aMonoWidth)
- iStyle |= EMonoWidth;
- else
- iStyle &= ~EMonoWidth;
- }
- #line 1710
- inline TBool TOpenFontFaceAttribBase::operator==(const TOpenFontFaceAttribBase& aAttrib) const
- {
- return iStyle == aAttrib.iStyle &&
- iCoverage[0] == aAttrib.iCoverage[0] &&
- iCoverage[1] == aAttrib.iCoverage[1] &&
- iCoverage[2] == aAttrib.iCoverage[2] &&
- iCoverage[3] == aAttrib.iCoverage[3] &&
- iName.CompareF(aAttrib.iName) == 0;
- }
- #line 1727
- inline TBool TOpenFontSpec::operator==(const TOpenFontSpec& aFontSpec) const
- {
- return TOpenFontFaceAttribBase::operator==(aFontSpec) &&
- iHeight == aFontSpec.iHeight &&
- iWidthFactor == aFontSpec.iWidthFactor &&
- iSlantFactor == aFontSpec.iSlantFactor &&
- iBitmapType == aFontSpec.iBitmapType &&
- iEffects == aFontSpec.iEffects &&
- iSymbol == aFontSpec.iSymbol &&
- iPrintPosition == aFontSpec.iPrintPosition;
- }
- inline TInt TOpenFontSpec::Height() const
- {
- return iHeight;
- }
- inline TInt32 TOpenFontSpec::WidthFactor() const
- {
- return iWidthFactor;
- }
- inline TInt32 TOpenFontSpec::SlantFactor() const
- {
- return iSlantFactor;
- }
- inline TGlyphBitmapType TOpenFontSpec::BitmapType() const
- {
- return (TGlyphBitmapType)iBitmapType;
- }
- inline TUint32 TOpenFontSpec::Effects() const
- {
- return iEffects;
- }
- inline TFontPrintPosition TOpenFontSpec::PrintPosition() const
- {
- return iPrintPosition;
- }
- inline void TOpenFontSpec::SetHeight(TInt aHeight)
- {
- iHeight = aHeight;
- }
- #line 1811
- inline void TOpenFontSpec::SetWidthFactor(TInt32 aWidthFactor)
- {
- iWidthFactor = aWidthFactor;
- }
- #line 1831
- inline void TOpenFontSpec::SetSlantFactor(TInt32 aSlantFactor)
- {
- iSlantFactor = aSlantFactor;
- }
- #line 1845
- inline void TOpenFontSpec::SetBitmapType(TGlyphBitmapType aBitmapType)
- {
- iBitmapType = aBitmapType;
- }
- inline void TOpenFontSpec::SetEffects(TUint32 aEffects)
- {
- iEffects = aEffects;
- }
- inline TUid COpenFontFile::Uid() const
- {
- return iUid;
- }
- inline const TDesC& COpenFontFile::FileName() const
- {
- return iFileName;
- }
- inline const TOpenFontFaceAttrib& COpenFontFile::FaceAttrib(TInt aFaceIndex) const
- {
- return iFaceAttrib[aFaceIndex];
- }
- #line 1899
- inline TInt COpenFontFile::FaceCount() const
- {
- return iFaceAttrib.Count();
- }
- inline void COpenFontFile::IncRefCount()
- {
- iRefCount++;
- }
- inline TBool COpenFontFile::DecRefCount()
- {
- iRefCount--;
- return iRefCount <= 0;
- }
- inline COpenFontRasterizerContext::COpenFontRasterizerContext():
- iGlyphData(0 )
- {
- }
- inline void COpenFontRasterizerContext::StartGlyph(TOpenFontGlyphData* aGlyphData)
- {
- aGlyphData->SetPointersToInternalBuffers();
- iGlyphData = aGlyphData;
- iGlyphDataStart = iGlyphDataPtr = aGlyphData->BufferStart();
- iGlyphDataEnd = aGlyphData->BufferEnd() - 4;
- iGlyphBit = 1;
- *iGlyphDataPtr = 0;
- iBytesNeeded = 1;
- iOverflow = 0 ;
- }
- inline void COpenFontRasterizerContext::WriteGlyphBit(TInt aBit)
- {
- if (aBit && !iOverflow)
- *iGlyphDataPtr |= iGlyphBit;
- iGlyphBit <<= 1;
- if (iGlyphBit == 256)
- {
- iGlyphBit = 1;
- iBytesNeeded++;
- if (++iGlyphDataPtr < iGlyphDataEnd)
- *iGlyphDataPtr = 0;
- else
- iOverflow = 1 ;
- }
- }
- inline void COpenFontRasterizerContext::WriteGlyphByte(TInt aByte)
- {
- if (iGlyphDataPtr < iGlyphDataEnd)
- *iGlyphDataPtr++ = (TUint8)aByte;
- else
- iOverflow = 1 ;
- iBytesNeeded++;
- }
- inline void COpenFontRasterizerContext::EndGlyph()
- {
- iGlyphData->SetBytesNeeded(iBytesNeeded + 4);
- iGlyphData = 0 ;
- }
- inline TBool TOpenFontGlyphData::Overflow() const
- {
- return iBytesNeeded > iBitmapBufferSize;
- }
- inline TInt TOpenFontGlyphData::BytesNeeded() const
- {
- return iBytesNeeded;
- }
- inline TPtrC8 TOpenFontGlyphData::Bitmap() const
- {
- return TPtrC8(iBitmap,iBytesNeeded);
- }
- inline const TUint8* TOpenFontGlyphData::BitmapPointer() const
- {
- return iBitmap;
- }
- inline const TOpenFontCharMetrics* TOpenFontGlyphData::Metrics() const
- {
- return iMetrics;
- }
- inline TUint8* TOpenFontGlyphData::BufferStart()
- {
- return iBitmapBuffer;
- }
- inline TUint8* TOpenFontGlyphData::BufferEnd()
- {
- return iBitmapBuffer + iBitmapBufferSize;
- }
- inline void TOpenFontGlyphData::SetBytesNeeded(TInt aBytes)
- {
- iBytesNeeded = aBytes;
- }
- inline void TOpenFontGlyphData::SetBitmapPointer(const TUint8* aBitmap)
- {
- iBitmap = aBitmap;
- }
- inline void TOpenFontGlyphData::SetMetricsPointer(const TOpenFontCharMetrics* aMetrics)
- {
- iMetrics = aMetrics;
- }
- inline void TOpenFontGlyphData::SetPointersToInternalBuffers()
- {
- iBitmap = iBitmapBuffer;
- iMetrics = &iMetricsBuffer;
- }
- inline void TOpenFontGlyphData::SetMetrics(TOpenFontCharMetrics& aMetrics)
- {
- iMetricsBuffer = aMetrics;
- iMetrics = &iMetricsBuffer;
- }
- inline void TOpenFontGlyphData::SetGlyphIndex(TInt aGlyphIndex)
- {
- iGlyphIndex = aGlyphIndex;
- }
- #line 2117
- inline COpenFontRasterizer* COpenFontRasterizer::NewL(TUid aInterfaceImplUid)
- {
- return reinterpret_cast <COpenFontRasterizer*> (
- REComSession::CreateImplementationL(
- aInterfaceImplUid,
- (((TInt)&(((COpenFontRasterizer *)0x1000)-> iDtor_ID_Key))-0x1000) ));
- }
- inline COpenFontRasterizer::~COpenFontRasterizer()
- {
- REComSession::DestroyedImplementation(iDtor_ID_Key);
- }
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\fntstore.h" /* stack depth 5 */
- class CFontStoreFile;
- class CFontBitmap;
- class RReadStream;
- class TTypefaceFontBitmap;
- class TCharacterMetrics
- {
- public:
- __declspec(dllexport) TCharacterMetrics();
- TInt16 iAscentInPixels;
- TInt16 iHeightInPixels;
- TInt16 iLeftAdjustInPixels;
- TInt16 iMoveInPixels;
- TInt16 iRightAdjustInPixels;
- };
- class TAlgStyle
- #line 53
- {
- public:
- __declspec(dllexport) TAlgStyle();
- __declspec(dllexport) void SetIsBold(TBool aIsBold);
- __declspec(dllexport) void SetIsItalic(TBool aIsItalic);
- __declspec(dllexport) void SetIsMono(TBool aIsMono);
- __declspec(dllexport) void SetWidthFactor(TInt aWidthFactor);
- __declspec(dllexport) void SetHeightFactor(TInt aHeightFactor);
- __declspec(dllexport) TBool IsBold() const;
- __declspec(dllexport) TBool IsItalic() const;
- __declspec(dllexport) TBool IsMono() const;
- __declspec(dllexport) TInt WidthFactor() const;
- __declspec(dllexport) TInt HeightFactor() const;
- __declspec(dllexport) TBool operator==(const TAlgStyle& aAlgStyle) const;
- public:
- TInt iBaselineOffsetInPixels;
- private:
- enum
- {
- EBold=1,
- EItalic=2,
- EMono=4,
- };
- TInt8 iFlags;
- TInt8 iWidthFactor;
- TInt8 iHeightFactor;
- };
- #line 94
- class CBitmapFont : public CFont
- {
- friend class CFontStore;
- private:
- CBitmapFont(RHeap* aHeap,const TFontSpec& aFontSpecInTwips, const TAlgStyle& aAlgStyle, CFontBitmap* aFontBitmap);
- CBitmapFont(RHeap* aHeap,const TFontSpec& aFontSpecInTwips, const TAlgStyle& aAlgStyle, COpenFont* aOpenFont);
- void ConstructL();
- ~CBitmapFont();
- static CBitmapFont* NewL(RHeap* aHeap, const TFontSpec& aFontSpecInTwips, const TAlgStyle& aAlgStyle, CFontBitmap* aFontBitmap);
- static CBitmapFont* NewL(RHeap* aHeap, const TFontSpec& aFontSpecInTwips, const TAlgStyle& aAlgStyle, COpenFont* aOpenFont);
- private:
- __declspec(dllexport) virtual TUid DoTypeUid() const;
- __declspec(dllexport) virtual TInt DoHeightInPixels() const;
- __declspec(dllexport) virtual TInt DoAscentInPixels() const;
- __declspec(dllexport) virtual TInt DoCharWidthInPixels(TChar aChar) const;
- __declspec(dllexport) virtual TInt DoTextWidthInPixels(const TDesC &aText) const;
- __declspec(dllexport) virtual TInt DoBaselineOffsetInPixels() const;
- __declspec(dllexport) virtual TInt DoTextCount(const TDesC &aText, TInt aWidthInPixels) const;
- __declspec(dllexport) virtual TInt DoTextCount(const TDesC &aText, TInt aWidthInPixels, TInt &aExcessWidthInPixels) const;
- __declspec(dllexport) virtual TInt DoMaxCharWidthInPixels() const;
- __declspec(dllexport) virtual TInt DoMaxNormalCharWidthInPixels() const;
- __declspec(dllexport) virtual TFontSpec DoFontSpecInTwips() const;
- __declspec(dllexport) virtual TInt DoExtendedFunction(TUid aFunctionId, TAny* aParam = 0 ) const;
- public:
- TUid Uid() const;
- __declspec(dllexport) TCharacterMetrics CharacterMetrics(TInt aCode,const TUint8*& aBytes) const;
- __declspec(dllexport) TBool GetCharacterData(TInt aSessionHandle, TInt aCode, TOpenFontCharMetrics& aMetrics, const TUint8*& aBitmap) const;
- __declspec(dllexport) TBool Rasterize(TInt aSessionHandle,TInt aCode,TOpenFontGlyphData* aGlyphData) const;
- __declspec(dllexport) void GetFontMetrics(TOpenFontMetrics& aMetrics) const;
- __declspec(dllexport) TBool GetFaceAttrib(TOpenFontFaceAttrib& aAttrib) const;
- __declspec(dllexport) TInt BitmapEncoding() const;
- __declspec(dllexport) TBool HasCharacterL(TInt aCode) const;
- __declspec(dllexport) TBool CharacterNeedsToBeRasterized(TInt aSessionHandle,TInt aCode) const;
- __declspec(dllexport) void operator delete(TAny*);
- inline TBool IsOpenFont() const;
- inline COpenFont* OpenFont() const;
- inline TGlyphBitmapType GlyphBitmapType() const;
- private:
- TInt Width(TInt aNum) const;
- TInt Height(TInt aNum) const;
- CFontBitmap* FontBitmap() const;
- private:
- TFontSpec iFontSpecInTwips;
- public:
- TAlgStyle iAlgStyle;
- private:
- RHeap* iHeap;
- TInt iFontBitmapOffset;
- COpenFont* iOpenFont;
- };
- class CFontStore : public CTypefaceStore
- #line 167
- {
- private:
- CFontStore();
- void ConstructL();
- public:
- __declspec(dllexport) static CFontStore* NewL(RHeap* aHeap);
- __declspec(dllexport) ~CFontStore();
- __declspec(dllexport) TUid AddFileL(const TDesC& aName);
- __declspec(dllexport) void RemoveFile(TUid aFileUid);
- __declspec(dllexport) TInt GetNearestFontInTwips(CFont *&aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontInPixels(CFont *&aFont, const TFontSpec &aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToDesignHeightInTwips(CFont *&aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToDesignHeightInPixels(CFont *&aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetNearestFontInTwips(CFont *&aFont, const TOpenFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontInPixels(CFont *&aFont, const TOpenFontSpec &aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToDesignHeightInTwips(CFont *&aFont, const TOpenFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToDesignHeightInPixels(CFont *&aFont, const TOpenFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TOpenFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont, const TOpenFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetFontById(CFont *&aFont,TUid aUid,const TAlgStyle& aAlgStyle);
- __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) TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) void InstallRasterizerL(COpenFontRasterizer* aRasterizer);
- __declspec(dllexport) void DeleteSessionCache(TInt aSessionHandle);
- inline TGlyphBitmapType DefaultBitmapType() const;
- inline void SetDefaultBitmapType(TGlyphBitmapType aType);
- TInt BitmapFontFilesCount() const;
- private:
- void InternalizeFontStoreFileL(CFontStoreFile* aFontStoreFile, TInt aFontVersion);
- TTypeface* GetNearestTypeface(const TTypeface& aTypeface) const;
- TTypefaceFontBitmap GetNearestTypefaceFontBitmap(const TFontSpec& aFontSpecInPixels, TInt aMaxHeight = 0);
- CFontBitmap* GetFontBitmapById(TUid aUid);
- CBitmapFont* FindFont(const TFontSpec& aFontSpecInPixels,const TAlgStyle& aAlgStyle,TUid aUid) const;
- CBitmapFont* FindFont(const TOpenFontSpec& aFontSpecInPixels,const TAlgStyle& aAlgStyle) const;
- CBitmapFont* NewFontL(const TFontSpec& aFontSpecInTwips,const TAlgStyle& aAlgStyle,CFontBitmap* aFontBitmap);
- CBitmapFont* NewFontL(const TOpenFontSpec& aFontSpecInTwips,const TAlgStyle& aAlgStyle,COpenFont* aOpenFont);
- TInt VerticalPixelsToTwips(TInt aPixelHeight) const;
- TInt VerticalTwipsToPixels(TInt aTwipsHeight) const;
- TInt GetNearestBitmapFontInPixels(CBitmapFont *&aFont, TFontSpec &aFontSpec, TInt aMaxHeight = 0);
- TInt GetNearestOpenFontInPixels(CBitmapFont *&aFont, TOpenFontSpec &aFontSpec, const TOpenFontSpec& aIdealFontSpecInPixels, TInt aMaxHeight = 0);
- TInt GetNearestFontInPixels(CFont *&aFont, const TOpenFontSpec &aFontSpec, TInt aMaxHeight);
- void UpdateTypefaceSupportListL();
- public:
- TInt iKPixelWidthInTwips;
- TInt iKPixelHeightInTwips;
- private:
- RFs iFs;
- RHeap* iHeap;
- CArrayPtrFlat<CFontStoreFile> iFontStoreFileList;
- CArrayPtrFlat<TTypeface> iTypefaceList;
- CArrayPtrFlat<CFontBitmap> iFontBitmapList;
- CArrayFixFlat<TTypefaceFontBitmap> iTypefaceFontBitmapList;
- CArrayPtrFlat<COpenFontFile> iOpenFontFileList;
- CArrayFixFlat<TTypefaceSupport> iOpenFontTypefaceSupportList;
- CArrayPtrFlat<COpenFontRasterizer> iOpenFontRasterizerList;
- COpenFontSessionCacheList* iOpenFontSessionCacheList;
- TInt iOpenFontUid;
- TGlyphBitmapType iDefaultBitmapType;
- };
- inline TBool CBitmapFont::IsOpenFont() const
- {
- return iOpenFont != 0 ;
- }
- inline COpenFont* CBitmapFont::OpenFont() const
- {
- return iOpenFont;
- }
- inline TGlyphBitmapType CBitmapFont::GlyphBitmapType() const
- #line 275
- {
- return iFontSpecInTwips.iFontStyle.BitmapType();
- }
- inline TGlyphBitmapType CFontStore::DefaultBitmapType() const
- {
- return iDefaultBitmapType;
- }
- inline void CFontStore::SetDefaultBitmapType(TGlyphBitmapType aType)
- {
- iDefaultBitmapType = aType;
- }
- #line 23 "C:\Symbian\9.1\S60_3rd\epoc32\include\w32std.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\fbs.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitmap.h" /* stack depth 7 */
- #line 20
- const TUid KCBitwiseBitmapUid={268435520};
- const TUid KCBitwiseBitmapHardwareUid={0x10009a3d};
- const TUid KMultiBitmapFileImageUid={268435522};
- const TInt KCompressionBookMarkThreshold=0x2000;
- class CChunkPile;
- class TCompressionBookMark;
- enum TBitmapfileCompression
- {
- ENoBitmapCompression,
- EByteRLECompression,
- ETwelveBitRLECompression,
- ESixteenBitRLECompression,
- ETwentyFourBitRLECompression,
- EThirtyTwoUBitRLECompression,
- ERLECompressionLast
- };
- class TRgb24bit
- {
- public:
- TUint8 iRed;
- TUint8 iGreen;
- TUint8 iBlue;
- };
- class SEpocBitmapHeader
- {
- public:
- enum TColor
- {
- ENoColor=0,
- EColor=1,
- EColorAlpha=2,
- EColorUndefined=8
- };
- public:
- TInt iBitmapSize;
- TInt iStructSize;
- TSize iSizeInPixels;
- TSize iSizeInTwips;
- TInt iBitsPerPixel;
- TInt iColor;
- TInt iPaletteEntries;
- TBitmapfileCompression iCompression;
- };
- class TLineScanningPosition
- {
- public:
- TLineScanningPosition(TUint32* aSrcDataPtr): iSrcDataPtr((TUint8*)aSrcDataPtr), iCursorPos(0), iScanLineBuffer(0 ) {}
- public:
- TUint8* iSrcDataPtr;
- TInt iCursorPos;
- HBufC8* iScanLineBuffer;
- };
- class CShiftedFileStore;
- class CBitwiseBitmap
- {
- friend class CFbTop;
- friend class CFbClient;
- friend class CFbsBitmap;
- friend class CBitmapObject;
- friend class CFbsBitmapAsyncStreamer;
- friend class CleanupDelete<CBitwiseBitmap>;
- public:
- __declspec(dllexport) TUid Uid() const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream,const CFbsBitmap& aHandleBitmap) const;
- __declspec(dllexport) void ExternalizeRectangleL(RWriteStream& aStream,const TRect& aRect,const CFbsBitmap& aHandleBitmap) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) static void InternalizeHeaderL(RReadStream& aStream,SEpocBitmapHeader& aHeader);
- __declspec(dllexport) TSize SizeInPixels() const;
- __declspec(dllexport) TSize SizeInTwips() const;
- __declspec(dllexport) TDisplayMode DisplayMode() 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) void GetPixel(TRgb& aColor,const TPoint& aPos,TUint32* aBase) const;
- __declspec(dllexport) TInt GetScanLinePtr(TUint32*& aSlptr, TPoint& aPixel,TInt aLength, TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- __declspec(dllexport) TInt GetScanLinePtr(TUint32*& aSlptr, TInt& aLength, TPoint& aPixel,TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- __declspec(dllexport) void GetScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TBool aDither,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- __declspec(dllexport) void GetScanLine(TUint32*& aSlptr, TDes8& aBuf,const TPoint& aPixel,TInt aLength,TBool aDither,const TPoint& aDitherOffset,TDisplayMode aDispMode) const;
- __declspec(dllexport) void GetScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TBool aDither,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase) const;
- __declspec(dllexport) void GetVerticalScanLine(TDes8& aBuf,TInt aX,TBool aDither,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase) const;
- __declspec(dllexport) void StretchScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aClipStrchX,TInt aClipStrchLen,TInt aStretchLength,TInt aOrgX,TInt aOrgLen,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase) const;
- __declspec(dllexport) void StretchScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aClipStrchX,TInt aClipStrchLen,TInt aStretchLength,TInt aOrgX,TInt aOrgLen,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- __declspec(dllexport) TUint32* ScanLineAddress(TUint32* aBase,TUint aY) const;
- __declspec(dllexport) TBool IsMonochrome(TUint32* aBase) const;
- __declspec(dllexport) void Compress(TUint8* aNewData,TUint8* aOldData);
- __declspec(dllexport) TBool IsLargeBitmap() const;
- __declspec(dllexport) TInt CompressData();
- __declspec(dllexport) void SetCompressionBookmark(TLineScanningPosition& aLineScanningPosition, TUint32* aBase, const CFbsBitmap* aFbsBitmap);
- __declspec(dllexport) TInt HardwareBitmapHandle() const;
- __declspec(dllexport) TBool IsCompressedInRAM() const;
- __declspec(dllexport) TBool IsCompressed() const;
- private:
- __declspec(dllexport) void operator delete(TAny*);
- void operator delete(TAny*, TAny*) {}
- __declspec(dllexport) CBitwiseBitmap(RHeap* aHeap,CChunkPile* aPile);
- __declspec(dllexport) ~CBitwiseBitmap();
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TInt Construct(const TSize& aSize,TDisplayMode aDispMode,TUid aCreatorUid);
- __declspec(dllexport) void ConstructL(RFs& aFs,const TDesC& aFilename,TInt32 aId,TUint aFileOffset);
- __declspec(dllexport) void ConstructL(RFile& aFile,TInt32 aId,TUint aFileOffset);
- __declspec(dllexport) void ConstructL(CShiftedFileStore* aFileStore,TStreamId aStreamId);
- __declspec(dllexport) TInt Resize(const TSize& aSize);
- private:
- void GenerateLineFromCompressedTwelveBitData(TUint8* aDestBuffer, const TPoint& aPixel,TInt aLength,TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- void GenerateLineFromCompressedEightBitData(TUint8* aDestBuffer, const TPoint& aPixel,TInt aLength,TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- TUint8 GetGrayPixelEx(TInt aX,TUint32* aScanLineAddress) const;
- TRgb GetRgbPixelEx(TInt aX,TUint32* aScanLineAddress) const;
- void GetRgbPixelExMany(TInt aX,TUint32* aScanlinePtr,TUint32* aDest,TInt aLength) const;
- void GetRgbPixelExMany16M(TInt aX,TUint32* aScanlinePtr,TUint8* aDest,TInt aLength) const;
- void GetScanLineGray2(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TBool aDither,const TPoint& aDitherOffset,TUint32* aScanlinePtr) const;
- void GetScanLineGray4(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TBool aDither,const TPoint& aDitherOffset,TUint32* aScanlinePtr) const;
- void GetScanLineGray16(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineGray256(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColor16(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColor256(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColor4K(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColor64K(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColor16M(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColor16MU(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineColorRgb(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineExBits(TDes8& aBuf,TInt aX,TInt aLength,TUint32* aScanlinePtr) const;
- void GetScanLineExBytes(TDes8& aBuf,TInt aX,TInt aLength,TUint32* aScanlinePtr) const;
- void DoExternalizeDataCompressedL(RWriteStream& aStream,TUint8* aData,TInt aSizeInBytes) const;
- void DoExternalizeByteDataCompressedL(RWriteStream& aStream,TUint8* aData,TInt aSizeInBytes) const;
- void DoExternalizeTwelveBitDataCompressedL(RWriteStream& aStream,TUint8* aData,TInt aSizeInBytes) const;
- void DoExternalizeSixteenBitDataCompressedL(RWriteStream& aStream,TUint8* aData,TInt aSizeInBytes) const;
- void DoExternalizeTwentyFourBitDataCompressedL(RWriteStream& aStream,TUint8* aData,TInt aSizeInBytes) const;
- void DoExternalizeThirtyTwoUBitDataCompressedL(RWriteStream& aStream,TUint8* aData,TInt aSizeInBytes) const;
- TInt SizeOfDataCompressed(TUint8* aData,TInt aSizeInBytes) const;
- TInt SizeOfByteDataCompressed(TUint8* aData,TInt aSizeInBytes) const;
- TInt SizeOfTwelveBitDataCompressed(TUint8* aData,TInt aSizeInBytes) const;
- TInt SizeOfSixteenBitDataCompressed(TUint8* aData,TInt aSizeInBytes) const;
- TInt SizeOfTwentyFourBitDataCompressed(TUint8* aData,TInt aSizeInBytes) const;
- TInt SizeOfThirtyTwoUBitDataCompressed(TUint8* aData,TInt aSizeInBytes) const;
- TBool TrueColorPointerCompare(TUint8* aColorPointer,TUint8 aComponent1,TUint8 aComponent2,TUint8 aComponent3) const;
- void DoInternalizeL(RReadStream& aStream,TInt aSrceSize,TUint32* aBase);
- void DoInternalizeCompressedDataL(RReadStream& aStream,TInt aSrceSize,TUint32* aBase,TBitmapfileCompression aCompression);
- void DoDecompressByteData(TUint8* aDestBuffer,TInt aDestSize,TUint8* aSrceBuffer,TInt aSrceSize);
- void DoDecompressByteDataAltL(RReadStream& aStream,TInt aSrceSizeInBytes,TUint32* aBase);
- void DoDecompressTwelveBitData(TUint8* aDestBuffer,TInt aDestSize,TUint8* aSrceBuffer,TInt aSrceSize);
- void DoDecompressTwelveBitDataAltL(RReadStream& aStream,TInt aSrceSizeInBytes,TUint32* aBase);
- void DoDecompressSixteenBitData(TUint8* aDestBuffer,TInt aDestSize,TUint8* aSrceBuffer,TInt aSrceSize);
- void DoDecompressSixteenBitDataAltL(RReadStream& aStream,TInt aSrceSizeInBytes,TUint32* aBase);
- void DoDecompressTwentyFourBitData(TUint8* aDestBuffer,TInt aDestSize,TUint8* aSrceBuffer,TInt aSrceSize);
- void DoDecompressTwentyFourBitDataAltL(RReadStream& aStream,TInt aSrceSizeInBytes,TUint32* aBase);
- void DoDecompressThirtyTwoUBitData(TUint8* aDestBuffer,TInt aDestSize,TUint8* aSrceBuffer,TInt aSrceSize);
- void DoDecompressThirtyTwoUBitDataAltL(RReadStream& aStream,TInt aSrceSizeInBytes,TUint32* aBase);
- void DoStretchScanLine(TDes8& aBuf,TInt x,TInt y,TInt aClipStrchX,TInt aClipStrchLen,TInt aStretchLength,TInt aOrgX,TInt aOrgLen,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase,TLineScanningPosition& aLineScanningPosition) const;
- void DoCompressScanLine(TDes8& aBuf,TInt x,TInt y,TInt aClipStrchX,TInt aClipStrchLen,TInt aStretchLength,TInt aOrgX,TInt aOrgLen,const TPoint& aDitherOffset,TDisplayMode aDispMode,TUint32* aBase,TLineScanningPosition& aLineScanningPosition) const;
- TUint32 HashTo1bpp(TUint32 aGray256,TBool aOddX,TBool aOddY) const;
- TUint32 HashTo2bpp(TUint32 aGray256,TInt aDitherIndex) const;
- TBool IsWordMonochrome(TUint32 aWord) const;
- TUint32* DataAddress() const;
- static void WhiteFill(TUint8* aData,TInt aDataSize,TDisplayMode aDispMode);
- static TInt ByteWidth(TInt aPixelWidth,TDisplayMode aDispMode);
- static TInt Bpp(TDisplayMode aDispMode);
- static TInt IsColor(TDisplayMode aDispMode);
- static TDisplayMode DisplayMode(TInt aBpp,TInt aColor);
- static TBitmapfileCompression CompressionType(TInt aBpp, TInt aColor);
- TInt DoGetScanLinePtr(TUint32*& aSlptr, TPoint& aPixel,TInt aLength, TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- void GenerateLineFromCompressedSixteenBitData(TUint8* aDestBuffer, const TPoint& aPixel,TInt aLength, TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- TDisplayMode InitialDisplayMode() const;
- TInt SetDisplayMode(TDisplayMode aDisplayMode, TUint32* aDataAddress);
- TInt DisplayModeArgCheck(TDisplayMode aDisplayMode, TUint32* aDataAddress) const;
- void ChangeDisplayMode( TDisplayMode aNewDisplayMode,
- TInt aScanLineWidthNew,
- TUint8* aDataAddrNew,
- TUint32* aDataAddress,
- TInt aYStart,
- TInt aYInc,
- TInt aYEnd);
- void UpdateBitmapProperties(TDisplayMode aNewDisplayMode);
- TInt SwapWidthAndHeight(TUint32* aDataAddress);
- void CopyOldData(TUint8* aDest, const TUint8* aSrc, TInt aNewByteWidth, const TSize aNewSize);
- void DecompressOldData(TUint8* aDest, TInt aNewByteWidth, const TSize aNewSize, HBufC8* aScanLineBuf);
- TInt ResizeConditionsCheck(const TSize& aSize, TInt aNewByteWidth, TInt& aNewBitmapSize) const;
- TInt Alloc(TInt aNewBitmapSize, const TSize& aNewSize, TUint8*& aNewBuf, TInt& aNewDataOffset);
- void MoveData(TUint8* aDest, TUint8* aSrc, TInt aNewByteWidth, const TSize& aNewSize, HBufC8* aScanLineBuf);
- void ReinitializeHeader(const TSize& aNewSize, TInt aNewBitmapSize);
- void Free(TUint8* aSrc, TBool aLargeBmp, HBufC8* aScanLineBuf);
- void GenerateLineFromCompressed24BitData(TUint8* aDestBuffer, const TPoint& aPixel,TInt aLength, TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- void GenerateLineFromCompressed32UBitData(TUint8* aDestBuffer, const TPoint& aPixel,TInt aLength, TUint32* aBase, TLineScanningPosition& aLineScanningPosition) const;
- void AdjustXCoord(TInt& aX) const;
- void GetLineScanPos(TLineScanningPosition& aLineScanPos,
- const TCompressionBookMark*& aComprBookMark,
- const TUint8* aBase) const;
- void UpdateBookMark(const TLineScanningPosition& aLineScanPos,
- TCompressionBookMark* aComprBookMark,
- const TUint8* aBase) const;
- void GetScanLineColor16MA(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TUint32* aScanlinePtr) const;
- private:
- TUid iUid;
- struct TSettings
- {
- TSettings(TDisplayMode aDisplayMode);
- void SetDisplayModes(TDisplayMode aDisplayMode);
- void SetCurrentDisplayMode(TDisplayMode aDisplayMode);
- TDisplayMode CurrentDisplayMode() const;
- TDisplayMode InitialDisplayMode() const;
- void SetLargeBitmap(TBool aLargeBitmap);
- TBool IsLargeBitmap() const;
- TUint32 iData;
- } iSettings;
- RHeap* iHeap;
- CChunkPile* iPile;
- TInt iByteWidth;
- SEpocBitmapHeader iHeader;
- RChunk iLargeChunk;
- TInt iDataOffset;
- TBool iIsCompressedInRAM;
- };
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\fbs.h" /* stack depth 6 */
- const TUid KCFbsFontUid = { 268435518 };
- const TUid KMultiBitmapRomImageUid = { 268435521 };
- const TUint32 KFontBitmapServerUidValue = 0x10003a16;
- const TUid KFontBitmapServerUid = { KFontBitmapServerUidValue };
- __declspec(dllexport) TInt FbsStartup();
- __declspec(dllexport) void DummyReserved1();
- class SCharWidth
- {
- public:
- TInt iLeftAdjust;
- TInt iRightAdjust;
- TInt iMove;
- TInt iWidth;
- };
- class CFbsRalCache;
- class RFbsSession : protected RSessionBase
- {
- friend class RClean;
- friend class TestFbs;
- friend class CTBitmap;
- friend class CTClean;
- friend class CTFbs;
- friend class CFbsBitmap;
- friend class CFbsBitmapAsyncStreamer;
- public:
- __declspec(dllexport) RFbsSession();
- __declspec(dllexport) static TInt Connect();
- __declspec(dllexport) static TInt Connect(RFs& aFileServer);
- __declspec(dllexport) static void Disconnect();
- __declspec(dllexport) static RFbsSession* GetSession();
- __declspec(dllexport) void CallBack();
- __declspec(dllexport) void SetCallBack(TCallBack aCallBack);
- __declspec(dllexport) void ResetCallBack();
- __declspec(dllexport) TInt ResourceCount();
- __declspec(dllexport) TInt SendCommand(TInt aMessage,TInt aInt0=0,TInt aInt1=0,TInt aInt2=0,TInt aInt3=0) const;
- TInt SendCommand(TInt aMessage, const TIpcArgs& aArgs) const;
- __declspec(dllexport) TVersion Version();
- __declspec(dllexport) TUint8* HeapBase() const;
- __declspec(dllexport) TInt GetHeapSizes(TInt& aDefaultHeap, TInt& aSmallBmpHeap, TInt& aBigBmpChunk);
- TInt SessionHandle() const { return Handle(); }
- TInt AllocScanLineBuffer(TInt aSize);
- HBufC8* GetScanLineBuffer();
- void SetCallBackPtr(TInt* aBitmapHandle)const;
- HBufC8* GetDecompressionBuffer(TInt aSize);
- private:
- TBool LookupBitmapInROM(const TDesC& aFilename, TAny*& aAddr);
- RFs& FileServer() { return *((RFs*)iSpare); }
- static TInt DoAlloc(RFbsSession*& aNewSession);
- TInt DoConnect(RFs& aFileServer);
- private:
- TInt iConnections;
- mutable TCallBack iCallBack;
- RChunk iSharedChunk;
- RMutex iAddressMutex;
- RChunk iLargeBitmapChunk;
- RFs iFileServer;
- CFbsRalCache* iRomFileAddrCache;
- HBufC8* iDecompressionBuffer;
- HBufC8* iScanLineBuffer;
- TUint32* iSpare;
- };
- #line 133
- class CFbsFont: public CFont
- {
- friend class CFbsTypefaceStore;
- private:
- virtual TUid DoTypeUid() const { return KCFbsFontUid; }
- __declspec(dllexport) virtual TInt DoHeightInPixels() const;
- __declspec(dllexport) virtual TInt DoAscentInPixels() const;
- __declspec(dllexport) virtual TInt DoCharWidthInPixels(TChar aChar) const;
- __declspec(dllexport) virtual TInt DoTextWidthInPixels(const TDesC& aText) const;
- __declspec(dllexport) virtual TInt DoBaselineOffsetInPixels() const;
- __declspec(dllexport) virtual TInt DoTextCount(const TDesC& aText,TInt aWidthInPixels) const;
- __declspec(dllexport) virtual TInt DoTextCount(const TDesC& aText,TInt aWidthInPixels,TInt& aExcessWidthInPixels) const;
- __declspec(dllexport) virtual TInt DoMaxCharWidthInPixels() const;
- __declspec(dllexport) virtual TInt DoMaxNormalCharWidthInPixels() const;
- __declspec(dllexport) virtual TFontSpec DoFontSpecInTwips() const;
- __declspec(dllexport) virtual CFont::TCharacterDataAvailability DoGetCharacterData(TUint aCode, TOpenFontCharMetrics& aMetrics,
- const TUint8*& aBitmap, TSize& aBitmapSize) const;
- __declspec(dllexport) virtual TInt DoExtendedFunction(TUid aFunctionId, TAny* aParam = 0 ) const;
- public:
- __declspec(dllexport) TBool GetFontMetrics(TOpenFontMetrics& aMetrics) const;
- __declspec(dllexport) TInt TextWidthInPixels(const TDesC& aText) const;
- __declspec(dllexport) void TextWidthInPixels(const TDesC& aText,SCharWidth& aCharWidth) const;
- __declspec(dllexport) TInt Handle() const;
- __declspec(dllexport) TCharacterMetrics CharacterMetrics(TInt aCode,const TUint8*& aBytes) const;
- __declspec(dllexport) TInt RawTextWidthInPixels(const TDesC& aText) const;
- __declspec(dllexport) TBool GetFaceAttrib(TOpenFontFaceAttrib& aAttrib) const;
- __declspec(dllexport) TBool IsOpenFont() const;
- __declspec(dllexport) TBool HasCharacter(TInt aCode) const;
- protected:
- __declspec(dllexport) CFbsFont();
- __declspec(dllexport) ~CFbsFont();
- __declspec(dllexport) CFbsFont(const CFbsFont& aFont);
- __declspec(dllexport) CBitmapFont* Address() const;
- __declspec(dllexport) TInt Duplicate(TInt aHandle);
- __declspec(dllexport) void Reset();
- protected:
- RFbsSession* iFbs;
- CBitmapFont* iAddressPointer;
- TInt iHandle;
- TInt iServerHandle;
- };
- class CDirectFileStore;
- #line 201
- class CFbsBitmap : public CBase
- {
- friend class TBitmapUtil;
- friend class CBitwiseBitmap;
- friend class CFbsBitmapAsyncStreamer;
- public:
- __declspec(dllexport) CFbsBitmap();
- __declspec(dllexport) ~CFbsBitmap();
- __declspec(dllexport) void Reset();
- __declspec(dllexport) static TInt ScanLineLength(TInt aLength,TDisplayMode aDispMode);
- __declspec(dllexport) TDisplayMode DisplayMode() const;
- __declspec(dllexport) TDisplayMode InitialDisplayMode() const;
- __declspec(dllexport) TInt SetDisplayMode(TDisplayMode aDisplayMode);
- __declspec(dllexport) TInt Create(const TSize& aSizeInPixels,TDisplayMode aDispMode);
- __declspec(dllexport) TInt Duplicate(TInt aHandle);
- __declspec(dllexport) TBool IsRomBitmap() const;
- __declspec(dllexport) void SetRomBitmapL(CBitwiseBitmap* aRomBitmapPointer,TInt& aBitmapSizeInBytes);
- __declspec(dllexport) TInt Load(const TDesC& aFileName,TInt32 aId=0,TBool aShareIfLoaded=ETrue);
- __declspec(dllexport) TInt Load(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset);
- __declspec(dllexport) TInt LoadAndCompress(const TDesC& aFileName,TInt32 aId=0,TBool aShareIfLoaded=ETrue);
- __declspec(dllexport) TInt LoadAndCompress(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset);
- __declspec(dllexport) TInt Load(RFile& aFile,TInt32 aId=0,TBool aShareIfLoaded=ETrue);
- __declspec(dllexport) TInt Load(RFile& aFile,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset);
- __declspec(dllexport) TInt LoadAndCompress(RFile& aFile,TInt32 aId=0,TBool aShareIfLoaded=ETrue);
- __declspec(dllexport) TInt LoadAndCompress(RFile& aFile,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset);
- __declspec(dllexport) TInt Save(const TDesC& aFilename);
- __declspec(dllexport) TInt Save(RFile& aFile);
- __declspec(dllexport) static void StoreL(const TDesC& aFilename,TInt aNumSources,const TDesC* aSources[],TInt32 aSourceIds[]);
- __declspec(dllexport) static void StoreL(RFile& aFile,TInt aNumSources,const TDesC* aSources[],TInt32 aSourceIds[]);
- __declspec(dllexport) void GetScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aLength,TDisplayMode aDispMode) const;
- __declspec(dllexport) void SetScanLine(TDes8& aBuf,TInt aY) const;
- __declspec(dllexport) void GetVerticalScanLine(TDes8& aBuf,TInt aX,TDisplayMode aDispMode) const;
- __declspec(dllexport) void GetVerticalScanLine(TDes8& aBuf,TInt aX,const TPoint& aDitherOffset,TDisplayMode aDispMode) const;
- __declspec(dllexport) TInt Handle() const;
- __declspec(dllexport) SEpocBitmapHeader Header() const;
- __declspec(dllexport) TInt HorizontalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TInt HorizontalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) void GetPixel(TRgb& aColor,const TPoint& aPixel) const;
- __declspec(dllexport) TInt Resize(const TSize& aSizeInPixels);
- __declspec(dllexport) TSize SizeInPixels() const;
- __declspec(dllexport) TSize SizeInTwips() const;
- __declspec(dllexport) void SetSizeInTwips(const MGraphicsDeviceMap* aMap);
- __declspec(dllexport) void SetSizeInTwips(const TSize& aSizeInTwips);
- __declspec(dllexport) void ExternalizeL(RWriteStream& aStream) const;
- __declspec(dllexport) void ExternalizeRectangleL(RWriteStream& aStream,const TRect& aRect) const;
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) TInt Compress();
- __declspec(dllexport) TInt VerticalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TInt VerticalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) static TBool IsFileInRom(const TDesC& aFilename,TUint32*& aWord);
- __declspec(dllexport) static TBool IsFileInRom(RFile& aFile,TUint32*& aWord);
- __declspec(dllexport) TBool IsMonochrome() const;
- __declspec(dllexport) TBool IsLargeBitmap() const;
- __declspec(dllexport) void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const;
- __declspec(dllexport) void SetPalette(CPalette* aPalette);
- __declspec(dllexport) TInt GetPalette(CPalette*& aPalette) const;
- __declspec(dllexport) TUint32* DataAddress() const;
- __declspec(dllexport) TInt CreateHardwareBitmap(const TSize& aSizeInPixels,TDisplayMode aDispMode,TUid aCreatorUid);
- __declspec(dllexport) TInt HardwareBitmapHandle() const;
- __declspec(dllexport) void LockHeap(TBool aAlways=EFalse) const;
- __declspec(dllexport) void UnlockHeap(TBool aAlways=EFalse) const;
- __declspec(dllexport) void LockHeapLC(TBool aAlways=EFalse) const;
- __declspec(dllexport) static void UnlockHeap(TAny* aFbsBitmap);
- __declspec(dllexport) TBool IsCompressedInRAM() const;
- __declspec(dllexport) TInt SwapWidthAndHeight();
- __declspec(dllexport) static HBufC8* GetDecompressionBuffer(TInt aSize);
- protected:
- __declspec(dllexport) void GetScanLine(TDes8& aBuf,const TPoint& aPixel,TInt aLength,const TPoint& aDitherOffset,TDisplayMode aDispMode) const;
- CBitwiseBitmap* Address() const;
- void DoSaveL(RFile& aFile);
- TInt DoCreate(const TSize& aSizeInPixels,TDisplayMode aDispMode,TUid aCreatorUid);
- private:
- TInt DoLoad(RFile& aFile,TUint32* aRomPointer,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset);
- TInt DoLoadAndCompress(RFile& aFile,TUint32* aRomPointer,TInt32 aId,TBool aShareIfLoaded,TUint aFileOffset);
- TBool LoadShiftedRomBmpL(const TDesC& aFileName,TInt32 aId,TUint aFileOffset);
- static void DoStoreL(CDirectFileStore* aFileStore,CFbsBitmap* aBitmap,TInt aNumSources,const TDesC* aSources[],TInt32 aSourceIds[]);
- protected:
- RFbsSession* iFbs;
- CBitwiseBitmap* iAddressPointer;
- CBitwiseBitmap* iRomPointer;
- TInt iHandle;
- TInt iServerHandle;
- };
- class CDirectFileStore;
- class CFbsBitmapAsyncStreamer : public CBase
- {
- public:
- enum TMode {ELoad, ESave};
- public:
- __declspec(dllexport) ~CFbsBitmapAsyncStreamer();
- __declspec(dllexport) static CFbsBitmapAsyncStreamer* NewL(TMode aMode);
- __declspec(dllexport) TInt Load(const TDesC& aFilename,TInt32 aId,TInt& aScanLines);
- __declspec(dllexport) TBool LoadScanLinesL(TInt aNumberOfScanLines,CFbsBitmap*& aBitmap);
- __declspec(dllexport) TInt Save(const TDesC& aFilename,CFbsBitmap* aBitmap,TInt32& aId,TInt& aScanLines);
- __declspec(dllexport) TBool SaveScanLinesL(TInt aNumberOfScanLines);
- private:
- CFbsBitmapAsyncStreamer(TMode aMode);
- void ConstructL();
- void DoLoadL(const TDesC& aFilename,TInt32 aId);
- void DoSaveL(RFile& aFile);
- private:
- RFbsSession* iFbs;
- RStoreReadStream iReadStream;
- RStoreWriteStream iWriteStream;
- TStreamId iId;
- CDirectFileStore* iStore;
- TInt iCurrentScanLine;
- TUint32* iScanLineBase;
- CFbsBitmap* iBitmap;
- SEpocBitmapHeader iHeader;
- TDisplayMode iDispMode;
- TMode iMode;
- };
- #line 348
- class TBitmapUtil
- {
- public:
- __declspec(dllexport) void Begin(const TPoint& aPosition);
- __declspec(dllexport) void Begin(const TPoint& aPosition,const TBitmapUtil& aUtil);
- __declspec(dllexport) void End();
- __declspec(dllexport) TBitmapUtil(CFbsBitmap* aBitmap);
- __declspec(dllexport) TUint32 GetPixel() const;
- __declspec(dllexport) void SetPixel(TUint32 aValue);
- __declspec(dllexport) void SetPixel(const TBitmapUtil& aSource);
- __declspec(dllexport) void SetPos(const TPoint& aPosition);
- __declspec(dllexport) void DecXPos();
- __declspec(dllexport) void DecYPos();
- __declspec(dllexport) void IncXPos();
- __declspec(dllexport) void IncYPos();
- private:
- void DoBegin(const TPoint& aPosition,const TBitmapUtil* aUtil);
- private:
- CFbsBitmap* iFbsBitmap;
- TUint32* iWordPos;
- TUint32* iMinWordPos;
- TUint32* iMaxWordPos;
- TInt iBpp;
- TInt iPixelShift;
- TInt iBitShift;
- TUint32 iMask;
- TInt iScanlineWordLength;
- TBool iHeapLocked;
- };
- class TFontInfo;
- class CFbsTypefaceStore : public CTypefaceStore
- {
- public:
- __declspec(dllexport) static CFbsTypefaceStore* NewL(CGraphicsDevice* aDevice);
- __declspec(dllexport) ~CFbsTypefaceStore();
- __declspec(dllexport) TInt AddFile(const TDesC& aName,TInt& aId);
- __declspec(dllexport) TInt InstallFile(const TDesC& aName,TInt& aId);
- __declspec(dllexport) void RemoveFile(TInt aId=0);
- __declspec(dllexport) virtual TInt GetNearestFontInTwips(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontInPixels(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) TInt GetNearestFontToDesignHeightInPixels(CFont*& aFont, const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont, const TFontSpec& aFontSpec, TInt aMaxHeight);
- __declspec(dllexport) TInt GetFontById(CFont *&aFont,TUid aUid,const TAlgStyle& aAlgStyle);
- __declspec(dllexport) virtual TInt NumTypefaces() const;
- __declspec(dllexport) virtual void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const;
- __declspec(dllexport) virtual TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) TGlyphBitmapType DefaultBitmapType() const;
- __declspec(dllexport) void SetDefaultBitmapType(TGlyphBitmapType aType) const;
- __declspec(dllexport) void SetFontNameAliasL(const TDesC& aFontAlias,const TDesC& aFontName) const;
- __declspec(dllexport) static void RemoveFontFileLocksL();
- __declspec(dllexport) static void RemoveFontFileLocksL(const TDesC& aDrive, TBool aAllFonts);
- __declspec(dllexport) static void RemoveFontFileLocksL(const TDesC& aFileName);
- private:
- CFbsTypefaceStore(CGraphicsDevice* aDevice);
- TInt CreateFont(CFont*& aFont,const TFontInfo& aFontInfo);
- TInt FontHeight(TInt aTypefaceIndex,TInt aHeightIndex,TInt aMessage) const;
- void SetSize() const;
- TInt GetNearestFontToDesignHeightInTwipsL(CFont*& aFont,const TFontSpec& aFontSpec);
- private:
- RFbsSession* iFbs;
- CGraphicsDevice* iDevice;
- CFontCache* iTwipsCache;
- };
- class CDitherColor256;
- class CFbsColor256BitmapUtil : public CBase
- {
- public:
- enum TDither
- {
- ENoDither,
- EFloydSteinberg
- };
- public:
- __declspec(dllexport) static CFbsColor256BitmapUtil* NewL(const CPalette* aPalette);
- __declspec(dllexport) TInt CopyBitmap(CFbsBitmap* aColor256Destination,CFbsBitmap* aSource,TDither aDither=ENoDither);
- ~CFbsColor256BitmapUtil();
- private:
- CFbsColor256BitmapUtil();
- private:
- TColor256Util* iColor256Util;
- CDitherColor256* iDither;
- };
- #line 20 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitbase.h" /* stack depth 6 */
- #line 14
- class TSpriteBase
- {
- public:
- virtual void Hide(const TRect& aRect,const TRegion* aRegion)=0;
- virtual void Reveal(const TRect& aRect,const TRegion* aRegion)=0;
- };
- #line 21 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitdev.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bitstd.h" /* stack depth 6 */
- #line 18
- class CFbsBitGcFont : public CFbsFont
- {
- public:
- __declspec(dllexport) CFbsBitGcFont();
- __declspec(dllexport) virtual ~CFbsBitGcFont();
- __declspec(dllexport) CBitmapFont* Address() const;
- __declspec(dllexport) TInt Duplicate(TInt aHandle);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void operator=(const CFbsBitGcFont& aFont);
- protected:
- TBool iCopy;
- };
- class CFbsBitGcBitmap : public CFbsBitmap
- {
- public:
- __declspec(dllexport) CBitwiseBitmap* Address() const;
- __declspec(dllexport) void LockHeap() const;
- __declspec(dllexport) void UnlockHeap() const;
- };
- class TEllipse
- {
- public:
- enum TEllipseStatus
- {
- EInitialised,
- EFirstSector,
- ESecondSector,
- EComplete,
- ELine
- };
- public:
- __declspec(dllexport) void Construct(const TRect& aRect);
- __declspec(dllexport) TBool SingleStep(TPoint& aTopLeft,TPoint& aTopRight,TPoint& aBottomLeft,TPoint& aBottomRight);
- __declspec(dllexport) TBool NextStep(TPoint& aTopLeft,TPoint& aTopRight,TPoint& aBottomLeft,TPoint& aBottomRight);
- __declspec(dllexport) TPoint Intersection(const TRect& aRect,const TPoint& aPoint);
- protected:
- __declspec(dllexport) TBool Output(TPoint& aTopLeft,TPoint& aTopRight,TPoint& aBottomLeft,TPoint& aBottomRight);
- protected:
- TEllipseStatus iStatus;
- TInt iA;
- TInt iB;
- TInt64 iASquared;
- TInt64 iBSquared;
- TInt64 iASquBSqu;
- TInt iX;
- TInt iY;
- TInt iXAdj;
- TInt iYAdj;
- TPoint iOffset;
- TInt64 iD1;
- TInt64 iD2;
- };
- class CPolygonFiller : public CBase
- {
- public:
- enum TUsage
- {
- EGetAllPixelRunsSequentially,
- EGetPixelRunsSequentiallyForSpecifiedScanLines
- };
- public:
- __declspec(dllexport) CPolygonFiller();
- __declspec(dllexport) ~CPolygonFiller();
- __declspec(dllexport) void Construct(const CArrayFix<TPoint> * aPointArray,CGraphicsContext::TFillRule aFillRule,TUsage aUsage=EGetAllPixelRunsSequentially);
- __declspec(dllexport) void Construct(const TPoint* aPointList,TInt aNumPoints, CGraphicsContext::TFillRule aFillRule, TUsage aUsage=EGetAllPixelRunsSequentially);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void GetNextPixelRun(TBool& aExists, TInt& aScanLine, TInt& aStart, TInt& aEnd);
- __declspec(dllexport) void GetNextPixelRunOnSpecifiedScanLine(TBool& aExists, TInt aScanLine, TInt& aStart, TInt& aEnd);
- private:
- struct SFastEdge
- {
- TInt upperVertex;
- TInt lowerVertex;
- TInt firstVertex;
- };
- struct SFastScanLineIntersection;
- struct SFastActiveEdge
- {
- SFastEdge* edgePtr;
- TLinearDDA lineGenerator;
- SFastScanLineIntersection* scanLineIntersectionPtr;
- };
- struct SFastScanLineIntersection
- {
- TInt firstPixel;
- TInt lastPixel;
- SFastActiveEdge* activeEdgePtr;
- };
- private:
- struct SSlowScanLineIntersection
- {
- TInt firstPixel;
- TInt lastPixel;
- TInt firstVertexOfEdge;
- };
- private:
- struct SFastData
- {
- TPoint* vertexList;
- SFastEdge* edgeList;
- SFastActiveEdge* activeEdgeList;
- SFastScanLineIntersection* scanLineIntersectionList;
- TInt numActiveEdges;
- TInt numScanLineIntersections;
- TInt nextEdgeToActivate;
- };
- struct SSlowData
- {
- enum {EStoreSize=8};
- TLinearDDA lineGenerator;
- SSlowScanLineIntersection scanLineIntersectionList[EStoreSize];
- TInt numIntersectionsWithSameFirstPixelPreviouslyMet;
- TInt numIntersectionsWithSameFirstPixelMetThisTime;
- TInt numScanLineIntersections;
- TBool scanLineComplete;
- TInt firstPixelOfLastIntersectionInPrevBuffer;
- };
- private:
- void Construct(CGraphicsContext::TFillRule aFillRule,TUsage aUsage);
- void FastHandleVertexIntersection(TInt& aCurrentActiveEdge, TBool aIsLowerVertex);
- void SetFastIntersection(SFastActiveEdge& aActiveEdge, SFastScanLineIntersection& aScanLineIntersection);
- void SlowHandleVertexIntersection(SSlowScanLineIntersection& aScanLineIntersection, TInt& aVertexStartingCurrentEdge,TBool aIsLowerVertex);
- void JumpToCurrentScanLine(TLinearDDA& aLineGenerator, const TPoint& aUpper, const TPoint& aLower,TPoint& aStartPos, TPoint& aEndPos) const;
- const TPoint& Point(TInt aIndex);
- private:
- const CArrayFix<TPoint> * iPointArray;
- const TPoint* iPointList;
- CGraphicsContext::TFillRule iFillRule;
- TBool iUseFastAlgorithm;
- TInt iNumVertexes;
- TBool iToggler;
- TInt iNestingLevel;
- TInt iScanLineIntersection;
- TInt iRightMostPixelOnScanLine;
- TInt iFirstVertex;
- TBool iPolygonIsAllHorizontal;
- TInt iFirstScanLine;
- TInt iLastScanLine;
- TInt iCurrentScanLine;
- SFastData iFastData;
- SSlowData iSlowData;
- private:
- friend class TCompareEdgesUpperY;
- friend class TCompareActiveEdgesFirstVertex;
- friend class TCompareScanLineIntersectionsFirstPixel;
- friend class TSwapEdges;
- friend class TSwapActiveEdges;
- friend class TSwapScanLineIntersections;
- };
- class CFbsDevice;
- class TOpenFontCharMetrics;
- class CGraphicsAccelerator;
- class CWsBitmap;
- #line 200
- class CFbsBitGc : public CBitmapContext
- {
- public:
- enum TGraphicsOrientation
- {
- EGraphicsOrientationNormal,
- EGraphicsOrientationRotated90,
- EGraphicsOrientationRotated180,
- EGraphicsOrientationRotated270
- };
- public:
- __declspec(dllexport) static CFbsBitGc* NewL();
- __declspec(dllexport) virtual ~CFbsBitGc();
- __declspec(dllexport) void Activate(CFbsDevice* aDevice);
- __declspec(dllexport) void ActivateNoJustAutoUpdate(CFbsDevice* aDevice);
- __declspec(dllexport) void BitBlt(const TPoint& aPoint,const CFbsBitGc& aGc);
- __declspec(dllexport) void BitBlt(const TPoint& aPoint,const CFbsBitGc& aGc,const TRect& aSourceRect);
- __declspec(dllexport) void BitBlt(const TPoint& aPoint,const CFbsBitmap* aBitmap);
- __declspec(dllexport) void BitBlt(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect);
- __declspec(dllexport) void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) void CancelClipping();
- __declspec(dllexport) void CancelClippingRect();
- __declspec(dllexport) void CancelClippingRegion();
- __declspec(dllexport) void Clear();
- __declspec(dllexport) void Clear(const TRect& aRect);
- __declspec(dllexport) void CopyRect(const TPoint& aOffset,const TRect& aRect);
- __declspec(dllexport) void CopySettings(const CFbsBitGc& aGc);
- __declspec(dllexport) CGraphicsDevice* Device() const;
- __declspec(dllexport) void DiscardBrushPattern();
- __declspec(dllexport) void DiscardFont();
- __declspec(dllexport) void DrawArc(const TRect& aRect,const TPoint& aStart,const TPoint& aEnd);
- __declspec(dllexport) void DrawPie(const TRect& aRect,const TPoint& aStart,const TPoint& aEnd);
- __declspec(dllexport) void DrawBitmap(const TPoint& aTopLeft,const CFbsBitmap* aSource);
- __declspec(dllexport) void DrawBitmap(const TRect& aDestRect,const CFbsBitmap* aSource);
- __declspec(dllexport) void DrawBitmap(const TRect& aDestRect,const CFbsBitmap* aSource,const TRect& aSourceRect);
- __declspec(dllexport) void DrawBitmapMasked(const TRect& aDestRect,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) void DrawBitmapMasked(const TRect& aDestRect,const CWsBitmap* aBitmap,const TRect& aSourceRect,const CWsBitmap* aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) void DrawRoundRect(const TRect& aRect,const TSize& aEllipse);
- __declspec(dllexport) void DrawPolyLine(const CArrayFix<TPoint> * aPointList);
- __declspec(dllexport) void DrawPolyLineNoEndPoint(const CArrayFix<TPoint> * aPointList);
- __declspec(dllexport) void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints);
- __declspec(dllexport) void DrawPolyLineNoEndPoint(const TPoint* aPointList,TInt aNumPoints);
- __declspec(dllexport) TInt DrawPolygon(const CArrayFix<TPoint> * aPointList,CGraphicsContext::TFillRule aFillRule=CGraphicsContext::EAlternate);
- __declspec(dllexport) TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,CGraphicsContext::TFillRule aFillRule=CGraphicsContext::EAlternate);
- __declspec(dllexport) void DrawEllipse(const TRect& aRect);
- __declspec(dllexport) void DrawLine(const TPoint& aStart,const TPoint& aEnd);
- __declspec(dllexport) void DrawLineTo(const TPoint& aPoint);
- __declspec(dllexport) void DrawLineBy(const TPoint& aVector);
- __declspec(dllexport) void DrawRect(const TRect& aRect);
- __declspec(dllexport) void DrawText(const TDesC& aText);
- __declspec(dllexport) void DrawText(const TDesC& aText,const TPoint& aPosition);
- __declspec(dllexport) void DrawText(const TDesC& aText,const TRect& aBox);
- __declspec(dllexport) void DrawText(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TTextAlign aHrz=ELeft,TInt aMargin=0);
- __declspec(dllexport) void DrawText(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TInt aTextWidth,TTextAlign aHrz=ELeft,TInt aMargin=0);
- __declspec(dllexport) void DrawTextVertical(const TDesC& aText,TBool aUp);
- __declspec(dllexport) void DrawTextVertical(const TDesC& aText,const TPoint& aPosition,TBool aUp);
- __declspec(dllexport) void DrawTextVertical(const TDesC& aText,const TRect& aBox,TBool aUp);