sl@0
|
1 |
// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
// Demonstration handwriting class
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#if !defined(__HNDLODR_H__)
|
sl@0
|
19 |
#define __HNDLODR_H__
|
sl@0
|
20 |
|
sl@0
|
21 |
#if !defined(__E32STD_H__)
|
sl@0
|
22 |
#include <e32std.h>
|
sl@0
|
23 |
#endif
|
sl@0
|
24 |
#if !defined(__E32BASE_H__)
|
sl@0
|
25 |
#include <e32base.h>
|
sl@0
|
26 |
#endif
|
sl@0
|
27 |
#if !defined(__W32STD_H__)
|
sl@0
|
28 |
#include "W32STD.H"
|
sl@0
|
29 |
#endif
|
sl@0
|
30 |
#if !defined(__HANDCMD_H__)
|
sl@0
|
31 |
#include "HANDCMD.H"
|
sl@0
|
32 |
#endif
|
sl@0
|
33 |
|
sl@0
|
34 |
|
sl@0
|
35 |
class RHandWritingAnim : public RAnim
|
sl@0
|
36 |
{
|
sl@0
|
37 |
public:
|
sl@0
|
38 |
inline RHandWritingAnim(RAnimDll& aDll) :RAnim(aDll) {}
|
sl@0
|
39 |
TInt Construct(const RWsSprite& aDevice);
|
sl@0
|
40 |
void Activate();
|
sl@0
|
41 |
void Deactivate();
|
sl@0
|
42 |
TInt SpriteMaskChange(TBool aUsingSeparateMask);
|
sl@0
|
43 |
void SetDrawData(const THandwritingDrawData& aDrawData);
|
sl@0
|
44 |
TInt GetLastGeneratedCharacter();
|
sl@0
|
45 |
};
|
sl@0
|
46 |
|
sl@0
|
47 |
class CHandWriting : public CBase
|
sl@0
|
48 |
{
|
sl@0
|
49 |
public:
|
sl@0
|
50 |
CHandWriting(RWsSession& aSession);
|
sl@0
|
51 |
void ConstructL(TSize aScreenSize,RWindowGroup& aGroup,TBool aUseSeparateMask);
|
sl@0
|
52 |
~CHandWriting();
|
sl@0
|
53 |
void SetMaskL(TBool aUseSeparateMask);
|
sl@0
|
54 |
void ToggleStatus();
|
sl@0
|
55 |
private:
|
sl@0
|
56 |
void CreateSpriteL(TSize aScreenSize,RWindowGroup& aGroup,TBool aUseSeparateMask);
|
sl@0
|
57 |
void LoadDllL();
|
sl@0
|
58 |
void FillInSpriteMember(TSpriteMember& aMember);
|
sl@0
|
59 |
private:
|
sl@0
|
60 |
RWsSession& iSession;
|
sl@0
|
61 |
RAnimDll iAnimDll;
|
sl@0
|
62 |
RHandWritingAnim iAnim;
|
sl@0
|
63 |
RWsSprite iSprite;
|
sl@0
|
64 |
CFbsBitmap *iBitmap;
|
sl@0
|
65 |
CFbsBitmap *iMaskBitmap;
|
sl@0
|
66 |
TBool iActive;
|
sl@0
|
67 |
};
|
sl@0
|
68 |
|
sl@0
|
69 |
#endif
|