|
1 /******************************************************************************* |
|
2 * Copyright (c) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. This program and the accompanying materials |
|
4 * are made available under the terms of the Eclipse Public License v1.0 |
|
5 * which accompanies this distribution, and is available at |
|
6 * http://www.eclipse.org/legal/epl-v10.html |
|
7 * |
|
8 * Contributors: |
|
9 * Nokia Corporation - S60 implementation |
|
10 *******************************************************************************/ |
|
11 |
|
12 #ifndef SWTJAVABUFFERDRAWER_H |
|
13 #define SWTJAVABUFFERDRAWER_H |
|
14 |
|
15 #include <e32base.h> |
|
16 #include <w32std.h> |
|
17 |
|
18 class MSwtDisplay; |
|
19 class MSwtGc; |
|
20 |
|
21 /** |
|
22 * CSwtJavaBufferDrawer |
|
23 * |
|
24 * This class implements a command buffer flushing facility for a graphics context |
|
25 * implementing the MSwtGc inteface. |
|
26 * |
|
27 * @lib eswt |
|
28 */ |
|
29 NONSHARABLE_CLASS(CSwtJavaBufferDrawer) : public CBase |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Constructor |
|
34 */ |
|
35 CSwtJavaBufferDrawer(MSwtDisplay& aDisplay); |
|
36 |
|
37 /** |
|
38 * Destructor |
|
39 */ |
|
40 virtual ~CSwtJavaBufferDrawer(); |
|
41 |
|
42 /** |
|
43 * Flushes the given drawing operations to the given graphics context |
|
44 * @param aGc The graphics context to flush to |
|
45 * @param aIntParams An Integer array with all the parameters and info about the buffered |
|
46 drawing operations except the string parameters |
|
47 * @param aIntCount The length of the integer array |
|
48 * @param aStrParams All the string parameters of the buffered drawing operations |
|
49 */ |
|
50 void Draw(MSwtGc* aGc, TInt* aIntParams, TInt aIntCount, HBufC* aStrParams, RWindow* aWindow, const TRect& aDrawRect); |
|
51 |
|
52 private: |
|
53 // The Display that owns this object |
|
54 MSwtDisplay& iDisplay; |
|
55 }; |
|
56 |
|
57 #endif // SWTJAVABUFFERDRAWER_H |