openvg/openvgrefimplementation/sfopenvg/sfopenvg/symbian/eglosnativewindowtype.h
author jose.thachil <jose.thachil@cell-telecom.com>
Tue, 02 Nov 2010 08:37:41 +0000
branchEGL_MERGE
changeset 212 a8e55d78eb52
parent 6 250ac10a3d98
child 216 b87045f2f5d7
permissions -rw-r--r--
EGL_MERGE
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
212
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    23
class REglWindowBase
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    24
	{
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    25
public:
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    26
	TBool IsWindow()
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    27
		{
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    28
		if(*(TInt32*)iOffset == 0xFFFFFFFF)
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    29
			{
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    30
			return EFalse;
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    31
			}
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    32
		}
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    33
protected:
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    34
	REglWindowBase():iOffsetVal(0xFFFFFFFF)
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    35
		{
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    36
		iOffset= &iOffsetVal;
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    37
		}
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    38
	TInt32 iOffsetVal;
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    39
	void* iOffset;
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    40
	};
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    41
a8e55d78eb52 EGL_MERGE
jose.thachil <jose.thachil@cell-telecom.com>
parents: 6
diff changeset
    42
struct TNativeWindowType:public REglWindowBase
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
    43
	{
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
public:
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
	TNativeWindowType() :
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
    46
	iSize(0,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
    47
	iBitmap(NULL)
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
    48
	{};
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
    49
	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
    50
	CFbsBitmap* 		iBitmap; //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
    51
	};
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
    52
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
    53
#endif //EGLOSCALLBACK_H