103
|
1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
@test
|
|
19 |
@internalComponent - Internal Symbian test code
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef BUFFERDRAWER_H_
|
|
23 |
#define BUFFERDRAWER_H_
|
|
24 |
|
|
25 |
#include <bitstd.h>
|
|
26 |
#include <graphics/wsgraphicdrawer.h>
|
|
27 |
#include <graphics/wsgraphicdrawerinterface.h>
|
|
28 |
|
|
29 |
// A buffer drawer
|
|
30 |
NONSHARABLE_CLASS(CWsBufferGraphicDrawer): public CWsGraphicDrawer
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
enum {EImplUid = 0x10285D54};
|
|
34 |
|
|
35 |
public:
|
|
36 |
static CWsBufferGraphicDrawer* NewL();
|
|
37 |
virtual ~CWsBufferGraphicDrawer();
|
|
38 |
// override CWsGraphicDrawer
|
|
39 |
virtual void ConstructL(MWsGraphicDrawerEnvironment& aEnv,const TGraphicDrawerId& aId, MWsClient& aOwner, const TDesC8& aData);
|
|
40 |
virtual void HandleMessage(const TDesC8& aData);
|
|
41 |
|
|
42 |
protected:
|
|
43 |
// override CWsGraphicDrawer
|
|
44 |
virtual void DoDraw(MWsGc& aGc, const TRect& aRect, const TDesC8& aData) const;
|
|
45 |
|
|
46 |
private:
|
|
47 |
void DoUpdateWhiteLinePos(TInt aWhiteLinePos);
|
|
48 |
|
|
49 |
private:
|
|
50 |
TInt iWhiteLinePos;
|
|
51 |
};
|
|
52 |
|
|
53 |
|
|
54 |
#endif /*BUFFERDRAWER_H_*/
|