author | Martin Jakl <jakl.martin@cell-telecom.com> |
Thu, 18 Nov 2010 23:28:27 +0000 | |
branch | EGL_MERGE |
changeset 216 | b87045f2f5d7 |
parent 212 | a8e55d78eb52 |
permissions | -rw-r--r-- |
6
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
1 |
/* |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
2 |
* Copyright (c) 2009 Symbian Foundation Ltd |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
3 |
* This component and the accompanying materials are made available |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
4 |
* under the terms of the License "Eclipse Public License v1.0" |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
5 |
* which accompanies this distribution, and is available |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
6 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
7 |
* |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
8 |
* Initial Contributors: |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
9 |
* Symbian Foundation Ltd - initial contribution. |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
10 |
* |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
11 |
* Contributors: |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
12 |
* |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
13 |
* Description: |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
14 |
* Declaration of native window type structure |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
15 |
*/ |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
16 |
|
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
17 |
#include <e32std.h> |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
18 |
#include <w32std.h> |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
19 |
|
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
20 |
#ifndef EGLOSNATVIEWINDOWTYPE_H |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
21 |
#define EGLOSNATVIEWINDOWTYPE_H |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
22 |
|
216
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
23 |
#define KDefaultScreenNumber 0 |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
24 |
|
212 | 25 |
class REglWindowBase |
26 |
{ |
|
27 |
public: |
|
216
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
28 |
//virtual TBool IsValid() const = 0; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
29 |
//virtual TSize SizeInPixels() const = 0; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
30 |
//virtual TSize SizeInTwips() const = 0; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
31 |
//virtual TInt ScreenNumber() const = 0; |
212 | 32 |
protected: |
216
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
33 |
REglWindowBase(); |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
34 |
private: |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
35 |
friend class TNativeWindowType; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
36 |
TBool IsRWindow() const; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
37 |
private: |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
38 |
TInt32 iFourByteOffset; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
39 |
TAny* iIsRWindow; |
212 | 40 |
}; |
41 |
||
216
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
42 |
|
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
43 |
class TNativeWindowType |
6
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
44 |
{ |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
45 |
public: |
216
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
46 |
IMPORT_C TNativeWindowType(EGLNativeWindowType aNativeWindow); |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
47 |
IMPORT_C TNativeWindowType(); |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
48 |
IMPORT_C void SetNativeWindow(EGLNativeWindowType aNativeWindow); |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
49 |
IMPORT_C TBool IsValid() const; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
50 |
IMPORT_C TSize SizeInPixels() const; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
51 |
//virtual TSize SizeInTwips() const = 0; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
52 |
IMPORT_C TInt ScreenNumber() const; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
53 |
IMPORT_C TBool IsWindow() const; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
54 |
|
6
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
55 |
TSize iSize; //to keep |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
56 |
CFbsBitmap* iBitmap; //to keep |
216
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
57 |
private: |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
58 |
REglWindowBase* iEglWindow; |
b87045f2f5d7
First drop of port from guestEGL ? enables ebt test drawing a line using composition
Martin Jakl <jakl.martin@cell-telecom.com>
parents:
212
diff
changeset
|
59 |
TBool iIsValid; |
6
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
60 |
}; |
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
61 |
|
250ac10a3d98
transplant of the KhronosRI work done on the SFL repo until changeset 22d01ad3515c - Includes 'Bug 1394 - KhronosRI - armv5 def files missing', 'Bug 1395 - KhronosRI - RVCT doesn't like 'OpenVGRI' qualified helper function names', and the ongoing work on 'Bug 31 - OpenVG implementation is a stub, so no icons or window decorations are displayed.'
MattD <mattd@symbian.org>
parents:
diff
changeset
|
62 |
#endif //EGLOSCALLBACK_H |