S60UIExampleInitialView.inc
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:1156k
源码类别:
Symbian
开发平台:
C/C++
- __declspec(dllexport) void ClearSystemPointerCursor(TInt aCursorNumber);
- __declspec(dllexport) TInt ClaimSystemPointerCursorList();
- __declspec(dllexport) void FreeSystemPointerCursorList();
- __declspec(dllexport) TInt SetCustomTextCursor(TInt aIdentifier, const TArray<TSpriteMember>& aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment);
- __declspec(dllexport) TInt ResourceCount();
- __declspec(dllexport) void PasswordEntered();
- __declspec(dllexport) void ComputeMode(TComputeMode aMode);
- __declspec(dllexport) TInt HeapCount() const;
- __declspec(dllexport) void MarkStart();
- __declspec(dllexport) void CheckNum(TUint aCount);
- __declspec(dllexport) void MarkEnd(TUint aCount);
- __declspec(dllexport) void HeapSetFail(TInt aTAllocFail,TInt aValue);
- __declspec(dllexport) TInt SetModifierState(TEventModifier aModifier,TModifierState aState);
- __declspec(dllexport) TInt GetModifierState() const;
- __declspec(dllexport) TInt RequestOffEvents(TBool aOn,RWindowTreeNode *aWin=0 );
- __declspec(dllexport) TDisplayMode GetDefModeMaxNumColors(TInt& aColor,TInt& aGray) const;
- __declspec(dllexport) TInt GetColorModeList(CArrayFixFlat<TInt> *aModeList) const;
- __declspec(dllexport) void SetPointerCursorArea(const TRect& aArea);
- __declspec(dllexport) void SetPointerCursorArea(TInt aScreenSizeMode,const TRect& aArea);
- __declspec(dllexport) TRect PointerCursorArea() const;
- __declspec(dllexport) TRect PointerCursorArea(TInt aScreenSizeMode) const;
- __declspec(dllexport) void SetPointerCursorMode(TPointerCursorMode aMode);
- __declspec(dllexport) TInt SetClientCursorMode(TPointerCursorMode aMode);
- __declspec(dllexport) TPointerCursorMode PointerCursorMode() const;
- __declspec(dllexport) void SetDefaultSystemPointerCursor(TInt aCursorNumber);
- __declspec(dllexport) void ClearDefaultSystemPointerCursor();
- __declspec(dllexport) TInt SetPointerCursorPosition(const TPoint& aPosition);
- __declspec(dllexport) TPoint PointerCursorPosition() const;
- __declspec(dllexport) void SetDefaultFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) void PrepareForSwitchOff();
- __declspec(dllexport) void SetBufferSizeL(TInt aBufSize);
- __declspec(dllexport) TInt SetSystemFaded(TBool aFaded);
- __declspec(dllexport) TInt SetSystemFaded(TBool aFaded,TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) TInt SetFocusScreen(TInt aScreenNumber);
- __declspec(dllexport) TInt GetFocusScreen();
- __declspec(dllexport) void ClearAllRedrawStores();
- __declspec(dllexport) void SetRemoveKeyCode(TBool aRemove);
- __declspec(dllexport) void SimulateXyInputType(TXYInputType aInputType);
- __declspec(dllexport) void SimulateRawEvent(TRawEvent aEvent);
- __declspec(dllexport) void SimulateKeyEvent(TKeyEvent aEvent);
- __declspec(dllexport) void LogCommand(TLoggingCommand aCommand);
- __declspec(dllexport) void LogMessage(const TLogMessageText &aMessage);
- __declspec(dllexport) void SystemInfo(TInt &aSystemInfoNumber, SSystemInfo &aSystemInfo);
- __declspec(dllexport) void TestWrite(TInt aHandle,TInt aOpcode,const TAny *aData, TInt aLength);
- __declspec(dllexport) void TestWriteReply(TInt aHandle,TInt aOpcode,const TAny *aData, TInt aLength);
- __declspec(dllexport) void TestWriteReplyP(TInt aHandle,TInt aOpcode,const TAny *aData,TInt aLength,TDes8 *aReplyPackage);
- __declspec(dllexport) TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle,TInt aOpcode,const TDesC8& aData,const TDesC8& aRemoteReadBuffer);
- __declspec(dllexport) TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle,TInt aOpcode,const TDesC8& aData,const TDesC16& aRemoteReadBuffer);
- private:
- TInt doWindowGroupList(TInt aPriority, CArrayFixFlat<TInt> * aWindowListId, TInt aNumOpcode, TInt aListOpcode);
- TInt doWindowGroupList(TInt aPriority, RArray<TWindowGroupChainInfo> * aWindowListCh, TInt aNumOpcode, TInt aListOpcode);
- TInt doSetHotKey(TInt aOpcode, TInt aType, TUint aKeycode, TUint aModifierMask, TUint aModifiers);
- void doReadEvent(TRequestStatus *aStat, TInt aOpcode);
- private:
- void connectL();
- TInt DoFlush(const TIpcArgs& aIpcArgs);
- void DirectAcessActivation(TBool aIsNowActive);
- };
- class RWindowGroup;
- class RWsSprite;
- typedef TInt (*AnimCommand)(TPtr8 *aBufPtr,TAny *aPackage);
- class RWindowTreeNode : public MWsClientClass
- #line 1581
- {
- friend class RWindowGroup;
- friend class RWindowBase;
- friend class CWindowGc;
- friend class RAnimDll;
- friend class RWsSprite;
- public:
- enum TFadeControl
- {
- EFadeIncludeChildren=ETrue,
- EFadeWindowOnly=EFalse,
- };
- protected:
- RWindowTreeNode();
- RWindowTreeNode(RWsSession &aWs);
- public:
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Destroy();
- __declspec(dllexport) TUint32 Parent() const;
- __declspec(dllexport) TUint32 PrevSibling() const;
- __declspec(dllexport) TUint32 NextSibling() const;
- __declspec(dllexport) TUint32 Child() const;
- __declspec(dllexport) TInt OrdinalPriority() const;
- __declspec(dllexport) TInt OrdinalPosition() const;
- __declspec(dllexport) TInt FullOrdinalPosition() const;
- __declspec(dllexport) void SetOrdinalPosition(TInt aPos);
- __declspec(dllexport) void SetOrdinalPosition(TInt aPos,TInt aOrdinalPriority);
- __declspec(dllexport) TInt WindowGroupId();
- __declspec(dllexport) TInt SetPointerCursor(TInt aCursorNumber);
- __declspec(dllexport) void SetCustomPointerCursor(const RWsPointerCursor &aPointerCursor);
- __declspec(dllexport) TInt EnableOnEvents(TEventControl aCircumstances=EEventControlOnlyWithKeyboardFocus);
- __declspec(dllexport) void DisableOnEvents();
- __declspec(dllexport) TInt EnableGroupChangeEvents();
- __declspec(dllexport) void DisableGroupChangeEvents();
- __declspec(dllexport) TInt EnableFocusChangeEvents();
- __declspec(dllexport) void DisableFocusChangeEvents();
- __declspec(dllexport) TInt EnableGroupListChangeEvents();
- __declspec(dllexport) void DisableGroupListChangeEvents();
- __declspec(dllexport) TInt EnableVisibilityChangeEvents();
- __declspec(dllexport) void DisableVisibilityChangeEvents();
- __declspec(dllexport) TInt EnableErrorMessages(TEventControl aCircumstances);
- __declspec(dllexport) void DisableErrorMessages();
- __declspec(dllexport) TInt EnableModifierChangedEvents(TUint aModifierMask, TEventControl aCircumstances);
- __declspec(dllexport) void DisableModifierChangedEvents();
- __declspec(dllexport) void SetNonFading(TBool aNonFading);
- __declspec(dllexport) void SetFaded(TBool aFaded,TFadeControl aIncludeChildren);
- __declspec(dllexport) void SetFaded(TBool aFaded,TFadeControl aIncludeChildren,TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) void ClearPointerCursor();
- protected:
- public: void __DbgTestInvariant() const; void __DbgTest(TAny *aPtr) const ;
- };
- class RWindowBase : public RWindowTreeNode
- #line 1654
- {
- public:
- enum TCaptureFlags
- {
- TCaptureFlagEnabled=0x01,
- TCaptureFlagDragDrop=0x02,
- TCaptureFlagAllGroups=0x04,
- TCaptureDisabled=0,
- TCaptureEnabled=TCaptureFlagEnabled,
- TCaptureDragDrop=TCaptureFlagEnabled|TCaptureFlagDragDrop|TCaptureFlagAllGroups,
- };
- protected:
- RWindowBase();
- RWindowBase(RWsSession &aWs);
- public:
- __declspec(dllexport) void Activate();
- __declspec(dllexport) void SetPosition(const TPoint &point);
- __declspec(dllexport) TInt SetSizeErr(const TSize &size);
- __declspec(dllexport) TInt SetExtentErr(const TPoint &point,const TSize &size);
- __declspec(dllexport) TSize Size() const;
- __declspec(dllexport) TPoint InquireOffset(const RWindowTreeNode &aWindow) const;
- __declspec(dllexport) void PointerFilter(TUint32 aFilterMask, TUint32 aFilter);
- __declspec(dllexport) void SetPointerGrab(TBool aState);
- __declspec(dllexport) void ClaimPointerGrab(TBool aSendUpEvent=ETrue);
- __declspec(dllexport) void SetPointerCapture(TInt aFlags);
- __declspec(dllexport) void SetPointerCapturePriority(TInt aPriority);
- __declspec(dllexport) TInt GetPointerCapturePriority() const;
- __declspec(dllexport) void SetVisible(TBool aState);
- __declspec(dllexport) void SetShadowHeight(TInt aHeight);
- __declspec(dllexport) void SetShadowDisabled(TBool aState);
- __declspec(dllexport) TPoint Position() const;
- __declspec(dllexport) TPoint AbsPosition() const;
- __declspec(dllexport) TInt SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0);
- __declspec(dllexport) TInt SetShape(const TRegion &aRegion);
- __declspec(dllexport) TInt SetRequiredDisplayMode(TDisplayMode aMode);
- __declspec(dllexport) TDisplayMode DisplayMode();
- __declspec(dllexport) void EnableBackup(TUint aBackupType=EWindowBackupAreaBehind);
- __declspec(dllexport) void RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime,const TRect &aRect);
- __declspec(dllexport) void CancelPointerRepeatEventRequest();
- __declspec(dllexport) TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags);
- __declspec(dllexport) void FreePointerMoveBuffer();
- __declspec(dllexport) void EnablePointerMoveBuffer();
- __declspec(dllexport) void DisablePointerMoveBuffer();
- __declspec(dllexport) TInt RetrievePointerMoveBuffer(TDes8 &aBuf);
- __declspec(dllexport) void DiscardPointerMoveBuffer();
- __declspec(dllexport) TInt AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn);
- __declspec(dllexport) void RemoveAllKeyRects();
- __declspec(dllexport) TInt PasswordWindow(TPasswordMode aPasswordMode);
- __declspec(dllexport) void FadeBehind(TBool aFade);
- __declspec(dllexport) TBool IsFaded();
- __declspec(dllexport) TBool IsNonFading();
- __declspec(dllexport) TInt MoveToGroup(TInt aIdentifier);
- protected:
- TInt construct(const RWindowTreeNode &parent,TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode);
- };
- class RBlankWindow : public RWindowBase
- #line 1735
- {
- public:
- __declspec(dllexport) RBlankWindow();
- __declspec(dllexport) RBlankWindow(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle);
- __declspec(dllexport) void SetColor(TRgb aColor);
- __declspec(dllexport) void SetColor();
- __declspec(dllexport) void SetSize(const TSize &size);
- __declspec(dllexport) void SetExtent(const TPoint &point,const TSize &size);
- };
- class RDrawableWindow : public RWindowBase
- #line 1757
- {
- protected:
- RDrawableWindow();
- RDrawableWindow(RWsSession &aWs);
- public:
- __declspec(dllexport) void Scroll(const TPoint &aOffset);
- __declspec(dllexport) void Scroll(const TRect &aClipRect, const TPoint &aOffset);
- __declspec(dllexport) void Scroll(const TPoint &aOffset, const TRect &aRect);
- __declspec(dllexport) void Scroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect);
- __declspec(dllexport) TRect GetDrawRect();
- protected:
- void SetDrawRect(const TRect &aRect);
- private:
- void doScroll(const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect, TInt aOpcode);
- TRect iDrawRect;
- };
- class RWindow : public RDrawableWindow
- {
- public:
- __declspec(dllexport) RWindow();
- __declspec(dllexport) RWindow(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(const RWindowTreeNode &parent,TUint32 aHandle);
- __declspec(dllexport) void BeginRedraw();
- __declspec(dllexport) void BeginRedraw(const TRect &aRect);
- __declspec(dllexport) void EndRedraw();
- __declspec(dllexport) void Invalidate();
- __declspec(dllexport) void Invalidate(const TRect &aRect);
- __declspec(dllexport) void GetInvalidRegion(RRegion &aRegion);
- __declspec(dllexport) void SetBackgroundColor(TRgb aColor);
- __declspec(dllexport) void SetBackgroundColor();
- __declspec(dllexport) void SetSize(const TSize &size);
- __declspec(dllexport) void SetExtent(const TPoint &point,const TSize &size);
- __declspec(dllexport) void HandleTransparencyUpdate();
- __declspec(dllexport) TInt SetTransparencyFactor(const TRgb& aTransparencyFactor);
- __declspec(dllexport) TInt SetTransparencyBitmap(const CFbsBitmap& aTransparencyBitmap);
- __declspec(dllexport) TInt SetTransparencyWsBitmap(const CWsBitmap& aTransparencyBitmap);
- __declspec(dllexport) void SetNonTransparent();
- __declspec(dllexport) void EnableRedrawStore(TBool aEnabled);
- __declspec(dllexport) TInt SetTransparencyAlphaChannel();
- __declspec(dllexport) TInt SetTransparentRegion(const TRegion& aRegion);
- };
- class RBackedUpWindow : public RDrawableWindow
- #line 1823
- {
- public:
- __declspec(dllexport) RBackedUpWindow();
- __declspec(dllexport) RBackedUpWindow(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(const RWindowTreeNode &parent,TDisplayMode aDisplayMode, TUint32 aHandle);
- __declspec(dllexport) TInt BitmapHandle();
- __declspec(dllexport) void UpdateScreen();
- __declspec(dllexport) void UpdateScreen(const TRegion &aRegion);
- __declspec(dllexport) void UpdateBackupBitmap();
- __declspec(dllexport) void MaintainBackup();
- };
- class RWindowGroup : public RWindowTreeNode
- {
- public:
- __declspec(dllexport) RWindowGroup();
- __declspec(dllexport) RWindowGroup(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(TUint32 aClientHandle);
- __declspec(dllexport) TInt Construct(TUint32 aClientHandle,TBool aIsFocusable);
- __declspec(dllexport) TInt ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle);
- __declspec(dllexport) TInt ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle,TBool aIsFocusable);
- __declspec(dllexport) void AllowProcessToCreateChildWindowGroups(TUid aProcessSID);
- __declspec(dllexport) void EnableReceiptOfFocus(TBool aState);
- __declspec(dllexport) void AutoForeground(TBool aState);
- __declspec(dllexport) void SetOrdinalPriorityAdjust(TInt aAdjust);
- __declspec(dllexport) TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier, TInt aPriority);
- __declspec(dllexport) void CancelCaptureKey(TInt32 aCaptureKey);
- __declspec(dllexport) TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier, TInt aPriority);
- __declspec(dllexport) void CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey);
- __declspec(dllexport) TInt32 CaptureLongKey(TUint aInputKeyCode,TUint aOutputKeyCode,TUint aModifierMask,TUint aModifier
- ,TInt aPriority,TUint aFlags);
- __declspec(dllexport) TInt32 CaptureLongKey(TTimeIntervalMicroSeconds32 aRepeatTime,TUint aInputKeyCode,TUint aOutputKeyCode
- ,TUint aModifierMask,TUint aModifier,TInt aPriority,TUint aFlags);
- __declspec(dllexport) void CancelCaptureLongKey(TInt32 aCaptureKey);
- __declspec(dllexport) TInt AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) void RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
- __declspec(dllexport) void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor);
- __declspec(dllexport) void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor, const TRect &aClipRect);
- __declspec(dllexport) void CancelTextCursor();
- __declspec(dllexport) void SetOwningWindowGroup(TInt aIdentifier);
- __declspec(dllexport) void DefaultOwningWindow();
- __declspec(dllexport) TInt SetName(const TDesC &aName);
- __declspec(dllexport) TInt Name(TDes &aWindowName) const;
- __declspec(dllexport) TInt Identifier() const;
- __declspec(dllexport) void DisableKeyClick(TBool aState);
- __declspec(dllexport) TInt EnableScreenChangeEvents();
- __declspec(dllexport) void DisableScreenChangeEvents();
- __declspec(dllexport) void SimulatePointerEvent(TRawEvent aEvent);
- private:
- TInt32 doCaptureKey(TUint aKey, TUint aModifierMask, TUint aModifiers, TInt aPriority, TInt aOpcode);
- void doCancelCaptureKey(TInt32 aCaptureKeyHandle, TInt aOpcode);
- };
- class CWsBitmap : public CFbsBitmap, public MWsClientClass
- #line 1893
- {
- public:
- __declspec(dllexport) CWsBitmap();
- __declspec(dllexport) CWsBitmap(RWsSession &aWs);
- __declspec(dllexport) ~CWsBitmap();
- __declspec(dllexport) TInt Create(const TSize& aSizeInPixels,TDisplayMode aDispMode);
- __declspec(dllexport) TInt Duplicate(TInt aHandle);
- __declspec(dllexport) TInt Load(const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded=ETrue);
- __declspec(dllexport) void InternalizeL(RReadStream& aStream);
- __declspec(dllexport) void Reset();
- private:
- TInt createWsBitmap(TInt aErr);
- };
- class CWindowGc : public CBitmapContext, public MWsClientClass
- #line 1933
- {
- friend class CWsScreenDevice;
- public:
- __declspec(dllexport) CWindowGc(CWsScreenDevice *aDevice);
- __declspec(dllexport) virtual ~CWindowGc();
- __declspec(dllexport) virtual TInt Construct();
- __declspec(dllexport) virtual void Activate(RDrawableWindow &aDevice);
- __declspec(dllexport) virtual void Deactivate();
- __declspec(dllexport) virtual CGraphicsDevice* Device() const;
- __declspec(dllexport) virtual void SetOrigin(const TPoint &aPoint=TPoint(0,0));
- __declspec(dllexport) virtual void SetDrawMode(TDrawMode aDrawingMode);
- __declspec(dllexport) virtual void SetClippingRect(const TRect& aRect);
- __declspec(dllexport) virtual void CancelClippingRect();
- __declspec(dllexport) virtual void Reset();
- __declspec(dllexport) virtual void UseFont(const CFont *aFont);
- __declspec(dllexport) virtual void DiscardFont();
- __declspec(dllexport) virtual void SetUnderlineStyle(TFontUnderline aUnderlineStyle);
- __declspec(dllexport) virtual void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle);
- __declspec(dllexport) virtual void SetWordJustification(TInt aExcessWidth,TInt aNumGaps);
- __declspec(dllexport) virtual void SetCharJustification(TInt aExcessWidth,TInt aNumChars);
- __declspec(dllexport) virtual void SetPenColor(const TRgb &aColor);
- __declspec(dllexport) virtual void SetPenStyle(TPenStyle aPenStyle);
- __declspec(dllexport) virtual void SetPenSize(const TSize& aSize);
- __declspec(dllexport) virtual void SetBrushColor(const TRgb &aColor);
- __declspec(dllexport) virtual void SetBrushStyle(TBrushStyle aBrushStyle);
- __declspec(dllexport) virtual void SetBrushOrigin(const TPoint &aOrigin);
- __declspec(dllexport) virtual void UseBrushPattern(const CFbsBitmap *aDevice);
- __declspec(dllexport) virtual void DiscardBrushPattern();
- __declspec(dllexport) virtual void MoveTo(const TPoint &aPoint);
- __declspec(dllexport) virtual void MoveBy(const TPoint &aPoint);
- __declspec(dllexport) virtual void Plot(const TPoint &aPoint);
- __declspec(dllexport) virtual void DrawArc(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd);
- __declspec(dllexport) virtual void DrawLine(const TPoint &aPoint1,const TPoint &aPoint2);
- __declspec(dllexport) virtual void DrawLineTo(const TPoint &aPoint);
- __declspec(dllexport) virtual void DrawLineBy(const TPoint &aPoint);
- __declspec(dllexport) virtual void DrawPolyLine(const CArrayFix<TPoint> *aPointList);
- __declspec(dllexport) virtual void DrawPolyLine(const TPoint* aPointList,TInt aNumPoints);
- __declspec(dllexport) virtual void DrawPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd);
- __declspec(dllexport) virtual void DrawEllipse(const TRect &aRect);
- __declspec(dllexport) virtual void DrawRect(const TRect &aRect);
- __declspec(dllexport) virtual void DrawRoundRect(const TRect &aRect,const TSize &aEllipse);
- __declspec(dllexport) virtual TInt DrawPolygon(const CArrayFix<TPoint> *aPointList,TFillRule aFillRule=EAlternate);
- __declspec(dllexport) virtual TInt DrawPolygon(const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule=EAlternate);
- __declspec(dllexport) virtual void DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice);
- __declspec(dllexport) virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice);
- __declspec(dllexport) virtual void DrawBitmap(const TRect &aDestRect, const CFbsBitmap *aDevice, const TRect &aSourceRect);
- __declspec(dllexport) virtual void DrawBitmapMasked(const TRect& aDestRect, const CFbsBitmap* aBitmap, const TRect& aSourceRect, const CFbsBitmap* aMaskBitmap, TBool aInvertMask);
- __declspec(dllexport) virtual void DrawBitmapMasked(const TRect& aDestRect, const CWsBitmap* aBitmap, const TRect& aSourceRect, const CWsBitmap* aMaskBitmap, TBool aInvertMask);
- __declspec(dllexport) virtual void DrawText(const TDesC &aBuf,const TPoint &aPos);
- __declspec(dllexport) virtual void DrawText(const TDesC &aBuf,const TRect &aBox,TInt aBaselineOffset,TTextAlign aHoriz=ELeft,TInt aLeftMrg=0);
- __declspec(dllexport) virtual void Clear();
- __declspec(dllexport) virtual void Clear(const TRect &aRect);
- __declspec(dllexport) virtual void CopyRect(const TPoint &anOffset,const TRect &aRect);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aDestination, const CFbsBitmap *aBitmap, const TRect &aSource);
- __declspec(dllexport) virtual void BitBltMasked(const TPoint& aPoint,const CFbsBitmap* aBitmap,const TRect& aSourceRect,const CFbsBitmap* aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aPoint, const CWsBitmap *aBitmap);
- __declspec(dllexport) virtual void BitBlt(const TPoint &aDestination, const CWsBitmap *aBitmap, const TRect &aSource);
- __declspec(dllexport) virtual void BitBltMasked(const TPoint& aPoint,const CWsBitmap *aBitmap,const TRect& aSourceRect,const CWsBitmap *aMaskBitmap,TBool aInvertMask);
- __declspec(dllexport) virtual void MapColors(const TRect& aRect,const TRgb* aColors,TInt aNumPairs=2,TBool aMapForwards=ETrue);
- __declspec(dllexport) virtual void DrawTextVertical(const TDesC& aText,const TPoint& aPos,TBool aUp);
- __declspec(dllexport) virtual void DrawTextVertical(const TDesC& aText,const TRect& aBox,TInt aBaselineOffset,TBool aUp,TTextAlign aVert=ELeft,TInt aMargin=0);
- __declspec(dllexport) virtual void SetDitherOrigin(const TPoint& aPoint);
- __declspec(dllexport) virtual TInt SetClippingRegion(const TRegion &aRegion);
- __declspec(dllexport) virtual void CancelClippingRegion();
- __declspec(dllexport) virtual void SetOpaque(TBool aDrawOpaque=ETrue);
- __declspec(dllexport) virtual void SetFaded(TBool aFaded);
- __declspec(dllexport) virtual void SetFadingParameters(TUint8 aBlackMap,TUint8 aWhiteMap);
- __declspec(dllexport) virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CFbsBitmap* aSrcBmp, const TRect& aSrcRect, const CFbsBitmap* aAlphaBmp, const TPoint& aAlphaPt);
- __declspec(dllexport) virtual TInt AlphaBlendBitmaps(const TPoint& aDestPt, const CWsBitmap* aSrcBmp, const TRect& aSrcRect, const CWsBitmap* aAlphaBmp, const TPoint& aAlphaPt);
- private:
- __declspec(dllexport) void Reserved_CGraphicsContext_1();
- __declspec(dllexport) void Reserved_CGraphicsContext_2();
- __declspec(dllexport) void Reserved_CBitmapContext_1();
- __declspec(dllexport) void Reserved_CBitmapContext_2();
- __declspec(dllexport) void Reserved_CBitmapContext_3();
- __declspec(dllexport) virtual void Reserved_CWindowGc_1();
- __declspec(dllexport) virtual void Reserved_CWindowGc_2();
- __declspec(dllexport) virtual void Reserved_CWindowGc_3();
- __declspec(dllexport) virtual void Reserved_CWindowGc_4();
- __declspec(dllexport) virtual void Reserved_CWindowGc_5();
- private:
- TRgb Color(TInt aOpcode)const;
- void SetJustification(TInt aExcessWidth,TInt aNumGaps, TInt aOpcode);
- void DrawArcOrPie(const TRect &aRect,const TPoint &aStart,const TPoint &aEnd, TInt aOpcode);
- void doDrawPolyLine(const CArrayFix<TPoint> *aPointArray, const TPoint* aPointList,TInt aNumPoints);
- TInt doDrawPolygon(const CArrayFix<TPoint> *aPointArray,const TPoint* aPointList,TInt aNumPoints,TFillRule aFillRule);
- void WriteTextPos(TInt aOpcode,TInt aOpcodePtr,const TPoint &aPos,const TDesC &aBuf) const;
- void WriteTextCommand(TAny *aCmd, TInt aLen,const TDesC &aBuf,TInt aOpcode,TInt aOpcodePtr) const;
- private:
- CFbsFont *iFont;
- CWsScreenDevice *iDevice;
- };
- class CWsScreenDevice : public CBitmapDevice, public MWsClientClass
- #line 2077
- {
- public:
- enum TSpriteInCompare
- {
- ERemoveSprite=0,
- EIncludeSprite=1,
- };
- public:
- __declspec(dllexport) CWsScreenDevice();
- __declspec(dllexport) CWsScreenDevice(RWsSession &aWs);
- __declspec(dllexport) ~CWsScreenDevice();
- __declspec(dllexport) TInt Construct();
- __declspec(dllexport) TInt Construct( TInt aDefaultScreenNumber ) ;
- __declspec(dllexport) TDisplayMode DisplayMode() const;
- __declspec(dllexport) TSize SizeInPixels() const;
- __declspec(dllexport) TSize SizeInTwips() const;
- __declspec(dllexport) TInt HorizontalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) TInt VerticalTwipsToPixels(TInt aTwips) const;
- __declspec(dllexport) TInt HorizontalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TInt VerticalPixelsToTwips(TInt aPixels) const;
- __declspec(dllexport) TRect PointerRect() const;
- __declspec(dllexport) TInt CreateContext(CGraphicsContext *&aGc);
- inline TInt CreateContext(CWindowGc*& aGc);
- __declspec(dllexport) virtual TInt GetNearestFontInTwips(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInTwips(CFont*& aFont,const TFontSpec& aFontSpec,TInt aMaxHeight);
- __declspec(dllexport) TInt NumTypefaces() const;
- __declspec(dllexport) void TypefaceSupport(TTypefaceSupport& aTypefaceSupport,TInt aTypefaceIndex) const;
- __declspec(dllexport) TInt FontHeightInTwips(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) void GetPixel(TRgb& aColor,const TPoint& aPixel) const;
- __declspec(dllexport) void GetScanLine(TDes8& aScanLine,const TPoint& aStartPixel,TInt aPixelLength, TDisplayMode aDispMode) const;
- __declspec(dllexport) TInt AddFile(const TDesC& aName,TInt& aId);
- __declspec(dllexport) void RemoveFile(TInt aId=0);
- __declspec(dllexport) virtual TInt GetNearestFontInPixels(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToDesignHeightInPixels(CFont*& aFont,const TFontSpec& aFontSpec);
- __declspec(dllexport) virtual TInt GetNearestFontToMaxHeightInPixels(CFont*& aFont,const TFontSpec& aFontSpec,TInt aMaxHeight);
- __declspec(dllexport) TInt FontHeightInPixels(TInt aTypefaceIndex,TInt aHeightIndex) const;
- __declspec(dllexport) void ReleaseFont(CFont* aFont);
- __declspec(dllexport) void PaletteAttributes(TBool& aModifiable,TInt& aNumEntries) const;
- __declspec(dllexport) void SetPalette(CPalette* aPalette);
- __declspec(dllexport) TInt GetPalette(CPalette*& aPalette) const;
- __declspec(dllexport) TInt SetCustomPalette(const CPalette* aPalette);
- __declspec(dllexport) TInt GetFontById(CFont*& aFont,TUid aUid,const TAlgStyle& aAlgStyle);
- __declspec(dllexport) TBool RectCompare(const TRect &aRect1,const TRect &aRect2);
- __declspec(dllexport) TBool RectCompare(const TRect& aRect1,const TRect &aRect2,TUint aFlags) const;
- __declspec(dllexport) TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap) const;
- __declspec(dllexport) TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap, const TRect &aRect) const;
- __declspec(dllexport) void SetScreenSizeAndRotation(const TPixelsTwipsAndRotation &aSizeAndRotation);
- __declspec(dllexport) void GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) void SetScreenSizeAndRotation(const TPixelsAndRotation &aSizeAndRotation);
- __declspec(dllexport) void GetDefaultScreenSizeAndRotation(TPixelsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) TScreenModeEnforcement ScreenModeEnforcement() const;
- __declspec(dllexport) void SetScreenModeEnforcement(TScreenModeEnforcement aMode) const;
- __declspec(dllexport) void GetScreenModeSizeAndRotation(TInt aMode, TPixelsTwipsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) void GetScreenModeSizeAndRotation(TInt aMode, TPixelsAndRotation &aSizeAndRotation) const;
- __declspec(dllexport) void SetCurrentRotations(TInt aMode, CFbsBitGc::TGraphicsOrientation aRotation) const;
- __declspec(dllexport) TInt GetRotationsList(TInt aMode, CArrayFixFlat<TInt> *aRotationList) const;
- __declspec(dllexport) TInt NumScreenModes() const;
- __declspec(dllexport) void SetScreenMode(TInt aMode);
- __declspec(dllexport) TInt CurrentScreenMode() const;
- __declspec(dllexport) void SetAppScreenMode(TInt aMode);
- __declspec(dllexport) TPoint GetDefaultScreenModeOrigin() const;
- __declspec(dllexport) TPoint GetScreenModeOrigin(TInt aMode) const;
- __declspec(dllexport) TSize GetCurrentScreenModeScale() const;
- __declspec(dllexport) TSize GetScreenModeScale(TInt aMode) const;
- __declspec(dllexport) TPoint GetCurrentScreenModeScaledOrigin() const;
- __declspec(dllexport) TPoint GetScreenModeScaledOrigin(TInt aMode) const;
- __declspec(dllexport) TInt GetScreenSizeModeList(RArray<TInt> * aModeList);
- __declspec(dllexport) TDisplayMode GetScreenModeDisplayMode(const TInt &aMode) const;
- __declspec(dllexport) TSizeMode GetCurrentScreenModeAttributes() const;
- __declspec(dllexport) void SetCurrentScreenModeAttributes(const TSizeMode &aModeAtt);
- __declspec(dllexport) TInt GetScreenNumber() const;
- private:
- CFbsTypefaceStore* iTypefaceStore;
- TSize iPhysicalScreenSizeInTwips;
- TSize iDisplaySizeInPixels;
- friend class CWindowGc;
- };
- class RWsSpriteBase : public MWsClientClass
- #line 2190
- {
- protected:
- __declspec(dllexport) RWsSpriteBase();
- __declspec(dllexport) RWsSpriteBase(RWsSession &aWs);
- public:
- __declspec(dllexport) TInt Activate();
- __declspec(dllexport) TInt AppendMember(const TSpriteMember &aMemberData);
- __declspec(dllexport) void UpdateMember(TInt aIndex);
- __declspec(dllexport) TInt UpdateMember(TInt aIndex, const TSpriteMember &aMemberData);
- __declspec(dllexport) void Close();
- };
- class RWsSprite : public RWsSpriteBase
- {
- public:
- __declspec(dllexport) RWsSprite();
- __declspec(dllexport) RWsSprite(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(RWindowTreeNode &aWindow, const TPoint &aPos, TInt aFlags);
- __declspec(dllexport) void SetPosition(const TPoint &aPos);
- };
- class RWsPointerCursor : public RWsSpriteBase
- #line 2242
- {
- friend class RWindowTreeNode;
- friend class RWsSession;
- public:
- __declspec(dllexport) RWsPointerCursor();
- __declspec(dllexport) RWsPointerCursor(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(TInt aFlags);
- };
- class RAnim;
- class RAnimDll : public MWsClientClass
- #line 2266
- {
- public:
- __declspec(dllexport) RAnimDll();
- __declspec(dllexport) virtual ~RAnimDll();
- __declspec(dllexport) RAnimDll(RWsSession &aWs);
- __declspec(dllexport) TInt Load(const TDesC &aFileName);
- __declspec(dllexport) void Destroy();
- __declspec(dllexport) virtual void Close();
- private:
- TInt CommandReply(TInt aHandle, TInt aOpcode, const TIpcArgs* aIpcArgs=0 );
- TInt CommandReply(TInt aHandle, TInt aOpcode, const TDesC8& aArgs, const TIpcArgs* aIpcArgs=0 );
- void Command(TInt aHandle, TInt aOpcode, const TPtrC8 &aArgs);
- void Command(TInt aHandle, TInt aOpcode);
- void AsyncCommandReply(TRequestStatus& aStatus, TInt aOpcode, TIpcArgs& aIpcArgs);
- TInt CreateInstance(TInt32& aHandle, const MWsClientClass &aDevice, TInt aType, const TDesC8 &aArgs, TInt aOpcode, const TIpcArgs* aIpcArgs);
- void DestroyInstance(TInt aHandle);
- private:
- friend class RAnim;
- };
- class RAnim
- {
- public:
- __declspec(dllexport) virtual ~RAnim();
- __declspec(dllexport) virtual void Close();
- __declspec(dllexport) void Destroy();
- protected:
- __declspec(dllexport) RAnim();
- __declspec(dllexport) RAnim(RAnimDll &aDll);
- __declspec(dllexport) TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams);
- __declspec(dllexport) TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs);
- __declspec(dllexport) TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams);
- __declspec(dllexport) TInt Construct(const RWsSprite &aDevice, TInt aType, const TDesC8 &aParams, const TIpcArgs& aIpcArgs);
- __declspec(dllexport) TInt CommandReply(TInt aOpcode);
- __declspec(dllexport) TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs);
- __declspec(dllexport) TInt CommandReply(TInt aOpcode, const TDesC8& aArgs, const TIpcArgs& aIpcArgs);
- __declspec(dllexport) void Command(TInt aOpcode, const TPtrC8 &aArgs);
- __declspec(dllexport) void Command(TInt aOpcode);
- __declspec(dllexport) void AsyncCommandReply(TRequestStatus& aRequestStatus,TInt aOpcode, const TIpcArgs& aIpcArgs);
- private:
- TInt32 iHandle;
- RAnimDll *iAnimDll;
- };
- class CDsaMsgQueue;
- class RDirectScreenAccess : public MWsClientClass
- #line 2330
- {
- public:
- #line 2341
- enum TTerminationReasons
- {
- ETerminateCancel,
- ETerminateRegion,
- ETerminateScreenMode,
- ETerminateRotation,
- };
- enum TPriority
- {
- EPriorityVeryHigh=2000,
- };
- public:
- __declspec(dllexport) RDirectScreenAccess();
- __declspec(dllexport) RDirectScreenAccess(RWsSession& aWs);
- __declspec(dllexport) TInt Construct();
- __declspec(dllexport) TInt Request(RRegion*& aRegion,TRequestStatus& aStatus,const RWindowBase& aWindow);
- __declspec(dllexport) void Completed();
- __declspec(dllexport) void Cancel();
- __declspec(dllexport) void Close();
- private:
- RWsSession* iWs;
- CDsaMsgQueue* iMsgQueue;
- RThread iWsThread;
- TRequestStatus* iDummyRequest;
- };
- class MAbortDirectScreenAccess
- {
- public:
- #line 2404
- virtual void AbortNow(RDirectScreenAccess::TTerminationReasons aReason)=0;
- };
- class MDirectScreenAccess : public MAbortDirectScreenAccess
- #line 2419
- {
- public:
- #line 2433
- virtual void Restart(RDirectScreenAccess::TTerminationReasons aReason)=0;
- };
- class CDirectScreenAccess : public CActive
- #line 2454
- {
- public:
- __declspec(dllexport) static CDirectScreenAccess* NewL(RWsSession& aWs,CWsScreenDevice& aScreenDevice,RWindowBase& aWin,MDirectScreenAccess& aAbort);
- ~CDirectScreenAccess();
- __declspec(dllexport) void StartL();
- inline CFbsBitGc* Gc();
- inline CFbsScreenDevice*& ScreenDevice();
- inline RRegion* DrawingRegion();
- private:
- enum TFlags
- {
- EDirectCheckModeChange=0x1,
- EDirectCheckSizeModeChange=0x2,
- };
- private:
- inline CDirectScreenAccess(RWsSession& aWs,CWsScreenDevice* aScreenDevice,RWindowBase& aWindow,MDirectScreenAccess& aAbort);
- void ConstructL(RWsSession& aWs);
- void CreateScreenObjectsL(TDisplayMode aCurrentMode);
- void UpdateSizeAndRotation(CFbsBitGc* aGc);
- static TInt Restart(TAny* aDirect);
- void Restart();
- void DoCancel();
- void RunL();
- private:
- CFbsBitGc* iGc;
- CFbsScreenDevice* iScreenDevice;
- RRegion* iDrawingRegion;
- RWindowBase& iWindow;
- CWsScreenDevice* iWsScreenDevice;
- MDirectScreenAccess& iAbort;
- RDirectScreenAccess iDirectAccess;
- RDirectScreenAccess::TTerminationReasons iReason;
- CIdle* iRestart;
- TSize iScreenSize;
- TBool iAborting;
- TUint iFlags;
- TInt iScreenNumber;
- };
- class RSoundPlugIn : public MWsClientClass
- {
- public:
- enum
- {
- ESoundWrongPlugIn=KMinTInt
- };
- public:
- __declspec(dllexport) RSoundPlugIn();
- __declspec(dllexport) RSoundPlugIn(RWsSession &aWs);
- __declspec(dllexport) TInt Construct(TUid aUid=TUid::Null() );
- __declspec(dllexport) void Close();
- __declspec(dllexport) void Destroy();
- __declspec(dllexport) TBool IsLoaded(TBool& aIsChangeable);
- __declspec(dllexport) TInt Unload();
- __declspec(dllexport) TInt Load(const TDesC &aFileName);
- __declspec(dllexport) void SetKeyClick(TBool aEnabled);
- __declspec(dllexport) void SetPenClick(TBool aEnabled);
- __declspec(dllexport) TBool KeyClickEnabled();
- __declspec(dllexport) TBool PenClickEnabled();
- __declspec(dllexport) TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs);
- };
- inline TInt MWsClientClass::WsHandle() const
- {return(iWsHandle);}
- inline TInt CWsScreenDevice::CreateContext(CWindowGc *&aGc)
- #line 2545
- {return(CreateContext((CGraphicsContext *&)aGc));}
- inline TUint TWsRedrawEvent::Handle() const
- {return(iHandle);}
- inline TRect TWsRedrawEvent::Rect() const
- {return(iRect);}
- inline TPointerEvent *TWsEvent::Pointer() const
- {return((TPointerEvent *)&iEventData);}
- inline TKeyEvent *TWsEvent::Key() const
- {return((TKeyEvent *)&iEventData);}
- inline TWsVisibilityChangedEvent* TWsEvent::VisibilityChanged()
- { return reinterpret_cast<TWsVisibilityChangedEvent*>(iEventData); }
- inline const TWsVisibilityChangedEvent* TWsEvent::VisibilityChanged() const
- { return reinterpret_cast<const TWsVisibilityChangedEvent*>(iEventData); }
- inline TModifiersChangedEvent *TWsEvent::ModifiersChanged() const
- {return((TModifiersChangedEvent *)&iEventData);}
- inline TWsErrorMessage *TWsEvent::ErrorMessage() const
- {return((TWsErrorMessage *)&iEventData);}
- inline TUint8 *TWsEvent::EventData() const
- #line 2627
- {return((TUint8 *)&iEventData);}
- inline TInt TWsEvent::Type() const
- {return(iType);}
- inline TUint TWsEvent::Handle() const
- {return(iHandle);}
- inline TTime TWsEvent::Time() const
- {return(iTime);}
- inline void TWsEvent::SetType(TInt aType)
- {iType=aType;}
- inline void TWsEvent::SetHandle(TUint aHandle)
- {iHandle=aHandle;}
- inline void TWsEvent::SetTimeNow()
- {iTime.UniversalTime();}
- inline TInt *TWsEvent::Int() const
- { return (TInt*)&iEventData; }
- inline TUint TWsPriorityKeyEvent::Handle() const
- {return(iHandle);}
- inline TKeyEvent *TWsPriorityKeyEvent::Key() const
- {return((TKeyEvent *)&iEventData);}
- inline void TWsPriorityKeyEvent::SetHandle(TUint aHandle)
- {iHandle=aHandle;}
- inline CDirectScreenAccess::CDirectScreenAccess(RWsSession& aWs,CWsScreenDevice* aScreenDevice,RWindowBase& aWindow,MDirectScreenAccess& aAbort)
- :CActive(RDirectScreenAccess::EPriorityVeryHigh), iWindow(aWindow), iAbort(aAbort), iDirectAccess(aWs)
- {iWsScreenDevice=aScreenDevice;}
- inline CFbsBitGc* CDirectScreenAccess::Gc()
- #line 2713
- { return iGc; }
- inline CFbsScreenDevice*& CDirectScreenAccess::ScreenDevice()
- { return iScreenDevice; }
- inline RRegion* CDirectScreenAccess::DrawingRegion()
- #line 2737
- { return iDrawingRegion; }
- inline TSizeMode::TSizeMode(TSize& aSize) :
- iOrigin(0, 0), iScreenSize(aSize)
- {}
- inline TInt TSizeMode::ScaledCord(TInt aOrigin,TInt aScale)
- {return (aOrigin+aScale-1)/aScale;}
- inline TPoint TSizeMode::ScaledOrigin()
- {return TPoint(ScaledCord(iOrigin.iX,iScreenScale.iWidth),ScaledCord(iOrigin.iY,iScreenScale.iHeight));}
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulalign.h" /* stack depth 4 */
- #line 25
- enum TGulHAlignment
- {
- EHLeft=CGraphicsContext::ELeft,
- EHCenter=CGraphicsContext::ECenter,
- EHRight=CGraphicsContext::ERight
- };
- enum TGulVAlignment
- {
- EVTop=0x00,
- EVCenter=0x10,
- EVBottom=0x20
- };
- enum TGulAlignmentValue
- {
- EHLeftVTop=EHLeft|EVTop,
- EHLeftVCenter=EHLeft|EVCenter,
- EHLeftVBottom=EHLeft|EVBottom,
- EHCenterVTop=EHCenter|EVTop,
- EHCenterVCenter=EHCenter|EVCenter,
- EHCenterVBottom=EHCenter|EVBottom,
- EHRightVTop=EHRight|EVTop,
- EHRightVCenter=EHRight|EVCenter,
- EHRightVBottom=EHRight|EVBottom
- };
- class TGulAlignment
- {
- private:
- enum {EHMask=0x03, EVMask=0x30};
- public:
- inline TGulAlignment();
- inline TGulAlignment(TGulAlignmentValue aValue);
- inline TGulAlignment(CGraphicsContext::TTextAlign aHAlign, TGulVAlignment aVAlign = EVTop);
- inline operator TGulAlignmentValue() const;
- inline TGulVAlignment VAlignment() const;
- inline TGulHAlignment HAlignment() const;
- inline CGraphicsContext::TTextAlign TextAlign() const;
- __declspec(dllexport) void SetVAlignment(TGulVAlignment aVAlign);
- __declspec(dllexport) void SetHAlignment(TGulHAlignment aHAlign);
- __declspec(dllexport) void SetHAlignment(CGraphicsContext::TTextAlign aHAlign);
- __declspec(dllexport) TPoint InnerTopLeft(const TRect& aOuter,const TSize& aInnerSize) const;
- __declspec(dllexport) TRect InnerRect(const TRect& aOuter,const TSize& aInnerSize) const;
- private:
- TGulAlignmentValue iValue;
- };
- inline TGulAlignment::TGulAlignment()
- {};
- inline TGulAlignment::TGulAlignment(TGulAlignmentValue aValue)
- {iValue=aValue;}
- inline TGulAlignment::TGulAlignment(CGraphicsContext::TTextAlign aHAlign, TGulVAlignment aVAlign)
- { iValue = static_cast<TGulAlignmentValue>(((TGulHAlignment)aHAlign) |aVAlign); }
- inline TGulAlignment::operator TGulAlignmentValue() const
- {return(iValue);}
- inline TGulVAlignment TGulAlignment::VAlignment() const
- {return((TGulVAlignment)(iValue&EVMask));}
- inline TGulHAlignment TGulAlignment::HAlignment() const
- {return((TGulHAlignment)(iValue&EHMask));}
- inline CGraphicsContext::TTextAlign TGulAlignment::TextAlign() const
- {return((CGraphicsContext::TTextAlign)(HAlignment()));}
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coedef.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\guldef.h" /* stack depth 5 */
- #line 13
- enum TGulAdjacent
- {
- EGulAdjNone =0x00,
- EGulAdjTop =0x01,
- EGulAdjBottom =0x02,
- EGulAdjLeft =0x04,
- EGulAdjRight =0x08
- };
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\coedef.h" /* stack depth 4 */
- #line 19
- enum TKeyResponse
- {
- EKeyWasNotConsumed,
- EKeyWasConsumed
- };
- #line 34
- enum TDrawNow
- {
- ENoDrawNow,
- EDrawNow
- };
- enum TCoeWinPriority
- {
- ECoeWinPriorityNeverAtFront =-1000,
- ECoeWinPriorityLow =-750,
- ECoeWinPriorityNormal =0,
- ECoeWinPriorityMedium =500,
- ECoeWinPriorityHigh =750,
- ECoeWinPriorityFep =900,
- ECoeWinPriorityAlwaysAtFront =1000
- };
- const TInt KUidValueCoeColorSchemeChangeEvent =0x100056C4;
- const TInt KUidValueCoeZoomChangeEvent =0x100057C3;
- const TInt KUidValueCoeFontChangeEvent =0x100057C4;
- const TUint KUidFepFrameworkRepository=0x10272618;
- enum
- {
- ERepositoryKeyMask_DefaultSetting =0x00001000,
- ERepositoryKeyMask_DynamicSetting =0x00002000,
- ERepositoryKeyMask_FepId =0x00000001,
- ERepositoryKeyMask_OnState =0x00000002,
- ERepositoryKeyMask_OnKeyData =0x00000004,
- ERepositoryKeyMask_OffKeyData =0x00000008,
- ERepositoryKey_DefaultFepId =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_FepId,
- ERepositoryKey_DefaultOnState =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnState,
- ERepositoryKey_DefaultOnKeyData =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OnKeyData,
- ERepositoryKey_DefaultOffKeyData =ERepositoryKeyMask_DefaultSetting|ERepositoryKeyMask_OffKeyData,
- ERepositoryKey_DynamicFepId =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_FepId,
- ERepositoryKey_DynamicOnState =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnState,
- ERepositoryKey_DynamicOnKeyData =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OnKeyData,
- ERepositoryKey_DynamicOffKeyData =ERepositoryKeyMask_DynamicSetting|ERepositoryKeyMask_OffKeyData
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecobs.h" /* stack depth 4 */
- #line 11
- class CCoeControl;
- class MCoeControlObserver
- {
- public:
- enum TCoeEvent
- {
- EEventRequestExit,
- EEventRequestCancel,
- EEventRequestFocus,
- EEventPrepareFocusTransition,
- EEventStateChanged,
- EEventInteractionRefused
- };
- public:
- #line 63
- virtual void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType)=0;
- protected:
- __declspec(dllexport) MCoeControlObserver();
- private:
- __declspec(dllexport) virtual void MCoeControlObserver_Reserved1();
- __declspec(dllexport) virtual void MCoeControlObserver_Reserved2();
- private:
- TInt iMCoeControlObserver_Reserved1;
- };
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coehelp.h" /* stack depth 4 */
- #line 17
- typedef TBuf<30> TCoeContextName;
- class TCoeHelpContext
- #line 30
- {
- public:
- __declspec(dllexport) TCoeHelpContext();
- __declspec(dllexport) TCoeHelpContext(TUid aMajor,const TDesC& aContext);
- __declspec(dllexport) TBool IsNull() const;
- __declspec(dllexport) TBool operator==(const TCoeHelpContext& aContext) const;
- __declspec(dllexport) TBool operator!=(const TCoeHelpContext& aContext) const;
- public:
- TUid iMajor;
- TCoeContextName iContext;
- private:
- TInt iTCoeHelpContext_Reserved1;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeinput.h" /* stack depth 4 */
- #line 14
- class MCoeFepAwareTextEditor;
- class MCoeCaptionRetrieverForFep;
- class MObjectProvider;
- class TCoeInputCapabilities
- {
- public:
- enum
- {
- ENone =0,
- EWesternNumericIntegerPositive =0x00000001,
- EWesternNumericIntegerNegative =0x00000002,
- EWesternNumericReal =0x00000004,
- EWesternAlphabetic =0x00000008,
- EJapaneseHiragana =0x00000010,
- EJapaneseKatakanaHalfWidth =0x00000020,
- EJapaneseKatakanaFullWidth =0x00000040,
- EDialableCharacters =0x00000080,
- ESecretText =0x00000100,
- EAutoSentenceCase =0x00000200,
- ENonPredictive =0x00000400,
- EAllText =0x01000000,
- ENavigation =0x02000000
- };
- class MCoeFepSpecificExtensions;
- public:
- __declspec(dllexport) TCoeInputCapabilities();
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities);
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep);
- __declspec(dllexport) TCoeInputCapabilities(TUint aCapabilities, MCoeFepAwareTextEditor* aFepAwareTextEditor, MCoeCaptionRetrieverForFep* aCaptionRetrieverForFep, TUid aFepUid, MCoeFepSpecificExtensions* aFepSpecificExtensions);
- __declspec(dllexport) TCoeInputCapabilities(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) TCoeInputCapabilities& operator=(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) TBool operator==(const TCoeInputCapabilities& aAnother) const;
- __declspec(dllexport) TBool operator!=(const TCoeInputCapabilities& aAnother) const;
- __declspec(dllexport) void MergeWith(const TCoeInputCapabilities& aAnother);
- __declspec(dllexport) void SetCapabilities(TUint aCapabilities);
- __declspec(dllexport) TUint Capabilities() const;
- __declspec(dllexport) TBool IsNone() const;
- __declspec(dllexport) TBool SupportsWesternNumericIntegerPositive() const;
- __declspec(dllexport) TBool SupportsWesternNumericIntegerNegative() const;
- __declspec(dllexport) TBool SupportsWesternNumericReal() const;
- __declspec(dllexport) TBool SupportsWesternAlphabetic() const;
- __declspec(dllexport) TBool SupportsJapaneseHiragana() const;
- __declspec(dllexport) TBool SupportsJapaneseKatakanaHalfWidth() const;
- __declspec(dllexport) TBool SupportsJapaneseKatakanaFullWidth() const;
- __declspec(dllexport) TBool SupportsDialableCharacters() const;
- __declspec(dllexport) TBool SupportsSecretText() const;
- __declspec(dllexport) TBool SupportsAutoSentenceCase() const;
- __declspec(dllexport) TBool SupportsNonPredictive() const;
- __declspec(dllexport) TBool SupportsAllText() const;
- __declspec(dllexport) TBool SupportsNavigation() const;
- __declspec(dllexport) MCoeFepAwareTextEditor* FepAwareTextEditor() const;
- __declspec(dllexport) MCoeCaptionRetrieverForFep* CaptionRetrieverForFep() const;
- __declspec(dllexport) MCoeFepSpecificExtensions* FepSpecificExtensions(TUid aFepUid) const;
- __declspec(dllexport) MObjectProvider* ObjectProvider() const;
- __declspec(dllexport) void SetObjectProvider(MObjectProvider* aObjectProvider);
- private:
- TUint iCapabilities;
- MCoeFepAwareTextEditor* iFepAwareTextEditor;
- MCoeCaptionRetrieverForFep* iCaptionRetrieverForFep;
- TUint iFepUid;
- MCoeFepSpecificExtensions* iFepSpecificExtensions;
- MObjectProvider* iObjectProvider;
- TAny* iSpareForFutureUse[5];
- };
- #line 38 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemop.h" /* stack depth 4 */
- #line 24
- class TTypeUid : public TUid
- #line 43
- {
- public:
- class Ptr
- {
- friend class TTypeUid;
- private:
- explicit inline Ptr(TAny* aPtr)
- : iPtr(aPtr)
- {}
- public:
- inline TAny* Pointer() const
- {return iPtr;}
- private:
- TAny* iPtr;
- };
- public:
- inline TTypeUid(TInt aUid)
- { iUid = aUid; }
- inline static Ptr Null()
- { return Ptr(0 ); }
- template <class T> inline Ptr MakePtr(T* aT) const
- { (void)((iUid == T::ETypeId)||(User::Invariant(),0)) ; return Ptr(aT); }
- };
- class MObjectProvider
- #line 106
- {
- public:
- template<class T>
- T* MopGetObject(T*& aPtr)
- #line 119
- { return (aPtr=(T*)MopGetById(T::ETypeId)); }
- template<class T>
- T* MopGetObjectNoChaining(T*& aPtr)
- #line 133
- { return (aPtr=(T*)MopGetByIdNoChaining(T::ETypeId)); }
- private:
- #line 145
- virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId) = 0;
- protected:
- __declspec(dllexport) MObjectProvider();
- private:
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- __declspec(dllexport) virtual void MObjectProvider_Reserved1();
- __declspec(dllexport) virtual void MObjectProvider_Reserved2();
- private:
- __declspec(dllexport) TAny* MopGetById(TTypeUid aId);
- __declspec(dllexport) TAny* MopGetByIdNoChaining(TTypeUid aId);
- private:
- TInt iMObjectProvider_Reserved1;
- };
- #line 42 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\barsc.h" /* stack depth 5 */
- #line 12
- class RResourceFileImpl;
- #line 34
- class RResourceFile
- {
- public:
- __declspec(dllexport) RResourceFile();
- __declspec(dllexport) void Close();
- __declspec(dllexport) void OpenL(RFs &aFs,const TDesC &aName);
- __declspec(dllexport) TUidType UidType() const;
- __declspec(dllexport) void ReadL(TDes8 &aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC8 *AllocReadL(TInt aResourceId) const;
- __declspec(dllexport) HBufC8 *AllocReadLC(TInt aResourceId) const;
- __declspec(dllexport) void ConfirmSignatureL(TInt aSignature);
- __declspec(dllexport) void ConfirmSignatureL();
- __declspec(dllexport) TInt SignatureL() const;
- __declspec(dllexport) TBool OwnsResourceId(TInt aResourceId) const;
- __declspec(dllexport) TBool OwnsResourceIdL(TInt aResourceId) const;
- __declspec(dllexport) void OpenL(RFs& aFs, const TDesC& aName, TUint aFileOffset, TInt aFileSize);
- inline TInt Offset() const;
- private:
- void DoOpenL(RFs& aFs, const TDesC& aName, TUint aFileOffset, TInt aFileSize);
- __declspec(dllexport) TInt Offset2() const;
- RResourceFileImpl* Impl();
- const RResourceFileImpl* Impl() const;
- private:
- enum
- {
- KRscFileSize = 24
- };
- TUint8 iImpl[KRscFileSize];
- };
- #line 72
- inline TInt RResourceFile::Offset() const
- {
- return Offset2();
- }
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\badesca.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bamdesca.h" /* stack depth 6 */
- #line 19
- class MDesC8Array
- #line 28
- {
- public:
- virtual ~MDesC8Array() {}
- virtual TInt MdcaCount() const =0;
- #line 48
- virtual TPtrC8 MdcaPoint(TInt aIndex) const =0;
- };
- class MDesC16Array
- #line 61
- {
- public:
- virtual ~MDesC16Array() {}
- virtual TInt MdcaCount() const =0;
- #line 81
- virtual TPtrC16 MdcaPoint(TInt aIndex) const =0;
- };
- #line 14 "C:\Symbian\9.1\S60_3rd\epoc32\include\badesca.h" /* stack depth 5 */
- #line 22
- class CDesC8Array : public CArrayFixBase, public MDesC8Array
- {
- protected:
- __declspec(dllexport) CDesC8Array(TBufRep aRep,TInt aGranularity);
- public:
- __declspec(dllexport) ~CDesC8Array();
- __declspec(dllexport) void AppendL(const TDesC8& aPtr);
- __declspec(dllexport) void InsertL(TInt aPos,const TDesC8& aPtr);
- __declspec(dllexport) TInt InsertIsqL(const TDesC8& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt InsertIsqAllowDuplicatesL(const TDesC8& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt Find(const TDesC8& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) TInt FindIsq(const TDesC8& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) void Delete(TInt aPos);
- __declspec(dllexport) void Delete(TInt aIndex,TInt aCount);
- __declspec(dllexport) void Reset();
- inline TPtrC8 operator[](TInt aIndex) const;
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC8 MdcaPoint(TInt aIndex) const;
- };
- inline TPtrC8 CDesC8Array::operator[](TInt aIndex) const
- { return(MdcaPoint(aIndex)); }
- class CDesC8ArrayFlat : public CDesC8Array
- {
- public:
- __declspec(dllexport) CDesC8ArrayFlat(TInt aGranularity);
- __declspec(dllexport) ~CDesC8ArrayFlat();
- };
- class CDesC8ArraySeg : public CDesC8Array
- {
- public:
- __declspec(dllexport) CDesC8ArraySeg(TInt aGranularity);
- __declspec(dllexport) ~CDesC8ArraySeg();
- };
- class CDesC16Array : public CArrayFixBase, public MDesC16Array
- #line 93
- {
- protected:
- __declspec(dllexport) CDesC16Array(TBufRep aRep,TInt aGranularity);
- public:
- __declspec(dllexport) ~CDesC16Array();
- __declspec(dllexport) void AppendL(const TDesC16& aPtr);
- __declspec(dllexport) void InsertL(TInt aPos,const TDesC16& aPtr);
- __declspec(dllexport) TInt InsertIsqL(const TDesC16& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt InsertIsqAllowDuplicatesL(const TDesC16& aPtr,TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) void Sort(TKeyCmpText aTextComparisonType=ECmpFolded);
- __declspec(dllexport) TInt Find(const TDesC16& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) TInt FindIsq(const TDesC16& aPtr,TInt& aPos,TKeyCmpText aTextComparisonType=ECmpFolded) const;
- __declspec(dllexport) void Delete(TInt aPos);
- __declspec(dllexport) void Delete(TInt aIndex,TInt aCount);
- __declspec(dllexport) void Reset();
- inline TPtrC16 operator[](TInt aIndex) const;
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC16 MdcaPoint(TInt aIndex) const;
- };
- inline TPtrC16 CDesC16Array::operator[](TInt aIndex) const
- #line 129
- { return(MdcaPoint(aIndex)); }
- class CDesC16ArrayFlat : public CDesC16Array
- {
- public:
- __declspec(dllexport) CDesC16ArrayFlat(TInt aGranularity);
- __declspec(dllexport) ~CDesC16ArrayFlat();
- };
- class CDesC16ArraySeg : public CDesC16Array
- {
- public:
- __declspec(dllexport) CDesC16ArraySeg(TInt aGranularity);
- __declspec(dllexport) ~CDesC16ArraySeg();
- };
- class CPtrC8Array : public CArrayFixFlat<TPtrC8>, public MDesC8Array
- {
- public:
- __declspec(dllexport) CPtrC8Array(TInt aGranularity);
- __declspec(dllexport) ~CPtrC8Array();
- __declspec(dllexport) void CopyL(const MDesC8Array& aArray);
- inline void operator=(const MDesC8Array& aArray);
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC8 MdcaPoint(TInt aIndex) const;
- };
- class CPtrC16Array : public CArrayFixFlat<TPtrC16>, public MDesC16Array
- {
- public:
- __declspec(dllexport) CPtrC16Array(TInt aGranularity);
- __declspec(dllexport) ~CPtrC16Array();
- __declspec(dllexport) void CopyL(const MDesC16Array& aArray);
- inline void operator=(const MDesC16Array& aArray);
- __declspec(dllexport) TInt MdcaCount() const;
- __declspec(dllexport) TPtrC16 MdcaPoint(TInt aIndex) const;
- };
- inline void CPtrC8Array::operator=(const MDesC8Array& aArray)
- #line 212
- {CopyL(aArray);}
- inline void CPtrC16Array::operator=(const MDesC16Array& aArray)
- #line 225
- {CopyL(aArray);}
- #line 237
- typedef CDesC16Array CDesCArray;
- #line 246
- typedef CDesC16ArrayFlat CDesCArrayFlat;
- #line 255
- typedef CDesC16ArraySeg CDesCArraySeg;
- #line 270
- typedef CPtrC16Array CPtrCArray;
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\basched.h" /* stack depth 5 */
- #line 25
- const TInt KErrExtended=(-1000);
- const TInt KErrExtendedWithText=(-1001);
- const TInt KLeaveWithoutAlert=(-1002);
- const TInt KLeaveExit=(-1003);
- struct SExtendedError
- {
- TUid iComponent;
- TInt iErrorNumber;
- TBool iInformation;
- };
- class CBaErrorHandler;
- class CBaActiveScheduler : public CActiveScheduler
- {
- public:
- __declspec(dllexport) static void LeaveNoAlert();
- public:
- __declspec(dllexport) static void Exit();
- __declspec(dllexport) static void LeaveForAlert(TUid aComponent,TInt aErrorNumber);
- __declspec(dllexport) static void LeaveForInfoPrint(TUid aComponent,TInt aErrorNumber);
- __declspec(dllexport) static void LeaveForErrorHandler(const CBaErrorHandler *aHandler);
- __declspec(dllexport) static const SExtendedError& ExtendedError();
- __declspec(dllexport) static void DisplayExtendedError(TUid aComponent,TInt aErrorNumber);
- __declspec(dllexport) virtual void DisplayError(TInt aError) const;
- public:
- __declspec(dllexport) void Error(TInt aError) const;
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- static void ExtendedLeave(TUid aComponent,TInt aErrorNumber,TBool aLeaveForInfoPrint);
- protected:
- SExtendedError iExtendedError;
- };
- #line 26 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulbordr.h" /* stack depth 7 */
- #line 22
- class TGulBorder
- #line 38
- {
- public:
- class TColors
- #line 53
- {
- public:
- __declspec(dllexport) TColors();
- public:
- TRgb iLine;
- TRgb iBack;
- TRgb iLight;
- TRgb iMidlight;
- TRgb iMid;
- TRgb iDark;
- TRgb iInternalBack;
- };
- public:
- enum TOutlineStyle
- {
- EWithOutline=0x01,
- EDottedOutline=0x02
- };
- enum TInlineStyle
- {
- EWithInline=0x04
- };
- enum T3DStyle
- {
- EFlat=0x10,
- ESunken=0x20,
- ERaised=0x40
- };
- enum TConstructionStyle
- {
- EOneStep=0x100,
- ETwoStep=0x200,
- EThreeStep=0x400,
- EInvertedTwoStep=0x800
- };
- #line 153
- enum TThickness
- {
- EAddOnePixel=0x1000,
- EAddTwoPixels=0x2000,
- EAddFourPixels=0x4000
- };
- enum TRounding
- {
- EAddOneRoundingPixel=0x10000,
- EAddTwoRoundingPixels=0x20000,
- EAddFourRoundingPixels=0x40000
- };
- private:
- enum TNull
- {
- ENoBorder=0x00
- };
- enum TLegacyStyle
- {
- EShallow=EAddOnePixel,
- EDeep=EAddTwoPixels,
- EThick=EAddFourPixels,
- EHorizontal=0x100000,
- EWithOverlap=0x200000,
- EGray=0x400000,
- EBlack=0x80000
- };
- enum TLogicalStyle
- {
- ELogical=0x800000
- };
- public:
- enum TLogicalFamily
- {
- EWindowFamily=ELogical|0x1,
- EContainerFamily=ELogical|0x2,
- EControlFamily=ELogical|0x3
- };
- public:
- enum TBorderType
- {
- ENone=ENoBorder,
- ESingleGray=EWithOutline|EGray,
- ESingleBlack=EWithOutline|EBlack,
- ESingleDotted=EWithOutline|EDottedOutline,
- EShallowRaised=ERaised|EOneStep|EAddOnePixel,
- EShallowSunken=ESunken|EOneStep|EAddOnePixel,
- EDeepRaised=EWithOutline|ERaised|EOneStep|EAddTwoPixels,
- EDeepRaisedWithOutline=EWithOutline|ERaised|EOneStep|EAddTwoPixels,
- EDeepSunken=EWithOutline|ESunken|EOneStep|EAddTwoPixels,
- EDeepSunkenWithOutline=EWithOutline|ESunken|EOneStep|EAddTwoPixels,
- EThickDeepRaisedWithOutline=EWithOutline|ERaised|EOneStep|EAddOnePixel|EAddTwoPixels,
- EVerticalBar=ERaised|EOneStep|EAddTwoPixels|EWithOverlap,
- EHorizontalBar=ERaised|EOneStep|EAddTwoPixels|EHorizontal|EWithOverlap
- };
- enum TLogicalType
- {
- EWindow=EWindowFamily|ERaised,
- EFlatContainer=EContainerFamily|EFlat,
- ERaisedContainer=EContainerFamily|ERaised,
- ESunkenContainer=EContainerFamily|ESunken,
- EFlatControl=EControlFamily|EFlat,
- ERaisedControl=EControlFamily|ERaised,
- ESunkenControl=EControlFamily|ESunken,
- EFocusedRaisedControl=EControlFamily|ERaised|0x100,
- EFocusedSunkenControl=EControlFamily|ESunken|0x100
- };
- public:
- __declspec(dllexport) TGulBorder();
- __declspec(dllexport) TGulBorder(TBorderType aType);
- __declspec(dllexport) TGulBorder(TBorderType aType,TGulAdjacent aAdjacent);
- __declspec(dllexport) TGulBorder(TInt aType);
- __declspec(dllexport) TGulBorder(TInt aType,TGulAdjacent aAdjacent);
- __declspec(dllexport) void Draw(CGraphicsContext& aGc,const TRect& aRect,const TColors& aBorderColors) const;
- __declspec(dllexport) void Draw(CGraphicsContext& aGc,const TRect& aRect) const;
- __declspec(dllexport) TRect InnerRect(const TRect& aOuterRect) const;
- __declspec(dllexport) TRect OuterRect(const TRect& aInnerRect) const;
- __declspec(dllexport) void SetType(TInt aType);
- __declspec(dllexport) void SetAdjacent(TInt aAdjacent);
- __declspec(dllexport) TSize SizeDelta() const;
- __declspec(dllexport) TMargins Margins() const;
- __declspec(dllexport) TBool HasBorder() const;
- __declspec(dllexport) TInt Adjacent() const;
- __declspec(dllexport) TInt Type() const;
- public:
- __declspec(dllexport) TInt Thickness() const;
- __declspec(dllexport) TInt Rounding() const;
- private:
- TBool IsSunken() const;
- TInt Depth() const;
- void DrawOutline(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor) const;
- void DrawRectOutline(CGraphicsContext& aGc,const TRect& aRect) const;
- void DrawInline(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor) const;
- TMargins OutlineMargins() const;
- TMargins BorderMargins() const;
- TMargins InlineMargins() const;
- TRect OutlineInnerRect(const TRect& aOuterRect) const;
- TRect BorderInnerRect(const TRect& aOuterRect) const;
- TInt BorderRounding() const;
- TInt InlineRounding() const;
- void DrawOneStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aMidlight,TRgb aMid) const;
- void DrawTwoStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aLight,TRgb aMidlight,TRgb aMid,TRgb aDark) const;
- void DrawInvertedTwoStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aLight,TRgb aMidlight,TRgb aMid,TRgb aDark) const;
- void DrawThreeStep(CGraphicsContext& aGc,const TRect& aRect,TRgb aBack,TRgb aLight,TRgb aMidlight,TRgb aMid,TRgb aDark) const;
- void DrawTopLeft(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor,const TInt aRounding) const;
- void DrawRoundedTopLeft(CGraphicsContext& aGc,const TRect& aRect,const TInt aRounding) const;
- void DrawBottomRight(CGraphicsContext& aGc,const TRect& aRect,TRgb aColor,const TInt aRounding) const;
- void DrawRoundedBottomRight(CGraphicsContext& aGc,const TRect& aRect,const TInt aRounding) const;
- void DrawRoundedCorner(CGraphicsContext& aGc,const TPoint& aStart,const TInt aRoundedLength, const TBool aUp, const TBool aRight) const;
- TInt RoundingMargin(const TInt aRoundedLength) const;
- inline TInt InternalType() const;
- void TranslateLegacyTypes();
- private:
- TInt iType;
- };
- class MGulLogicalBorder
- {
- public:
- virtual void Draw(const TGulBorder& aBorder,CGraphicsContext& aGc, const TRect& aRect, const TGulBorder::TColors& aBorderColors) const=0;
- virtual TMargins Margins(const TGulBorder& aBorder) const=0;
- private:
- __declspec(dllexport) virtual void MGulLogicalBorderReserved();
- };
- class GulTls
- {
- public:
- __declspec(dllexport) static void SetLogicalBorder(MGulLogicalBorder* aLogicalBorder);
- __declspec(dllexport) static const MGulLogicalBorder* LogicalBorder();
- };
- #line 12 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulftflg.hrh" /* stack depth 7 */
- #line 13 "C:\Symbian\9.1\S60_3rd\epoc32\include\gulutil.h" /* stack depth 6 */
- const TUint KTextUtilClipEndChar=0x2026;
- const TUint KColumnListSeparator='t';
- class CFont;
- class CFbsFont;
- class CWsScreenDevice;
- class TResourceReader;
- class CColorArray;
- class CGraphicsDevice;
- class RWsSession;
- class CColorList;
- template <class T> class CArrayFix;
- class TMargins8
- {
- public :
- TInt8 iLeft;
- TInt8 iRight;
- TInt8 iTop;
- TInt8 iBottom;
- public :
- __declspec(dllexport) TMargins8();
- __declspec(dllexport) void SetAllValuesTo(TInt aCommonValue);
- __declspec(dllexport) TRect InnerRect(const TRect& aOuterRect) const;
- __declspec(dllexport) TRect OuterRect(const TRect& aInnerRect) const;
- __declspec(dllexport) TSize SizeDelta() const;
- };
- class DrawUtils
- {
- public:
- __declspec(dllexport) static void DrawText(CGraphicsContext& aGc,const TDesC& aString,const TRect& aBox,TInt aBaseLineOffset,
- CGraphicsContext::TTextAlign aHoriz,TInt aMargin,const CFont* aFont);
- __declspec(dllexport) static void DrawBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);
- __declspec(dllexport) static void ClearBetweenRects(CGraphicsContext& aGc,const TRect& aOuterRect,const TRect& aInnerRect);
- };
- class TextUtils
- {
- public:
- __declspec(dllexport) static void ClipToFit(TDes& aBuffer,const CFont& aFont,TInt aMaxWidthInPixels,TChar aAlternativeEnd=KTextUtilClipEndChar);
- __declspec(dllexport) static TInt ColumnText(TPtrC& aColumnText,TInt aColumn,const TDesC* aSourceText,TChar aColumnSeparator=KColumnListSeparator);
- __declspec(dllexport) static void TruncateToNumChars(TDes& aBuffer, TInt numChars);
- };
- class FontUtils
- {
- public:
- __declspec(dllexport) static void GetAvailableFontsL(CGraphicsDevice& aDevice,CDesCArray& aFontNameList,
- TInt aFonts=0x10 );
- __declspec(dllexport) static TInt TypefaceAttributes(CGraphicsDevice& aDevice,const TDesC& aTypefaceName);
- __declspec(dllexport) static TInt GetAvailableHeightsInTwipsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
- CArrayFix<TInt>& aHeightList);
- __declspec(dllexport) static TInt GetAvailableHeightsInTwipsAndPointsL(CGraphicsDevice& aDevice,const TDesC& aTypefaceName,
- CArrayFix<TInt>& aTwipsList,CDesCArray& aPointsList);
- __declspec(dllexport) static TInt PointsFromTwips(TInt aTwips);
- __declspec(dllexport) static TInt TwipsFromPoints(TInt aPoints);
- __declspec(dllexport) static TInt TwipsFromPoints(const TDesC& aPoints);
- __declspec(dllexport) static TInt IndexOfNearestHeight(CArrayFix<TInt>& aTwipsList,TInt aHeight);
- };
- class ResourceUtils
- #line 120
- {
- public:
- __declspec(dllexport) static CFbsFont* CreateNamedScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- __declspec(dllexport) static CFbsFont* CreateNamedScreenFontInPixelsL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- __declspec(dllexport) static CFbsFont* CreateScreenFontL(TResourceReader& aResourceReader,CWsScreenDevice& aScreenDevice);
- inline static TInt8 ReadTInt8L(TResourceReader& aReader);
- inline static TInt16 ReadTInt16L(TResourceReader& aReader);
- inline static TInt32 ReadTInt32L(TResourceReader& aReader);
- __declspec(dllexport) static void PopulateColorArrayL(CColorArray& aColors,TResourceReader& aReader);
- private:
- enum TResourceTypeInt { EResourceInt8,EResourceInt16,EResourceInt32 };
- private:
- __declspec(dllexport) static TInt32 ReadResourceIntL(TResourceReader& aReader,TResourceTypeInt aSize);
- };
- class ColorUtils
- {
- public:
- enum TBitmapOrientation
- {
- EBitmapOrientationVertical,
- EBitmapOrientationHorizontal
- };
- public:
- __declspec(dllexport) static TRgb ColorAdjust(TRgb aColor,TInt aPercentage);
- __declspec(dllexport) static void CreateGradientBitmapL(CFbsBitmap& aBitmap,RWsSession& aWs,TInt aBreadth,
- TBitmapOrientation aOrientation,TRgb aStartColor,TRgb aEndColor);
- __declspec(dllexport) static CColorList* CreateSystemColorListL(RFs& aFs);
- __declspec(dllexport) static CColorList* CreateSystemColorListL(RFs& aFs,const CColorList& aColorList);
- __declspec(dllexport) static void UpdateSystemColorListL(RFs& aFs,CColorList& aColorList);
- __declspec(dllexport) static void GetRgbDerivedBorderColors(TGulBorder::TColors& aBorderColors,TRgb aBackgroundColor,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbDarkerColor(TRgb aRgb,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbMidDarkerColor(TRgb aRgb,TDisplayMode aMode);
- __declspec(dllexport) static TRgb RgbLighterColor(TRgb aRgb,TDisplayMode aMode);
- };
- class TFindWidthOfWidestTextItem
- #line 176
- {
- protected:
- inline TFindWidthOfWidestTextItem() {}
- public:
- __declspec(dllexport) TInt MaximumWidthInPixels(const CFont& aFont) const;
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const=0;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const=0;
- };
- class TFindWidthOfWidestDigit : public TFindWidthOfWidestTextItem
- #line 209
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDigit();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDigitType : public TFindWidthOfWidestTextItem
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDigitType(TDigitType aDigitType);
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- private:
- TDigitType iDigitType;
- };
- class TFindWidthOfWidestAmPmName : public TFindWidthOfWidestTextItem
- #line 243
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAmPmName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestAbbreviatedDayName : public TFindWidthOfWidestTextItem
- #line 261
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAbbreviatedDayName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDayName : public TFindWidthOfWidestTextItem
- #line 279
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDayName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestAbbreviatedMonthName : public TFindWidthOfWidestTextItem
- #line 297
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestAbbreviatedMonthName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestMonthName : public TFindWidthOfWidestTextItem
- #line 314
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestMonthName();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- class TFindWidthOfWidestDateSuffix : public TFindWidthOfWidestTextItem
- #line 331
- {
- public:
- __declspec(dllexport) TFindWidthOfWidestDateSuffix();
- private:
- virtual void GetFirstAndLastIndex(TInt& aFirstIndex, TInt& aLastIndex) const;
- virtual void GetTextItem(TDes& aText, TInt aIndex) const;
- };
- inline TInt8 ResourceUtils::ReadTInt8L(TResourceReader& aReader)
- { return((TInt8)ReadResourceIntL(aReader,EResourceInt8)); }
- inline TInt16 ResourceUtils::ReadTInt16L(TResourceReader& aReader)
- { return((TInt16)ReadResourceIntL(aReader,EResourceInt16)); }
- inline TInt32 ResourceUtils::ReadTInt32L(TResourceReader& aReader)
- { return((TInt32)ReadResourceIntL(aReader,EResourceInt32)); }
- #line 10 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 5 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\biditext.h" /* stack depth 6 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\bidi.h" /* stack depth 7 */
- #line 16
- class RWriteStream;
- class RReadStream;
- class TBidirectionalState
- #line 31
- {
- public:
- class TRunInfo
- #line 44
- {
- public:
- TUint iCategory;
- TUint8 iEmbeddingLevel;
- TUint8 iDirection;
- TInt iIndex;
- TInt iStart;
- TInt iLength;
- };
- __declspec(dllexport) TBidirectionalState();
- __declspec(dllexport) void ReorderLine(TRunInfo* aRunInfo,TInt aRuns,TBool aParStart,TBool aParEnd,TBool aParRightToLeft,
- TChar::TBdCategory aNextCategory,TChar::TBdCategory aNextStrongCategory,
- TBool& aVisualEndIsAmbiguous);
- __declspec(dllexport) void ReorderLine(TRunInfo* aRunInfo,TInt aRuns,TBool aParStart,TBool aParEnd,TBool aParRightToLeft,
- TChar::TBdCategory aNextCategory,TChar::TBdCategory aNextStrongCategory);
- __declspec(dllexport) static TInt ReorderText(const TText* aText,TInt aLength,TBool aParRightToLeft,TText*& aNewText);
- __declspec(dllexport) static void ReverseGroups(TText* aStart,TInt aLength);
- __declspec(dllexport) void Reset();
- __declspec(dllexport) TBool IsDefault() const;
- __declspec(dllexport) TBool operator==(const TBidirectionalState& aState) const;
- __declspec(dllexport) void ExternalizeL(RWriteStream& aDest);
- __declspec(dllexport) void InternalizeL(RReadStream& aSource);
- TBool ParRightToLeft() const { return iStack[0].iEmbeddingLevel & 1; }
- private:
- enum TCategory
- {
- ELeftToRight = 1 << TChar::ELeftToRight,
- ELeftToRightEmbedding = 1 << TChar::ELeftToRightEmbedding,
- ELeftToRightOverride = 1 << TChar::ELeftToRightOverride,
- ERightToLeft = 1 << TChar::ERightToLeft,
- ERightToLeftArabic = 1 << TChar::ERightToLeftArabic,
- ERightToLeftEmbedding = 1 << TChar::ERightToLeftEmbedding,
- ERightToLeftOverride = 1 << TChar::ERightToLeftOverride,
- EPopDirectionalFormat = 1 << TChar::EPopDirectionalFormat,
- EEuropeanNumber = 1 << TChar::EEuropeanNumber,
- EEuropeanNumberSeparator = 1 << TChar::EEuropeanNumberSeparator,
- EEuropeanNumberTerminator = 1 << TChar::EEuropeanNumberTerminator,
- EArabicNumber = 1 << TChar::EArabicNumber,
- ECommonNumberSeparator = 1 << TChar::ECommonNumberSeparator,
- ENonSpacingMark = 1 << TChar::ENonSpacingMark,
- EBoundaryNeutral = 1 << TChar::EBoundaryNeutral,
- EParagraphSeparator = 1 << TChar::EParagraphSeparator,
- ESegmentSeparator = 1 << TChar::ESegmentSeparator,
- EWhitespace = 1 << TChar::EWhitespace,
- EOtherNeutral = 1 << TChar::EOtherNeutral,
- EBdControlsGroup = ELeftToRightEmbedding | ERightToLeftEmbedding |
- ELeftToRightOverride | ERightToLeftOverride | EPopDirectionalFormat,
- ELeftToRightGroup = ELeftToRight | EEuropeanNumber | ELeftToRightOverride | ELeftToRightEmbedding,
- ERightToLeftGroup = ERightToLeft | EArabicNumber | ERightToLeftArabic | ERightToLeftOverride |
- ERightToLeftEmbedding,
- EStrongGroup = ELeftToRightEmbedding | ERightToLeftEmbedding
- | ELeftToRightOverride | ERightToLeftOverride
- | ELeftToRight | ERightToLeft | ERightToLeftArabic,
- ENoCategory = 0
- };
- enum
- {
- EMaxExplicitLevel = 61,
- EMaxLevel = 63,
- EMaxStackLevels = 62
- };
- enum TOverrideState
- {
- ENoOverrideState = 0,
- ELeftToRightOverrideState = ELeftToRightOverride,
- ERightToLeftOverrideState = ERightToLeftOverride
- };
- class TStackItem
- {
- public:
- TUint8 iEmbeddingLevel;
- TOverrideState iOverrideState;
- TCategory iStartCategory;
- };
- public:
- class TReorderContext
- {
- public:
- void SetNextCategory(TChar::TBdCategory aCat);
- void SetNextStrongCategory(TChar::TBdCategory aCat);
- public:
- TCategory iNextCategory;
- TCategory iNextStrongCategory;
- TRunInfo* iRunInfo;
- TInt iRuns;
- TUint32 iCategories;
- TCategory iLastStrongCategory;
- };
- public:
- static TInt GenerateBdRunArray(const TText* aText, TInt aLength,
- TBidirectionalState::TRunInfo* aRun, TInt aMaxRuns);
- private:
- const TStackItem& State() const { return iStack[iStackLevel]; }
- TCategory Push(TCategory aStartCategory);
- TCategory Pop();
- public:
- TBidirectionalState(TChar::TBdCategory aPrevCat,
- TChar::TBdCategory aPrevStrongCat, TBool aParRightToLeft);
- void HandleBdControls(TReorderContext& aContext);
- void ResolveWeakTypesW1W2W3(TReorderContext& aContext);
- void ResolveWeakTypesW4W5W6(TReorderContext& aContext);
- void ResolveWeakTypesW7(TReorderContext& aContext);
- void ResolveNeutralTypes(TReorderContext& aContext);
- void ResolveImplicitLevels(TReorderContext& aContext);
- void PrepareForNextLine(const TReorderContext& aContext);
- void ReorderRuns(TReorderContext& aContext);
- static TInt CatToNumber(TInt aCat);
- static TCategory CharToBdCat(TChar::TBdCategory aCat);
- static TCategory UintToBdCat(TUint aCat);
- static void DeneutralizeRuns(TRunInfo* aStart, TRunInfo* aEnd,
- TCategory aStartCategory, TCategory aEndCategory);
- private:
- TCategory iPreviousCategory;
- TCategory iPreviousStrongCategory;
- TInt16 iStackLevel;
- TInt8 iPushesBeyond60;
- TInt8 iPushesBeyond61;
- TStackItem iStack[EMaxStackLevels];
- };
- #line 11 "C:\Symbian\9.1\S60_3rd\epoc32\include\biditext.h" /* stack depth 6 */
- enum CGraphicsContext::TTextAlign;
- class MLineBreaker;
- class RRunInfoArray;
- class CBidiTextTls;
- #line 27
- class TBidiText
- {
- public:
- enum TDirectionality
- {
- ELeftToRight = 0,
- ERightToLeft = 1
- };
- enum TPanicCodes
- {
- EPanicRunArrayNull,
- };
- __declspec(dllexport) static TDirectionality ScriptDirectionality(TLanguage aLanguage);
- __declspec(dllexport) static TDirectionality TextDirectionality(
- const TDesC& aText, TBool* aFound = 0);
- protected:
- TBidiText();
- public:
- __declspec(dllexport) static TBidiText* NewL(TInt aReservedMaxLength, TInt aMaxLines);
- __declspec(dllexport) static TBidiText* NewL(const TDesC& aText, TInt aMaxLines);
- __declspec(dllexport) static TBidiText* NewL(const TDesC& aText, TInt aMaxLines,
- TDirectionality aDirectionality);
- __declspec(dllexport) TInt SetText(const TDesC& aText, RRunInfoArray& aRunInfoArray);
- __declspec(dllexport) TInt SetText(const TDesC& aText, TDirectionality aDirectionality, RRunInfoArray& aRunInfoArray);
- __declspec(dllexport) void SetTruncationChar(TChar aTruncateWith);
- __declspec(dllexport) void WrapText(TInt aWrappingWidth, const CFont& aFont,
- const MLineBreaker* aBreaker, TInt aMaxLines);
- __declspec(dllexport) void WrapText(TInt aWrappingWidth, const CFont& aFont,
- const MLineBreaker* aBreaker = 0 );
- __declspec(dllexport) TSize MinimumSize(TInt aWrappingWidth, const CFont& aFont, TInt aLineGap, TInt aMaxLines = -1,
- const MLineBreaker* aBreaker = 0 ) const;
- __declspec(dllexport) TPtrC Text() const;
- __declspec(dllexport) TPtrC DisplayText() const;
- __declspec(dllexport) TInt WrappingWidth() const;
- __declspec(dllexport) TDirectionality Directionality() const;
- __declspec(dllexport) TChar TruncationChar() const;
- __declspec(dllexport) TInt NumberOfLinesInDisplayText() const;
- __declspec(dllexport) TPtrC LineOfDisplayText(TInt aLine, TInt& aWidthInPixels) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TPoint& aLeft) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc,
- const TPoint& aLeft, TInt aBaseLineSpacing,
- CGraphicsContext::TTextAlign aAlignment) const;
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc,
- const TPoint& aLeft, TInt aBaseLineSpacing) const;
- private:
- TInt DoWrapText(TInt aWrappingWidth, const CFont& aFont, const MLineBreaker* aBreaker,
- TInt aMaxLines, TText*& aOutputText, TInt& aNumLines, TInt16* aLineWidthArray) const;
- };
- #line 93
- class RRunInfoArray
- {
- friend class TBidiText;
- public:
- __declspec(dllexport) RRunInfoArray();
- __declspec(dllexport) void OpenL();
- __declspec(dllexport) void Close();
- private:
- TBidirectionalState::TRunInfo* RunArray() const;
- private:
- CBidiTextTls* iTls;
- };
- #line 18 "C:\Symbian\9.1\S60_3rd\epoc32\include\coetextdrawer.h" /* stack depth 5 */
- #line 30
- class CCoeTextDrawerBase;
- class TCoeTextTypeAdaptor;
- #line 51
- class XCoeTextDrawer
- {
- public:
- __declspec(dllexport) XCoeTextDrawer(CCoeTextDrawerBase& aTextDrawer);
- __declspec(dllexport) ~XCoeTextDrawer();
- __declspec(dllexport) void operator=(CCoeTextDrawerBase& aTextDrawer);
- __declspec(dllexport) CCoeTextDrawerBase *operator ->();
- __declspec(dllexport) void DrawText(CGraphicsContext& aGc, const TBidiText& aText, const TRect& aTextRect, const CFont& aFont) const;
- __declspec(dllexport) void DrawDisplayOrderedText(CGraphicsContext& aGc, const TDesC& aText, const TRect& aTextRect, const CFont& aFont) const;
- __declspec(dllexport) TRect ClipRect() const;
- __declspec(dllexport) void SetClipRect(const TRect& aClipRect);
- private:
- XCoeTextDrawer(XCoeTextDrawer& aTextDrawer);
- private:
- CCoeTextDrawerBase* iTextDrawer;
- TRect iClipRect;
- };
- class CCoeTextDrawerBaseExt;
- #line 96
- class CCoeTextDrawerBase : public CBase, public MObjectProvider
- {
- friend class XCoeTextDrawer;
- public:
- __declspec(dllexport) ~CCoeTextDrawerBase();
- __declspec(dllexport) virtual void Reset();
- virtual TRgb TextColor() const = 0;
- virtual void SetTextColor(TRgb aColor) = 0;
- __declspec(dllexport) TGulAlignment Alignment() const;
- __declspec(dllexport) void SetAlignment(const TGulAlignment& aAlignment);
- __declspec(dllexport) TMargins8 Margins() const;
- __declspec(dllexport) void SetMargins(const TMargins8& aMargins);
- __declspec(dllexport) TInt LineGapInPixels() const;
- __declspec(dllexport) void SetLineGapInPixels(TInt aLineGapInPixels);
- __declspec(dllexport) TBool IsReusable() const;
- __declspec(dllexport) void SetReusable(TBool aIsReusable);
- protected:
- __declspec(dllexport) CCoeTextDrawerBase();
- __declspec(dllexport) TInt Construct();
- private:
- virtual void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const = 0;
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved1();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved2();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved3();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved4();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved5();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved6();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved7();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved8();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved9();
- __declspec(dllexport) virtual void CCoeTextDrawerBase_Reserved10();
- private:
- TBool iIsReusable;
- TGulAlignment iAlignment;
- TMargins8 iMargins;
- TInt iLineGap;
- CCoeTextDrawerBaseExt* iExtension;
- };
- #line 169
- class TCoeTextTypeAdaptor
- {
- public:
- __declspec(dllexport) TCoeTextTypeAdaptor(const TDesC& aText);
- __declspec(dllexport) TCoeTextTypeAdaptor(const TBidiText& aText);
- __declspec(dllexport) TInt NumberOfLines() const;
- __declspec(dllexport) TPtrC LineOfText(TInt aLineNumber, TInt& aWidthInPixels, const CFont& aFont) const;
- __declspec(dllexport) TBool HasRightToLeftDirectionality() const;
- private:
- enum TTextType
- {
- ENewlineSeparated,
- EBidiText
- };
- const TAny* iText;
- TTextType iTextType;
- };
- #line 196
- class CCoePlainTextDrawer : public CCoeTextDrawerBase
- {
- public:
- enum { ETypeId = 0x1020831A };
- public:
- __declspec(dllexport) static CCoePlainTextDrawer* New(TRgb aTextColor);
- __declspec(dllexport) TRgb TextColor() const;
- __declspec(dllexport) void SetTextColor(TRgb aTextColor);
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- void DrawText(CGraphicsContext& aGc, const TCoeTextTypeAdaptor& aText, const CFont& aFont,
- const TRect& aTextRect, const TRect& aClipRect) const;
- void Reset();
- CCoePlainTextDrawer(TRgb aTextColor);
- __declspec(dllexport) TInt Construct();
- private:
- TRgb iTextColor;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coemain.h" /* stack depth 4 */
- #line 42
- class CVwsSessionWrapper;
- class MVwsSessionWrapperObserver;
- class CCoeAppUi;
- class CCoeEnv;
- class TResourceReader;
- class RGenericPointerArray;
- enum TActivePriority
- {
- EActivePriorityClockTimer=300,
- EActivePriorityIpcEventsHigh=200,
- EActivePriorityFepLoader=150,
- EActivePriorityWsEvents=100,
- EActivePriorityRedrawEvents=50,
- EActivePriorityDefault=0,
- EActivePriorityLogonA=-10
- };
- class CCoeEnvExtra;
- class CCoeStatic;
- class MCoeObserverOfLoadedFep
- #line 90
- {
- public:
- virtual void HandleChangeInLoadedFep()=0;
- protected:
- __declspec(dllexport) MCoeObserverOfLoadedFep();
- private:
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_1();
- __declspec(dllexport) virtual void MCoeObserverOfLoadedFep_Reserved_2();
- private:
- TInt iMCoeObserverOfLoadedFep_Reserved1;
- };
- class TCoeInputCapabilities;
- class MCoeFocusObserver
- #line 125
- {
- public:
- virtual void HandleChangeInFocus()=0;
- virtual void HandleDestructionOfFocusedItem()=0;
- protected:
- __declspec(dllexport) MCoeFocusObserver();
- private:
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeFocusObserver_Reserved_2();
- private:
- TInt iMCoeFocusObserver_Reserved1;
- };
- class MCoeResourceChangeObserver
- {
- public:
- virtual void HandleResourceChange()=0;
- protected:
- __declspec(dllexport) MCoeResourceChangeObserver();
- private:
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeResourceChangeObserver_Reserved_2();
- private:
- TInt iMCoeResourceChangeObserver_Reserved1;
- };
- class MCoeForegroundObserver
- #line 182
- {
- public:
- virtual void HandleGainingForeground()=0;
- virtual void HandleLosingForeground()=0;
- protected:
- __declspec(dllexport) MCoeForegroundObserver();
- private:
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeForegroundObserver_Reserved_2();
- private:
- TInt iMCoeForegroundObserver_Reserved1;
- };
- class MCoeMessageObserver
- #line 214
- {
- public:
- enum TMessageResponse
- {
- EMessageNotHandled,
- EMessageHandled
- };
- public:
- #line 236
- virtual TMessageResponse HandleMessageL(TUint32 aClientHandleOfTargetWindowGroup, TUid aMessageUid, const TDesC8& aMessageParameters)=0;
- protected:
- __declspec(dllexport) MCoeMessageObserver();
- private:
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageObserver_Reserved_2();
- private:
- TInt iMCoeMessageObserver_Reserved1();
- };
- class MCoeMessageMonitorObserver
- {
- public:
- virtual void MonitorWsMessage(const TWsEvent& aEvent)=0;
- private:
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeMessageMonitorObserver_Reserved_2();
- };
- class MCoeFepObserver;
- typedef void (*TCoeFepObserverFunction)(MCoeFepObserver& aFepObserver);
- class CCoeFepParameters : public CBase
- {
- public:
- static CCoeFepParameters* NewLC();
- private:
- inline CCoeFepParameters() {}
- };
- class CCoeFep;
- class CCoeScheduler : public CBaActiveScheduler
- {
- public:
- __declspec(dllexport) CCoeScheduler(CCoeEnv* aCoeEnv);
- __declspec(dllexport) virtual void WaitForAnyRequest();
- __declspec(dllexport) virtual void DisplayError(TInt aError) const;
- inline CCoeEnv* CoeEnv() {return iCoeEnv;}
- TBool Flush() const;
- void SetFlush(TBool aFlush);
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- CCoeEnv* iCoeEnv;
- TBool iFlush;
- };
- class CCoeFontProvider;
- class CCoeEnv : public CActive
- , public MObjectProvider
- #line 331
- {
- public:
- __declspec(dllexport) ~CCoeEnv();
- __declspec(dllexport) CCoeEnv();
- __declspec(dllexport) virtual void DestroyEnvironment();
- __declspec(dllexport) CCoeAppUi* SetAppUi(CCoeAppUi* aAppUi);
- __declspec(dllexport) void ExecuteD();
- __declspec(dllexport) void RunL();
- __declspec(dllexport) void DoCancel();
- __declspec(dllexport) virtual void HandleError(TInt aError);
- __declspec(dllexport) void ConstructL();
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState);
- __declspec(dllexport) void ConstructL( TBool aInitialFocusState, TInt aDefaultScreenNumber ) ;
- __declspec(dllexport) void ConstructL(TBool aInitialFocusState, TInt aDefaultScreenNumber, TInt aWindowGroupID );
- inline const TWsEvent& LastEvent() const;
- inline CCoeAppUi* AppUi() const;
- inline RFs& FsSession() const;
- inline RWsSession& WsSession() const;
- inline RWindowGroup& RootWin() const;
- inline CWindowGc& SystemGc() const;
- inline const CFont* NormalFont() const;
- inline CWsScreenDevice* ScreenDevice() const;
- inline TBool IsSchedulerRunning() const;
- __declspec(dllexport) CWindowGc* CreateGcL();
- __declspec(dllexport) void Flush(TTimeIntervalMicroSeconds32 aDelay=0);
- __declspec(dllexport) CFbsFont* CreateDeviceFontL(CGraphicsDevice* aDevice,const TFontSpec& aFontSpec);
- __declspec(dllexport) CFbsFont* CreateScreenFontL(const TFontSpec& aFontSpec);
- __declspec(dllexport) void ReleaseScreenFont(CFont* aFont) const;
- __declspec(dllexport) void CreateResourceReaderLC(TResourceReader& aReader,TInt aResourceId) const;
- inline void ReadResource(TDes& aDes,TInt aResourceId) const;
- inline void ReadResourceL(TDes& aDes,TInt aResourceId) const;
- inline HBufC* AllocReadResourceL(TInt aResourceId) const;
- inline HBufC* AllocReadResourceLC(TInt aResourceId) const;
- __declspec(dllexport) TInt AddResourceFileL(const TDesC& aFileName);
- __declspec(dllexport) void DeleteResourceFile(TInt aOffset);
- inline CDesCArrayFlat* ReadDesCArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void LeaveWithErrorText(const TDesC& aMsg,const TDesC* aContextText=0 );
- __declspec(dllexport) void Format128(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) void Format256(TDes& aDes,TInt aResourceId,...);
- __declspec(dllexport) static TVersion Version();
- __declspec(dllexport) static CCoeEnv* Static();
- __declspec(dllexport) void SimulateKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) TBool IsWservEventPending() const;
- __declspec(dllexport) TBool IsRedrawEventPending() const;
- __declspec(dllexport) void PrepareToExit();
- __declspec(dllexport) void BringOwnerToFront();
- __declspec(dllexport) void ReadResourceAsDes8(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes8L(TDes8& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8L(TInt aResourceId) const;
- __declspec(dllexport) HBufC8* AllocReadResourceAsDes8LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC8ArrayFlat* ReadDesC8ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void SuppressNextFlush();
- __declspec(dllexport) void ReadResourceAsDes16(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) void ReadResourceAsDes16L(TDes16& aDes,TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16L(TInt aResourceId) const;
- __declspec(dllexport) HBufC16* AllocReadResourceAsDes16LC(TInt aResourceId) const;
- __declspec(dllexport) CDesC16ArrayFlat* ReadDesC16ArrayResourceL(TInt aResourceId);
- __declspec(dllexport) void AddObserverOfLoadedFepL(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void RemoveObserverOfLoadedFep(MCoeObserverOfLoadedFep& aObserverOfLoadedFep);
- __declspec(dllexport) void AddFocusObserverL(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void RemoveFocusObserver(MCoeFocusObserver& aFocusObserver);
- __declspec(dllexport) void SyncNotifyFocusObserversOfChangeInFocus();
- void NotifyFocusObserversOfDestructionOfFocusedItem();
- __declspec(dllexport) void AddForegroundObserverL(MCoeForegroundObserver& aForegroundObserver);
- __declspec(dllexport) void RemoveForegroundObserver(MCoeForegroundObserver& aForegroundObserver);
- void NotifyForegroundObserversOfGainingForeground();
- void NotifyForegroundObserversOfLosingForeground();
- __declspec(dllexport) void AddResourceChangeObserverL(MCoeResourceChangeObserver& aResourceChangeObserver);
- __declspec(dllexport) void RemoveResourceChangeObserver(MCoeResourceChangeObserver& aResourceChangeObserver);
- void NotifyResourceObserversOfChangeInResource();
- __declspec(dllexport) void AddMessageObserverL(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void RemoveMessageObserver(MCoeMessageObserver& aMessageObserver);
- __declspec(dllexport) void AddMessageMonitorObserverL(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- __declspec(dllexport) void RemoveMessageMonitorObserver(MCoeMessageMonitorObserver& aMessageMonitorObserver);
- void NotifyMessageMonitorObserversOfEvent(const TWsEvent& aEvent);
- __declspec(dllexport) void AddFepObserverL(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void RemoveFepObserver(MCoeFepObserver& aFepObserver);
- __declspec(dllexport) void ForEachFepObserverCall(TCoeFepObserverFunction aFepObserverFunction);
- void EnsureCorrectFepIsLoadedL();
- #line 419
- void EnsureSpecifiedFepIsLoadedL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid);
- __declspec(dllexport) void InstallFepL(TUid aFepUid, const TBool aLeave);
- __declspec(dllexport) void AvailableFepsL(RArray<TUid>& aUids, CDesCArray* aDisplayNames);
- __declspec(dllexport) void ExecuteFepSettingsDialogL(TUid aFepUid);
- __declspec(dllexport) CCoeFep* Fep() const;
- __declspec(dllexport) TUid FepUid() const;
- __declspec(dllexport) CWindowGc* SwapSystemGc(CWindowGc* aGc);
- __declspec(dllexport) static CCoeStatic* Static(TUid aUid);
- __declspec(dllexport) CCoeStatic* FindStatic(TUid aUid);
- __declspec(dllexport) void DisableExitChecks(TBool aDisable);
- __declspec(dllexport) void InputCapabilitiesChanged();
- __declspec(dllexport) TBool IsResourceAvailableL(TInt aResourceId) const;
- __declspec(dllexport) CCoeTextDrawerBase& DefaultTextDrawer() const;
- __declspec(dllexport) const CCoeFontProvider& DefaultFontProvider() const;
- public:
- TInt AppStartupInstrumentationEventIdBase();
- public:
- __declspec(dllexport) void GetMessageNotifyingObserversLC(TUint32 aClientHandleOfTargetWindowGroup, TUid& aMessageUid, TPtr8& aMessageParameters, const TWsEvent& aMessageEvent);
- protected:
- __declspec(dllexport) void SetAppStartupInstrumentationEventIdBaseL(TInt aAppStartupInstrumentationEventIdBase);
- __declspec(dllexport) void DestroyEnvironmentStatic();
- __declspec(dllexport) void DestroyEnvironmentEnd();
- private:
- __declspec(dllexport) virtual void Reserved_1();
- __declspec(dllexport) virtual void Reserved_2();
- private:
- __declspec(dllexport) TInt RunError(TInt aError);
- public:
- void ReadEvent();
- CVwsSessionWrapper* InitViewServerSessionL(MVwsSessionWrapperObserver& aObserver);
- void AddStatic(CCoeStatic* aStatic);
- void QueueNotificationToFocusObserversOfChangeInFocus();
- TInt FocusObserverNotificationIdentifier() const;
- TBool FocusObserverNotificationIsStillPending(TInt aFocusObserverNotificationIdentifier) const;
- void RefetchPixelMapping();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- public:
- __declspec(dllexport) void SetZoomFactor(const TZoomFactor& aZoomFactor);
- __declspec(dllexport) TZoomFactor ZoomFactor() const;
- protected:
- __declspec(dllexport) virtual void DestroyScreen();
- inline TDes& ErrorText();
- inline TDes& ErrorContextText();
- private:
- __declspec(dllexport) virtual void InitSystemFontsL();
- __declspec(dllexport) virtual TInt ResourceFileVersionNumber() const;
- void CreateActiveSchedulerL();
- void ConnectToFileServerL();
- void ConnectToWindowServerL();
- void InitScreenL( TInt aDefaultScreenNumber );
- void InitRootWindowL(TBool aInitialFocusState, TInt aWindowGroupID=0);
- void InitSystemGcL();
- RResourceFile& ResourceFileForId(TInt aResourceId) const;
- void DestroyAllResourceFiles();
- void AddObserverL(TAny* aObserver, RGenericPointerArray& aArray);
- void RemoveObserver(TAny* aObserver, RGenericPointerArray& aArray);
- inline TBool DisableShutdownChecks() const;
- void UpdateStatic(CCoeAppUi* aNewAppUi);
- void SetInitialHandleCount();
- inline TUint InitialHandleCount() const;
- protected:
- CCoeAppUi* iAppUi;
- RFs iFsSession;
- RWsSession iWsSession;
- RWindowGroup iRootWin;
- CWindowGc* iSystemGc;
- const CFont* iNormalFont;
- CWsScreenDevice* iScreen;
- TWsEvent iLastEvent;
- CArrayFix<RResourceFile> * iResourceFileArray;
- private:
- enum TFlags
- {
- ENoShutdownChecks =0x0001,
- EExtraPointerIsErrorCode =0x0002,
- ESchedulerIsRunning =0x0004
- };
- private:
- TDes* iErrorText;
- TDes* iErrorContextText;
- CCoeEnvExtra* iExtra;
- CTrapCleanup* iCleanup;
- TUint iEnvFlags;
- };
- class CCoeStatic : public CBase
- #line 524
- {
- public:
- enum TScope
- {
- EThread,
- EApp,
- };
- enum {EDefaultDestructionPriority=100};
- public:
- __declspec(dllexport) ~CCoeStatic();
- protected:
- __declspec(dllexport) CCoeStatic();
- __declspec(dllexport) CCoeStatic(TUid aUid,TScope=EThread);
- __declspec(dllexport) CCoeStatic(TUid aUid,TInt aDestructionPriority,TScope aScope=EThread);
- private:
- __declspec(dllexport) virtual void CCoeStatic_Reserved1();
- __declspec(dllexport) virtual void CCoeStatic_Reserved2();
- private:
- void DoConstruction(TUid aUid,TInt aDestructionPriority,TScope aScope);
- void SetCsAppUi(CCoeAppUi* aAppUi);
- CCoeAppUi* CsAppUi() const;
- TScope CsScope() const;
- inline TInt DestructionPriority() const {return iCsLink.iPriority;}
- private:
- TPriQueLink iCsLink;
- TUid iCsUid;
- TUint iCsAppUiAndScope;
- TInt iCCoeStatic_Reserved1;
- private:
- friend class CCoeEnv;
- friend class CCoeEnvExtra;
- };
- inline const TWsEvent& CCoeEnv::LastEvent() const
- { return(iLastEvent); }
- inline CCoeAppUi* CCoeEnv::AppUi() const
- { return(iAppUi); }
- inline RFs& CCoeEnv::FsSession() const
- { return((RFs&)iFsSession); }
- inline RWsSession& CCoeEnv::WsSession() const
- { return((RWsSession&)iWsSession); }
- inline RWindowGroup& CCoeEnv::RootWin() const
- { return((RWindowGroup&)iRootWin); }
- inline CWindowGc& CCoeEnv::SystemGc() const
- { return((CWindowGc&)*iSystemGc); }
- inline const CFont* CCoeEnv::NormalFont() const
- { return(iNormalFont); }
- inline CWsScreenDevice* CCoeEnv::ScreenDevice() const
- { return(iScreen); }
- inline TDes& CCoeEnv::ErrorText()
- { return *iErrorText; }
- inline TDes& CCoeEnv::ErrorContextText()
- { return *iErrorContextText; }
- inline void CCoeEnv::ReadResource(TDes& aDes,TInt aResourceId) const
- #line 657
- { ReadResourceAsDes16(aDes,aResourceId); }
- inline void CCoeEnv::ReadResourceL(TDes& aDes,TInt aResourceId) const
- #line 668
- { ReadResourceAsDes16L(aDes,aResourceId); }
- inline HBufC* CCoeEnv::AllocReadResourceL(TInt aResourceId) const
- #line 679
- { return AllocReadResourceAsDes16L(aResourceId); }
- inline HBufC* CCoeEnv::AllocReadResourceLC(TInt aResourceId) const
- #line 691
- { return AllocReadResourceAsDes16LC(aResourceId); }
- inline CDesCArrayFlat* CCoeEnv::ReadDesCArrayResourceL(TInt aResourceId)
- { return ReadDesC16ArrayResourceL(aResourceId); }
- #line 727
- inline TBool CCoeEnv::IsSchedulerRunning() const
- {return iEnvFlags&ESchedulerIsRunning;}
- #line 46 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecontrolarray.h" /* stack depth 4 */
- #line 12
- class CCoeControl;
- const TInt KCoeNoControlId = KErrNotFound;
- class TCoeControlWithId
- {
- public:
- TCoeControlWithId(TInt aControlId, CCoeControl* aControl = 0 );
- public:
- CCoeControl* iControl;
- TInt iId;
- };
- #line 46
- class CCoeControlArray : public CBase
- {
- public:
- class TCursor
- {
- public:
- template<typename T> T* Control();
- template<typename T> const T* Control() const;
- __declspec(dllexport) TBool Prev();
- __declspec(dllexport) TBool Next();
- __declspec(dllexport) TBool IsValid() const;
- __declspec(dllexport) TBool operator==(const TCursor& aCursor) const;
- __declspec(dllexport) TBool operator!=(const TCursor& aCursor) const;
- public:
- TCursor(const CCoeControlArray& aArray, TInt aIndex);
- TInt Index() const;
- private:
- __declspec(dllexport) CCoeControl* Ctrl() const;
- void UpdateMemento() const;
- void UpdateIndex() const;
- private:
- const CCoeControlArray* iArray;
- mutable TInt iIndex;
- mutable TCoeControlWithId iMemento;
- };
- public:
- __declspec(dllexport) static CCoeControlArray* NewL(CCoeControl& aOwner);
- __declspec(dllexport) ~CCoeControlArray();
- __declspec(dllexport) TInt Count() const;
- __declspec(dllexport) void Reset();
- __declspec(dllexport) void ResetAndDestroy();
- __declspec(dllexport) void SortById();
- __declspec(dllexport) TBool ControlsOwnedExternally() const;
- __declspec(dllexport) void SetControlsOwnedExternally(TBool aOwnedExternally);
- __declspec(dllexport) TBool IsArrayLocked() const;
- __declspec(dllexport) void SetArrayLocked();
- template<typename T> T* ControlById(TInt aControlId);
- template<typename T> const T* ControlById(TInt aControlId) const;
- __declspec(dllexport) TCursor Begin() const;
- __declspec(dllexport) TCursor End() const;
- __declspec(dllexport) TCursor Find(const CCoeControl* aControl) const;
- __declspec(dllexport) TCursor Find(TInt aControlId) const;
- __declspec(dllexport) TCursor AppendLC(CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TCursor InsertAfterLC(TInt aInsertAfterId, CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TCursor InsertLC(TCursor& aInsertAt, CCoeControl* aControl, TInt aControlId = KCoeNoControlId);
- __declspec(dllexport) TInt Remove(const CCoeControl* aControl);
- __declspec(dllexport) CCoeControl* Remove(TCursor aRemoveAt);
- __declspec(dllexport) CCoeControl* RemoveById(TInt aControlId);
- public:
- __declspec(dllexport) TInt Replace(CCoeControl* aOriginalControl, CCoeControl* aNewControl);
- public:
- __declspec(dllexport) TCoeControlWithId At(TInt aIndex);
- __declspec(dllexport) const TCoeControlWithId At(TInt aIndex) const;
- __declspec(dllexport) TInt Id(const CCoeControl& aControl) const;
- __declspec(dllexport) void Sort(TLinearOrder< TCoeControlWithId > aOrder);
- public:
- enum TEvent
- {
- EControlAdded,
- EControlRemoved
- };
- private:
- __declspec(dllexport) CCoeControlArray(CCoeControl& aOwner);
- TInt IndexById(TInt aControlId) const;
- __declspec(dllexport) CCoeControl* CtrlById(TInt aControlId) const;
- private:
- CCoeControl& iOwner;
- TInt iFlags;
- RArray<TCoeControlWithId> iControls;
- };
- template<typename T>
- T* CCoeControlArray::TCursor::Control()
- {
- return static_cast<T*>(Ctrl());
- }
- template<typename T>
- const T* CCoeControlArray::TCursor::Control() const
- {
- return static_cast<T*>(Ctrl());
- }
- template<typename T>
- T* CCoeControlArray::ControlById(TInt aControlId)
- {
- return static_cast<T*>(CtrlById(aControlId));
- }
- template<typename T>
- const T* CCoeControlArray::ControlById(TInt aControlId) const
- {
- return static_cast<T*>(CtrlById(aControlId));
- }
- #line 55 "C:\Symbian\9.1\S60_3rd\epoc32\include\coecntrl.h" /* stack depth 3 */
- class TResourceReader;
- class CCoeEnv;
- class MCoeControlContext;
- class CCoeControlExtension;
- class MCoeLayoutManager;
- class TCoeZoomWithType;
- class CCoeFontProvider;
- class TCoeFont;
- #line 79
- class TCoeColorUse
- {
- public:
- enum TGround
- {
- EFore=0x01,
- EBack=0x02
- };
- enum TAreas
- {
- EContents=0x10,
- EHighlights=0x20,
- ESurrounds=0x40,
- EBorders=0x80
- };
- enum TFocus
- {
- EActive=0x100,
- EDimmed=0x200,
- EShadowed=0x400,
- EPressed=0x800
- };
- enum TState
- {
- ENormal=0x1000,
- ESet=0x2000,
- EChecked=0x4000
- };
- enum TTones
- {
- ENeutral=0x10000,
- ELight=0x20000,
- EMidLight=0x40000,
- EMid=0x80000,
- EDark=0x100000
- };
- public:
- __declspec(dllexport) TCoeColorUse();
- __declspec(dllexport) void SetUse(TInt aUse);
- __declspec(dllexport) void SetLogicalColor(TInt aLogicalColor);
- __declspec(dllexport) TInt LogicalColor() const;
- __declspec(dllexport) TInt Use() const;
- __declspec(dllexport) TBool IsForeground() const;
- __declspec(dllexport) TBool IsBackground() const;
- __declspec(dllexport) TBool IsContents() const;
- __declspec(dllexport) TBool IsHighlights() const;
- __declspec(dllexport) TBool IsSurrounds() const;
- __declspec(dllexport) TBool IsBorders() const;
- __declspec(dllexport) TBool IsActive() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) TBool IsPressed() const;
- __declspec(dllexport) TBool IsNormal() const;
- __declspec(dllexport) TBool IsSet() const;
- private:
- TInt iLogicalColor;
- TInt iUse;
- TInt iTCoeColorUse_Reserved1;
- };
- class CCoeControl;
- class CCoeTextDrawerBase;
- #line 184
- class MCoeControlBackground
- {
- public:
- #line 198
- virtual void Draw(CWindowGc& aGc, const CCoeControl& aControl, const TRect& aRect) const = 0;
- __declspec(dllexport) virtual void GetTextDrawer(CCoeTextDrawerBase*& aTextDrawer, const CCoeControl* aDrawingControl) const;
- protected:
- __declspec(dllexport) MCoeControlBackground();
- private:
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved1();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved2();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved3();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved4();
- __declspec(dllexport) virtual void MCoeControlBackground_Reserved5();
- private:
- TInt iMCoeControlBackground_Reserved1();
- };
- #line 232
- class MCoeControlHitTest
- {
- public:
- #line 244
- virtual TBool HitRegionContains(const TPoint& aPoint, const CCoeControl& aControl) const = 0;
- protected:
- __declspec(dllexport) MCoeControlHitTest();
- private:
- __declspec(dllexport) virtual void MCoeControlHitTest_Reserved1();
- __declspec(dllexport) virtual void MCoeControlHitTest_Reserved2();
- private:
- TInt iMCoeControlHitTest_Reserved1;
- };
- class RCoeExtensionStorage
- {
- public:
- RCoeExtensionStorage();
- void Close();
- TInt& Flags();
- TInt Flags() const;
- const MCoeControlBackground* Background() const;
- void SetBackground(const MCoeControlBackground* aBackground);
- CCoeControl* Parent();
- TInt SetParent(CCoeControl* aParent);
- const MCoeControlHitTest* HitTestControl() const;
- TInt SetHitTestControl(const MCoeControlHitTest* aHitTest);
- TCoeZoomWithType* ZoomWithType() const;
- TInt SetZoomWithType(TCoeZoomWithType* aZoomWithType);
- const CCoeFontProvider* FontProvider() const;
- TInt SetFontProvider(const CCoeFontProvider* aFontProvider);
- void SetExtension(CCoeControlExtension* aExtension);
- CCoeControlExtension* Extension() const;
- private:
- inline TBool IsFlags() const;
- private:
- union
- {
- TInt iFlags;
- CCoeControlExtension* iExtension;
- };
- };
- class CCoeControl : public CBase
- , public MObjectProvider
- {
- public:
- enum TZoomType
- {
- EAbsoluteZoom,
- ERelativeZoom
- };
- __declspec(dllexport) CCoeControl();
- __declspec(dllexport) CCoeControl(CCoeEnv* aCoeEnv);
- __declspec(dllexport) ~CCoeControl();
- __declspec(dllexport) virtual TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void MakeVisible(TBool aVisible);
- __declspec(dllexport) virtual void SetDimmed(TBool aDimmed);
- __declspec(dllexport) virtual void SetContainerWindowL(const CCoeControl& aContainer);
- __declspec(dllexport) void SetContainerWindowL(RWindow& aWindow);
- __declspec(dllexport) void SetContainerWindowL(RBackedUpWindow& aWindow);
- __declspec(dllexport) virtual void ConstructFromResourceL(TResourceReader& aReader);
- __declspec(dllexport) virtual void ActivateL();
- __declspec(dllexport) virtual void PrepareForFocusLossL();
- __declspec(dllexport) virtual void PrepareForFocusGainL();
- __declspec(dllexport) virtual void SetAdjacent(TInt aAdjacent);
- __declspec(dllexport) virtual void SetNeighbor(CCoeControl* aNeighbor);
- __declspec(dllexport) virtual TBool HasBorder() const;
- __declspec(dllexport) virtual TSize MinimumSize();
- __declspec(dllexport) virtual void HandleResourceChange(TInt aType);
- __declspec(dllexport) virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
- __declspec(dllexport) virtual void GetHelpContext(TCoeHelpContext& aContext) const;
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) TCoeInputCapabilities RecursivelyMergedInputCapabilities() const;
- __declspec(dllexport) void DrawNow() const;
- __declspec(dllexport) void DrawNow(const TRect &aRect) const;
- __declspec(dllexport) void DrawDeferred() const;
- __declspec(dllexport) void SetFocus(TBool aFocus,TDrawNow aDrawNow=ENoDrawNow);
- __declspec(dllexport) void SetExtent(const TPoint& aPosition,const TSize& aSize);
- __declspec(dllexport) void SetSize(const TSize& aSize);
- __declspec(dllexport) TInt SetMaximumWidth(TInt aMaxWidth);
- __declspec(dllexport) void SetPosition(const TPoint& aPosition);
- __declspec(dllexport) void SetRect(const TRect& aRect);
- __declspec(dllexport) void SetExtentToWholeScreen();
- __declspec(dllexport) TBool IsFocused() const;
- __declspec(dllexport) TBool IsVisible() const;
- __declspec(dllexport) TBool IsDimmed() const;
- __declspec(dllexport) RDrawableWindow* DrawableWindow() const;
- __declspec(dllexport) TSize Size() const;
- __declspec(dllexport) TInt MaximumWidth() const;
- __declspec(dllexport) TPoint Position() const;
- __declspec(dllexport) TRect Rect() const;
- __declspec(dllexport) TPoint PositionRelativeToScreen() const;
- __declspec(dllexport) void SetObserver(MCoeControlObserver* aObserver);
- __declspec(dllexport) MCoeControlObserver* Observer() const;
- inline CCoeEnv* ControlEnv() const;
- __declspec(dllexport) TInt Index(const CCoeControl* aControl) const;
- __declspec(dllexport) void SetNonFocusing();
- __declspec(dllexport) void SetFocusing(TBool aFocusing);
- __declspec(dllexport) TBool IsNonFocusing() const;
- __declspec(dllexport) void SetControlContext(MCoeControlContext* aContext);
- __declspec(dllexport) void CopyControlContextFrom(const CCoeControl* aControl);
- __declspec(dllexport) MCoeControlContext* ControlContext() const;
- __declspec(dllexport) TBool OwnsWindow() const;
- __declspec(dllexport) TBool IsBackedUp() const;
- __declspec(dllexport) void SetPointerCapture(TBool aCapture=ETrue);
- __declspec(dllexport) void ClaimPointerGrab(TBool aSendUpEvent=ETrue);
- __declspec(dllexport) void IgnoreEventsUntilNextPointerUp();
- __declspec(dllexport) void SetComponentsToInheritVisibility(TBool aInherit=ETrue);
- __declspec(dllexport) void SetGloballyCapturing(TBool aGlobal);
- __declspec(dllexport) void OverrideColorL(TInt aLogicalColor,TRgb aColor);
- __declspec(dllexport) TBool GetColor(TInt aLogicalColor,TRgb& aColor) const;
- __declspec(dllexport) void SetMopParent(MObjectProvider* aParent);
- __declspec(dllexport) const MCoeControlBackground* Background() const;
- __declspec(dllexport) const MCoeControlBackground* FindBackground() const;
- __declspec(dllexport) virtual TInt SetParent(CCoeControl* aParent);
- __declspec(dllexport) virtual void SetLayoutManagerL(MCoeLayoutManager* aLayout);
- __declspec(dllexport) MCoeLayoutManager* LayoutManager() const;
- __declspec(dllexport) virtual TBool RequestRelayout(const CCoeControl* aChildControl);
- __declspec(dllexport) void SetZoomFactorL(TInt aZoomFactor, TZoomType aZoomType = ERelativeZoom);
- __declspec(dllexport) void SetFontProviderL(const CCoeFontProvider& aFontProvider);
- __declspec(dllexport) TZoomFactor AccumulatedZoom() const;
- __declspec(dllexport) const TCoeZoomWithType* ZoomWithType() const;
- __declspec(dllexport) const CCoeFontProvider& FindFontProvider() const;
- __declspec(dllexport) virtual TInt TextBaselineOffset(const TSize& aSize) const;
- __declspec(dllexport) virtual void SetTextBaselineSpacing(TInt aSpacing);
- public:
- void ProcessPointerEventL(const TPointerEvent& aPointerEvent);
- void ProcessPointerBufferReadyL();
- void RecursivelyMergeInputCapabilities(TCoeInputCapabilities& aInputCapabilities) const;
- void WriteInternalStateNowL(RWriteStream& aWriteStream) const;
- void NotifyFontChange(const CCoeFontProvider* aFontProvider);
- void RemoveFromParent();
- void RefetchPixelMapping();
- public:
- __declspec(dllexport) virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
- protected:
- __declspec(dllexport) virtual void HandlePointerBufferReadyL();
- __declspec(dllexport) virtual void FocusChanged(TDrawNow aDrawNow);
- __declspec(dllexport) virtual void SizeChanged();
- __declspec(dllexport) virtual void PositionChanged();
- public:
- __declspec(dllexport) virtual TInt CountComponentControls() const;
- __declspec(dllexport) virtual CCoeControl* ComponentControl(TInt aIndex) const;
- __declspec(dllexport) CWindowGc& SystemGc() const;
- protected:
- __declspec(dllexport) void EnableDragEvents();
- __declspec(dllexport) void HandleRedrawEvent(const TRect& aRect) const;
- __declspec(dllexport) RWindow& Window() const;
- __declspec(dllexport) RBackedUpWindow& BackedUpWindow() const;
- __declspec(dllexport) void CloseWindow();
- __declspec(dllexport) void CreateWindowL();
- __declspec(dllexport) void CreateWindowL(const CCoeControl* aParent);
- __declspec(dllexport) void CreateWindowL(RWindowTreeNode& aParent);
- __declspec(dllexport) void CreateWindowL(RWindowGroup* aParent);
- __declspec(dllexport) void CreateBackedUpWindowL(RWindowTreeNode& aParent);
- __declspec(dllexport) void CreateBackedUpWindowL(RWindowTreeNode& aParent,TDisplayMode aDisplayMode);
- __declspec(dllexport) void SetAllowStrayPointers();
- __declspec(dllexport) void SetCanDrawOutsideRect();
- __declspec(dllexport) void SetBlank();
- __declspec(dllexport) void ReportEventL(MCoeControlObserver::TCoeEvent aEvent);
- __declspec(dllexport) void SetCornerAndSize(TGulAlignment aCorner,const TSize& aSize);
- __declspec(dllexport) void SetSizeWithoutNotification(const TSize& aSize);
- __declspec(dllexport) void ActivateGc() const;
- __declspec(dllexport) void ResetGc() const;
- __declspec(dllexport) void DeactivateGc() const;
- __declspec(dllexport) TBool IsReadyToDraw() const;
- __declspec(dllexport) TBool IsActivated() const;
- __declspec(dllexport) TBool IsBlank() const;
- __declspec(dllexport) TBool IsBeingDestroyed() const;
- __declspec(dllexport) CCoeControl* GrabbingComponent() const;
- __declspec(dllexport) TBool CapturesPointer() const;
- __declspec(dllexport) void HandleComponentControlsResourceChange(TInt aType);
- friend class CCoeControlArray;
- __declspec(dllexport) virtual void HandleControlArrayEventL(CCoeControlArray::TEvent aEvent, const CCoeControlArray* aArray, CCoeControl* aControl, TInt aControlId);
- __declspec(dllexport) virtual void Reserved_CCoeControl_10();
- __declspec(dllexport) virtual void Reserved_CCoeControl_11();
- __declspec(dllexport) virtual void Reserved_CCoeControl_12();
- __declspec(dllexport) virtual void Reserved_CCoeControl_13();
- __declspec(dllexport) const CFont& ScreenFont(const TCoeFont& aFont) const;
- __declspec(dllexport) CCoeTextDrawerBase& TextDrawer(TInt aKey = KErrNotFound) const;
- __declspec(dllexport) void InitComponentArrayL();
- __declspec(dllexport) CCoeControlArray& Components();
- __declspec(dllexport) const CCoeControlArray& Components() const;
- private:
- __declspec(dllexport) virtual void GetTextDrawer(CCoeTextDrawerBase*& aTextDrawer, const CCoeControl* aDrawingControl, TInt aKey) const;
- __declspec(dllexport) virtual void Reserved_CCoeControl_8();
- __declspec(dllexport) virtual void Reserved_CCoeControl_9();
- protected:
- __declspec(dllexport) virtual TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- private:
- __declspec(dllexport) virtual MObjectProvider* MopNext();
- private:
- friend class CCoeRedrawer;
- __declspec(dllexport) virtual void Draw(const TRect& aRect) const;
- void DrawComponents(const TRect& aRect) const;
- void DrawWindowOwningComponentsNow() const;
- void DrawWindowOwningComponentsNow(const TRect &aRect) const;
- void SetGrabbed(TBool aGrabbed);
- TBool IsGrabbed() const;
- void DoMakeVisible(TBool aVisible);
- void CheckPointerEventPurge() const;
- inline TInt Flags() const;
- inline TInt& Flags();
- void RecursivelyMergeTextDrawers(CCoeTextDrawerBase*& aTextDrawer,
- const CCoeControl* aDrawingControl, TInt aKey) const;
- const CCoeControl* WindowOwningParent() const;
- const CCoeControl* SearchParent(const CCoeControl* aParentToFind) const;
- void DoSetLayoutL(MCoeLayoutManager* aLayoutManager);
- TInt SetZoomWithType(TCoeZoomWithType* aZoomWithType);
- TCoeZoomWithType* GetZoomWithType() const;
- TInt SetFontProvider(const CCoeFontProvider* aFontProvider);
- const CCoeFontProvider* GetFontProvider() const;
- protected:
- __declspec(dllexport) virtual void WriteInternalStateL(RWriteStream& aWriteStream) const;
- public:
- __declspec(dllexport) void SetBackground(const MCoeControlBackground* aBackground);
- __declspec(dllexport) CCoeControl* Parent();
- __declspec(dllexport) const CCoeControl* Parent() const;
- __declspec(dllexport) TInt SetGc(CWindowGc* aGraphicsContext) const;
- __declspec(dllexport) CWindowGc* CCoeControl::GetGc() const;
- __declspec(dllexport) void DrawBackground(const TRect& aRect) const;
- __declspec(dllexport) void DrawForeground(const TRect& aRect) const;
- __declspec(dllexport) TInt SetHitTest(const MCoeControlHitTest* aHitTestControl);
- __declspec(dllexport) const MCoeControlHitTest* HitTest() const;
- private:
- __declspec(dllexport) virtual void Reserved_2();
- public:
- __declspec(dllexport) TInt UniqueHandle() const ;
- __declspec(dllexport) TInt SetUniqueHandle( TInt aUniqueHandle ) ;
- protected:
- CCoeEnv* iCoeEnv;
- MCoeControlContext* iContext;
- TPoint iPosition;
- TSize iSize;
- private:
- RDrawableWindow* iWin;
- MCoeControlObserver* iObserver;
- RCoeExtensionStorage iExt;
- MObjectProvider* iMopParent;
- };
- inline CCoeEnv* CCoeControl::ControlEnv() const
- {return(iCoeEnv);}
- #line 30 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikcmobs.h" /* stack depth 4 */
- #line 11
- class CCoeControl;
- class MEikCommandObserver
- #line 24
- {
- public:
- virtual void ProcessCommandL(TInt aCommandId)=0;
- #line 44
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikCommandObserver();
- private:
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikCommandObserver_Reserved1;
- };
- #line 9 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikmobs.h" /* stack depth 3 */
- class CCoeControl;
- class CEikMenuPane;
- class CEikMenuBar;
- class CEikHotKeyTable;
- class TPoint;
- class MEikMenuObserver : public MEikCommandObserver
- #line 29
- {
- public:
- enum TMenuType
- {
- EMenuPane,
- EMenuBar
- };
- public:
- __declspec(dllexport) virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
- __declspec(dllexport) virtual TBool CheckHotKeyNotDimmedL(TInt aCommandId);
- __declspec(dllexport) virtual void RestoreMenuL(CCoeControl* aMenuControl,TInt aResourceId,TMenuType aType);
- __declspec(dllexport) virtual void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) virtual void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
- __declspec(dllexport) virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- __declspec(dllexport) virtual void OfferKeyToAppL(const TKeyEvent& aKeyEvent,TEventCode aType);
- #line 56
- virtual void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis)=0;
- public:
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikMenuObserver();
- private:
- __declspec(dllexport) virtual void Reserved_1_MenuObserver();
- __declspec(dllexport) virtual void Reserved_2_MenuObserver();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikMenuObserver_Reserved1;
- };
- class MEikAutoMenuObserver : public MEikMenuObserver
- #line 80
- {
- public:
- virtual TKeyResponse OfferHotKeyL(const TKeyEvent& aKeyEvent,TEventCode aType)=0;
- public:
- __declspec(dllexport) void SetEmphasis(CCoeControl* aMenuControl,TBool aEmphasis);
- public:
- __declspec(dllexport) virtual void HandleAttemptDimmedSelectionL(TInt aCommandId);
- __declspec(dllexport) virtual TBool CheckHotKeyNotDimmedL(TInt aCommandId);
- __declspec(dllexport) virtual void RestoreMenuL(CCoeControl* aMenuControl,TInt aResourceId,TMenuType aType);
- __declspec(dllexport) virtual void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
- __declspec(dllexport) virtual void DynInitMenuBarL(TInt aResourceId,CEikMenuBar* aMenuBar);
- __declspec(dllexport) virtual void HandleSideBarMenuL(TInt aResourceId,const TPoint& aPos,TInt aModifiers,const CEikHotKeyTable* aTable);
- __declspec(dllexport) virtual void OfferKeyToAppL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual CCoeControl* CreateCustomCommandControlL(TInt aControlType);
- protected:
- __declspec(dllexport) MEikAutoMenuObserver();
- private:
- __declspec(dllexport) virtual void Reserved_1_MenuObserver();
- __declspec(dllexport) virtual void Reserved_2_MenuObserver();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved1();
- __declspec(dllexport) virtual void MEikCommandObserver_Reserved2();
- private:
- TInt iMEikAutoMenuObserver_Reserved1;
- };
- #line 31 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\vwsdef.h" /* stack depth 4 */
- #line 12
- class TVwsViewId
- #line 21
- {
- public:
- inline TVwsViewId();
- inline TVwsViewId(const TVwsViewId& aUid);
- inline TVwsViewId(TUid aAppUid,TUid aViewUid);
- inline TBool operator==(const TVwsViewId& aUid) const;
- inline TBool operator!=(const TVwsViewId& aUid) const;
- public:
- TUid iAppUid;
- TUid iViewUid;
- };
- const TInt KErrViewWrongMode=1;
- class TVwsViewIdAndMessage
- {
- public:
- inline TVwsViewIdAndMessage();
- inline TVwsViewIdAndMessage(const TVwsViewId& aId);
- inline TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- inline TVwsViewIdAndMessage& operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage);
- public:
- TVwsViewId iViewId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- TPtrC8 iCustomMessage;
- };
- class TVwsViewEvent
- #line 79
- {
- public:
- enum TVwsViewEventType
- {
- EVwsActivateView,
- EVwsDeactivateView,
- EVwsScreenDeviceChanged,
- EVwsDeactivationNotification,
- EVwsActivationNotification
- };
- public:
- inline TVwsViewEvent();
- inline TVwsViewEvent(TVwsViewEventType aEventType);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId);
- inline TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength);
- public:
- TVwsViewEventType iEventType;
- TVwsViewId iViewOneId;
- TVwsViewId iViewTwoId;
- TUid iCustomMessageId;
- TInt iCustomMessageLength;
- };
- typedef TPckgBuf<TVwsViewIdAndMessage> TVwsViewIdAndMessageBuf;
- typedef TPckgBuf<TVwsViewEvent> TVwsViewEventBuf;
- inline TVwsViewId::TVwsViewId()
- : iAppUid(TUid::Null() ), iViewUid(TUid::Null() ) {}
- inline TVwsViewId::TVwsViewId(const TVwsViewId& aUid)
- : iAppUid(aUid.iAppUid), iViewUid(aUid.iViewUid) {}
- inline TVwsViewId::TVwsViewId(TUid aAppUid,TUid aViewUid)
- : iAppUid(aAppUid), iViewUid(aViewUid) {}
- inline TBool TVwsViewId::operator==(const TVwsViewId& aUid) const
- #line 147
- {
- return (aUid.iAppUid==iAppUid && aUid.iViewUid==iViewUid);
- }
- inline TBool TVwsViewId::operator!=(const TVwsViewId& aUid) const
- #line 160
- {
- return (aUid.iAppUid!=iAppUid || aUid.iViewUid!=iViewUid);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage()
- : iViewId(TVwsViewId()), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId)
- : iViewId(aId), iCustomMessageLength(0)
- {
- iCustomMessageId.iUid=0;
- iCustomMessage.Set(KNullDesC8);
- }
- inline TVwsViewIdAndMessage::TVwsViewIdAndMessage(const TVwsViewId& aId,TUid aCustomMessageId,const TDesC8& aCustomMessage)
- : iViewId(aId), iCustomMessageId(aCustomMessageId)
- {
- iCustomMessageLength=aCustomMessage.Length();
- iCustomMessage.Set(aCustomMessage);
- }
- inline TVwsViewIdAndMessage& TVwsViewIdAndMessage::operator=(const TVwsViewIdAndMessage& aVwsViewIdAndMessage)
- {
- iViewId=aVwsViewIdAndMessage.iViewId;
- iCustomMessageId=aVwsViewIdAndMessage.iCustomMessageId;
- iCustomMessageLength=aVwsViewIdAndMessage.iCustomMessage.Length();
- iCustomMessage.Set(aVwsViewIdAndMessage.iCustomMessage);
- return(*this);
- }
- inline TVwsViewEvent::TVwsViewEvent() {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType)
- : iEventType(aEventType),iViewOneId(),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(TUid::Null() ),iCustomMessageLength(0) {}
- inline TVwsViewEvent::TVwsViewEvent(TVwsViewEventType aEventType,const TVwsViewId& aViewOneId,const TVwsViewId& aViewTwoId,TUid aCustomMessageId,TInt aCustomMessageLength)
- : iEventType(aEventType),iViewOneId(aViewOneId),iViewTwoId(aViewTwoId),iCustomMessageId(aCustomMessageId),iCustomMessageLength(aCustomMessageLength) {}
- #line 22 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 3 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeview.h" /* stack depth 4 */
- #line 12
- class CCoeAppUi;
- class MCoeView
- {
- public:
- virtual TVwsViewId ViewId() const=0;
- private:
- #line 41
- virtual void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage)=0;
- virtual void ViewDeactivated()=0;
- protected:
- __declspec(dllexport) MCoeView();
- __declspec(dllexport) virtual TVwsViewIdAndMessage ViewScreenDeviceChangedL();
- private:
- __declspec(dllexport) virtual void ViewConstructL();
- protected:
- __declspec(dllexport) virtual TBool ViewScreenModeCompatible(TInt aScreenMode);
- private:
- friend class CCoeViewManager;
- __declspec(dllexport) virtual void PrepareForViewActivation();
- __declspec(dllexport) virtual void MCoeView_Reserved_2();
- __declspec(dllexport) virtual void MCoeView_Reserved_3();
- private:
- TInt iMCoeView_Reserved1;
- };
- class CCoeScreenDeviceChangeDefaultHandler : public CCoeStatic
- #line 79
- {
- public:
- __declspec(dllexport) ~CCoeScreenDeviceChangeDefaultHandler();
- __declspec(dllexport) static CCoeScreenDeviceChangeDefaultHandler* Self();
- protected:
- __declspec(dllexport) CCoeScreenDeviceChangeDefaultHandler();
- __declspec(dllexport) CCoeScreenDeviceChangeDefaultHandler(TInt aDestructionPriority);
- private:
- __declspec(dllexport) virtual void CCoeStatic_Reserved1();
- __declspec(dllexport) virtual void CCoeStatic_Reserved2();
- __declspec(dllexport) virtual void CCoeScreenDeviceChangeDefaultHandler_Reserved1();
- __declspec(dllexport) virtual void CCoeScreenDeviceChangeDefaultHandler_Reserved2();
- public:
- virtual void HandleScreenDeviceChangedL()=0;
- virtual TVwsViewIdAndMessage DefaultViewOnScreenDeviceChanged()=0;
- private:
- TInt iCCoeScreenDeviceChangeDefaultHandler;
- };
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\coeaui.h" /* stack depth 3 */
- class CCoeEnv;
- class CCoeControl;
- typedef CCoeFep* (*TCoeFepFactoryFunctionL)(CCoeEnv& aConeEnvironment, const TDesC& aFullFileNameOfDll, const CCoeFepParameters& aFepParameters);
- typedef void (*TCoeSynchronouslyExecuteFepSettingsDialogFunctionL)(CCoeEnv& aConeEnvironment, const TDesC& aFullFileNameOfDll);
- #line 67
- enum
- {
- ECoeStackPriorityDefault=0,
- ECoeStackPriorityMenu=10,
- ECoeStackPriorityDialog=50,
- ECoeStackPriorityCba=60,
- ECoeStackPriorityAlert=200,
- ECoeStackPriorityFep=250,
- ECoeStackPriorityEnvironmentFilter=300
- };
- #line 93
- enum
- {
- ECoeStackFlagStandard = 0,
- ECoeStackFlagRefusesAllKeys = 0x01,
- ECoeStackFlagRefusesFocus = 0x02,
- ECoeStackFlagOwnershipTransfered= 0x04,
- ECoeStackFlagSharable = 0x08
- };
- class CCoeControlStack;
- class CCoeViewManager;
- class MCoeViewDeactivationObserver;
- class MCoeViewActivationObserver;
- class MCoeViewObserver;
- #line 128
- class CCoeAppUi : public CBase
- {
- public:
- __declspec(dllexport) CCoeAppUi();
- __declspec(dllexport) ~CCoeAppUi();
- __declspec(dllexport) void ConstructL(CCoeAppUi* aPrevious=0 );
- public:
- __declspec(dllexport) void AddToStackL(CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- __declspec(dllexport) void RemoveFromStack(CCoeControl* aControl);
- __declspec(dllexport) void UpdateStackedControlFlags(CCoeControl* aControl,TInt aFlags,TInt aMask);
- __declspec(dllexport) void HandleStackChanged();
- __declspec(dllexport) TBool IsDisplayingMenuOrDialog() const;
- __declspec(dllexport) TBool IsDisplayingDialog() const;
- __declspec(dllexport) TBool IsDisplayingControlBetweenPriorities(TInt aLowerPriority, TInt aHigherPriority) const;
- __declspec(dllexport) CArrayFix<TCoeHelpContext> * AppHelpContextL() const;
- __declspec(dllexport) virtual TCoeInputCapabilities InputCapabilities() const;
- __declspec(dllexport) void HandleStackedControlsResourceChange(TInt aType);
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId);
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- __declspec(dllexport) TBool CheckSourceOfViewSwitchL(const TSecurityPolicy& aSecurityPolicy,const char* aDiagnostic=0 ) const;
- __declspec(dllexport) void RegisterViewL(MCoeView& aView);
- __declspec(dllexport) void DeregisterView(const MCoeView& aView);
- __declspec(dllexport) void SetDefaultViewL(const MCoeView& aView);
- __declspec(dllexport) TInt GetDefaultViewId(TVwsViewId& aViewId) const;
- __declspec(dllexport) TInt GetActiveViewId(TVwsViewId& aViewId) const;
- __declspec(dllexport) void AddToStackL(const MCoeView& aView,CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- __declspec(dllexport) CCoeControl* TopFocusedControl() const;
- public:
- TBool IsControlOnStack(CCoeControl* aControl) const;
- void SetCurrentControlStackGroupId(TInt aGroupId);
- void NotifyFontChange(const CCoeFontProvider& aFontProvider);
- void RefetchPixelMapping();
- public:
- __declspec(dllexport) void CreateActivateViewEventL(const TVwsViewId& aViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
- __declspec(dllexport) void ActivateTopViewL();
- __declspec(dllexport) void DeactivateActiveViewL();
- __declspec(dllexport) void RegisterApplicationViewL(TUid aAppUid);
- __declspec(dllexport) void DeregisterApplicationView();
- __declspec(dllexport) void CheckInitializeViewsL(TUid aAppUid);
- __declspec(dllexport) void SetApplicationViewAsDefaultL();
- __declspec(dllexport) void AddViewDeactivationObserverL(MCoeViewDeactivationObserver* aViewDeactivationObserver);
- __declspec(dllexport) void RemoveViewDeactivationObserver(MCoeViewDeactivationObserver* aViewDeactivationObserver);
- __declspec(dllexport) void NotifyNextDeactivation(const TVwsViewId& aViewId, MCoeViewDeactivationObserver& aViewDeactivationObserver);
- __declspec(dllexport) void NotifyNextDeactivation(MCoeViewDeactivationObserver& aViewDeactivationObserver);
- __declspec(dllexport) void AddViewActivationObserverL(MCoeViewActivationObserver* aViewActivationObserver);
- __declspec(dllexport) void RemoveViewActivationObserver(MCoeViewActivationObserver* aViewActivationObserver);
- __declspec(dllexport) void NotifyNextActivation(const TVwsViewId& aViewId, MCoeViewActivationObserver& aViewActivationObserver);
- __declspec(dllexport) void NotifyNextActivation(MCoeViewActivationObserver& aViewActivationObserver);
- __declspec(dllexport) void AddViewObserverL(MCoeViewObserver* aViewObserver);
- __declspec(dllexport) void RemoveViewObserver(MCoeViewObserver* aViewObserver);
- __declspec(dllexport) void WriteInternalStateOfStackedControlsL(RWriteStream& aWriteStream) const;
- __declspec(dllexport) void SetSystemDefaultViewL(const TVwsViewId& aViewId,TInt aMode);
- __declspec(dllexport) void SetSystemDefaultViewL(const TVwsViewId& aViewId);
- __declspec(dllexport) void GetSystemDefaultViewL(TVwsViewId& aViewId);
- public:
- __declspec(dllexport) void RegisterViewAndAddStackL(MCoeView& aView);
- __declspec(dllexport) void DeregisterViewAndRemoveStack(const MCoeView& aView);
- __declspec(dllexport) void RemoveFromViewStack(const MCoeView& aView,CCoeControl* aControl);
- __declspec(dllexport) void UpdateViewStackedControlFlags(const MCoeView& aView,CCoeControl* aControl,TInt aFlags,TInt aMask);
- __declspec(dllexport) void AddToViewStackL(const MCoeView& aView,CCoeControl* aControl,TInt aPriority=ECoeStackPriorityDefault,TInt aStackingFlags=ECoeStackFlagStandard);
- public:
- __declspec(dllexport) virtual void HandleWsEventL(const TWsEvent& aEvent,CCoeControl* aDestination);
- __declspec(dllexport) virtual void PrepareToExit();
- protected:
- __declspec(dllexport) virtual void HandleScreenDeviceChangedL();
- private:
- __declspec(dllexport) virtual TKeyResponse HandleKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
- __declspec(dllexport) virtual void HandleForegroundEventL(TBool aForeground);
- __declspec(dllexport) virtual void HandleSwitchOnEventL(CCoeControl* aDestination);
- __declspec(dllexport) virtual void HandleSystemEventL(const TWsEvent& aEvent);
- __declspec(dllexport) virtual void HandleApplicationSpecificEventL(TInt aType,const TWsEvent& aEvent);
- __declspec(dllexport) virtual void SetAndDrawFocus(TBool aFocus);
- __declspec(dllexport) virtual CArrayFix<TCoeHelpContext> * HelpContextL() const;
- public:
- __declspec(dllexport) TBool IsViewConstructed(const TVwsViewId& aViewId) const;
- __declspec(dllexport) virtual void CCoeAppUi_Reserved1();
- __declspec(dllexport) virtual void CCoeAppUi_Reserved2();
- private:
- enum TRemoveCondition
- {
- ERemoveUnconditionally,
- ERemoveOnlyIfSharable
- };
- private:
- CCoeControl* TopFocusableControl() const;
- TInt FindPos(CCoeControlStack* aStack,CCoeControl* aControl) const;
- void SetFocusToControl(CCoeControl* aControl,TBool aFocus);
- void DoAddToStackL(CCoeControlStack* aStack,CCoeControl* aControl,TInt aPriority,TInt aStackingFlags);
- void DoAddToStackL(CCoeControlStack* aStack,CCoeControl* aControl,TInt aPriority,TInt aStackingFlags, TInt aGroupId);
- void DoRemoveFromStack(CCoeControlStack* aStack,CCoeControl* aControl,TRemoveCondition aRemoveCondition=ERemoveUnconditionally);
- void DoUpdateStackedControlFlags(CCoeControlStack* aStack,CCoeControl* aControl,TInt aFlags,TInt aMask);
- public:
- void MonitorWsEvent(const TWsEvent& aEvent);
- private:
- class CExtra;
- friend class CExtra;
- friend class CTestDriver;
- protected:
- CCoeEnv* iCoeEnv;
- private:
- CCoeViewManager* iViewManager;
- CCoeControlStack* iStack;
- CExtra* iExtra;
- TInt iCCoeAppUi_Reserved1;
- };
- class MCoeViewDeactivationObserver
- #line 248
- {
- public:
- virtual void HandleViewDeactivation(const TVwsViewId& aViewIdToBeDeactivated,const TVwsViewId& aNewlyActivatedViewId)=0;
- protected:
- __declspec(dllexport) MCoeViewDeactivationObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewDeactivationObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeViewDeactivationObserver_Reserved_2();
- private:
- TInt iMCoeViewDeactivationObserver_Reserved1;
- };
- class MCoeViewActivationObserver
- {
- public:
- virtual void HandleViewActivation(const TVwsViewId& aNewlyActivatedViewId,const TVwsViewId& aViewIdToBeDeactivated)=0;
- protected:
- __declspec(dllexport) MCoeViewActivationObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewActivationObserver_Reserved_1();
- __declspec(dllexport) virtual void MCoeViewActivationObserver_Reserved_2();
- private:
- TInt iMCoeViewActivationObserver_Reserved1;
- };
- class MCoeViewObserver
- {
- public:
- virtual void HandleViewEventL(const TVwsViewEvent& aEvent)=0;
- protected:
- __declspec(dllexport) MCoeViewObserver();
- private:
- __declspec(dllexport) virtual void MCoeViewObserver_Reserved1();
- __declspec(dllexport) virtual void MCoeViewObserver_Reserved2();
- private:
- TInt iMCoeViewObserver_Reserved1;
- };
- #line 32 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- #line 1 "C:\Symbian\9.1\S60_3rd\epoc32\include\eikdef.h" /* stack depth 3 */
- #line 20
- enum TPopupTargetPosType
- {
- EPopupTargetTopLeft,
- EPopupTargetTopRight,
- EPopupTargetBottomLeft,
- EPopupTargetBottomRight
- };
- #line 110
- const static TLitC<sizeof(L"*")/2> KEikDefaultAppBitmapStore={sizeof(L"*")/2-1,L"*"} ;
- const TInt KUidValueEikColorSchemeChangeEvent =0x10006956;
- const TInt KEikCustomColorsArrayValue =0x100057C2;
- const TInt KEikMessageFadeAllWindows =0x100056C2;
- const TInt KEikMessageUnfadeWindows =0x100056C3;
- const TInt KEikMessageColorSchemeChange =KUidValueCoeColorSchemeChangeEvent;
- #line 157
- const TInt KEikMessageZoomChange =KUidValueCoeZoomChangeEvent;
- const TInt KEikMessageFontChange = KUidValueCoeFontChangeEvent;
- const TInt KEikMessageVirtualCursorStateChange =0x10005D0A;
- const TInt KEikMessageCapsLock =0x100048F9;
- const TInt KEikMessagePrepareForSave =0x100069FD;
- const TInt KEikMessageEmbedLevelChange =0x1000A4AA;
- #line 202
- const TInt KEikHasBecomeCurrentAppUiWhileEmbeddedAppUiDeletes = 0x10207F75;
- const TInt KEikNotifyPreCreateEmbeddedL = 0x10207F67;
- const TInt KEikNotifyPostCreateEmbeddedL = 0x10207F65;
- const TInt KEikPostCoeAppUiConstructL = 0x10207F66;
- const TInt KEikResIdQueryDialog =0;
- const TInt KEikResIdInfoDialog =1;
- #line 34 "C:\Symbian\9.1\S60_3rd\epoc32\include\aknview.h" /* stack depth 2 */
- class CAknViewAppUi;
- class CEikStatusPane;
- class CEikButtonGroupContainer;
- class CAknControlStack;
- class CAknViewExtension;
- class CAknToolbar;
- #line 52
- class CAknView : public CBase, public MCoeView, public MEikMenuObserver,
- public MObjectProvider
- {
- public:
- __declspec(dllexport) CAknView();
- __declspec(dllexport) ~CAknView();
- #line 74
- __declspec(dllexport) void BaseConstructL(TInt aResId=0);
- __declspec(dllexport) void ConstructMenuAndCbaEarlyL();
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId);
- #line 99
- __declspec(dllexport) void ActivateViewL(const TVwsViewId& aViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- __declspec(dllexport) virtual TUid Id() const =0;
- __declspec(dllexport) virtual void HandleStatusPaneSizeChange();
- __declspec(dllexport) TVwsViewId ViewId() const;
- #line 129
- __declspec(dllexport) virtual void ProcessCommandL(TInt aCommand);
- __declspec(dllexport) virtual void HandleCommandL(TInt aCommand);
- __declspec(dllexport) virtual CEikMenuBar* MenuBar() const;
- #line 152
- __declspec(dllexport) TRect ClientRect() const;
- __declspec(dllexport) void StopDisplayingMenuBar();
- __declspec(dllexport) TBool IsForeground() const;
- __declspec(dllexport) virtual void HandleViewRectChange();
- __declspec(dllexport) virtual void Redraw() const;
- __declspec(dllexport) virtual void AknViewActivatedL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- void AknViewDeactivated();
- void ProcessForegroundEventL(TBool aForeground);
- private:
- __declspec(dllexport) virtual void Reserved_MtsmPosition();
- __declspec(dllexport) virtual void Reserved_MtsmObject();
- protected:
- __declspec(dllexport) CAknViewAppUi* AppUi() const;
- __declspec(dllexport) CEikStatusPane* StatusPane() const;
- __declspec(dllexport) CEikButtonGroupContainer* Cba() const;
- #line 237
- __declspec(dllexport) virtual void DoActivateL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage) = 0;
- virtual void DoDeactivate() = 0;
- protected:
- #line 257
- __declspec(dllexport) void ViewActivatedL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- __declspec(dllexport) void ViewDeactivated();
- __declspec(dllexport) TVwsViewIdAndMessage ViewScreenDeviceChangedL();
- protected:
- #line 286
- __declspec(dllexport) TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
- __declspec(dllexport) MObjectProvider* MopNext();
- protected:
- #line 305
- __declspec(dllexport) virtual void SetEmphasis(CCoeControl* aMenuControl,
- TBool aEmphasis);
- __declspec(dllexport) virtual void HandleForegroundEventL(TBool aForeground);
- private:
- void ConstructMenuAndCbaL(TBool aVisible);
- CAknViewExtension* Extension() const;
- public:
- __declspec(dllexport) CAknToolbar* Toolbar() const;
- __declspec(dllexport) void StopDisplayingToolbar();
- protected:
- CCoeEnv* iCoeEnv;
- private:
- CAknViewAppUi* iAppUi;
- struct SAknViewInfo
- {
- public:
- TUint8 iVersion;
- TInt iHotKeys;
- TInt iMenu;
- TInt iCba;
- TInt iToolbar;
- TInt iExtension;
- };
- SAknViewInfo iViewInfo;
- CEikMenuBar* iMenu;
- CEikButtonGroupContainer* iCba;
- TBitFlags iFlags;
- CAknViewExtension* iExtension;
- };
- #line 9 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleInitialView.h" /* stack depth 1 */
- class CS60UIExampleInitialContainer;
- class CS60UIExampleModel;
- #line 23
- class CS60UIExampleInitialView: public CAknView
- {
- public:
- #line 34
- static CS60UIExampleInitialView* NewL(CS60UIExampleModel& aModel);
- #line 44
- static CS60UIExampleInitialView* NewLC(CS60UIExampleModel& aModel);
- virtual ~CS60UIExampleInitialView();
- public:
- TUid Id() const;
- void HandleCommandL(TInt aCommand);
- #line 77
- void DoActivateL(const TVwsViewId& aPrevViewId,
- TUid aCustomMessageId,
- const TDesC8& aCustomMessage);
- void DoDeactivate();
- void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
- private:
- CS60UIExampleInitialView(CS60UIExampleModel& aModel);
- void ConstructL();
- private:
- CS60UIExampleInitialContainer* iContainer;
- TUid iIdentifier;
- CS60UIExampleModel& iModel;
- };
- #line 3 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\src\S60UIExampleInitialView.cpp" /* stack depth 0 */
- #line 1 "C:\gbtukmanpf01\NOK124\Courses\S60\05300-S60_C++_Introduction\Working\LabCode\Lab_05304-s2.cb1\starter\inc\S60UIExampleInitialContainer.h" /* stack depth 1 */
- #line 15
- class CS60UIExampleModel;
- #line 24
- class CS60UIExampleInitialContainer : public CCoeControl
- {
- public:
- #line 35
- static CS60UIExampleInitialContainer* NewL(const TRect& aRect,
- CS60UIExampleModel& aModel);
- #line 46
- static CS60UIExampleInitialContainer* NewLC(const TRect& aRect,
- CS60UIExampleModel& aModel);
- void ConstructL(const TRect& aRect);
- virtual ~CS60UIExampleInitialContainer();
- public:
- void SizeChanged();
- void HandleResourceChange(TInt aType);
- void Draw( const TRect& aRect ) const;
- private:
- CS60UIExampleInitialContainer(CS60UIExampleModel& aModel);
- private:
- CS60UIExampleModel& iModel;
- CFbsBitmap* iBkgBitmap;