Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/transparent_8h_source.html
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/transparent_8h_source.html Tue Mar 30 16:16:55 2010 +0100
@@ -0,0 +1,156 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<title>TB9.2 Example Applications: examples/Graphics/WS/transparent/transparent.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body>
+<!-- Generated by Doxygen 1.6.2 -->
+<h1>examples/Graphics/WS/transparent/transparent.h</h1><a href="transparent_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).</span>
+<a name="l00002"></a>00002 <span class="comment">// All rights reserved.</span>
+<a name="l00003"></a>00003 <span class="comment">// This component and the accompanying materials are made available</span>
+<a name="l00004"></a>00004 <span class="comment">// under the terms of "Eclipse Public License v1.0"</span>
+<a name="l00005"></a>00005 <span class="comment">// which accompanies this distribution, and is available</span>
+<a name="l00006"></a>00006 <span class="comment">// at the URL "http://www.eclipse.org/legal/epl-v10.html".</span>
+<a name="l00007"></a>00007 <span class="comment">//</span>
+<a name="l00008"></a>00008 <span class="comment">// Initial Contributors:</span>
+<a name="l00009"></a>00009 <span class="comment">// Nokia Corporation - initial contribution.</span>
+<a name="l00010"></a>00010 <span class="comment">//</span>
+<a name="l00011"></a>00011 <span class="comment">// Contributors:</span>
+<a name="l00012"></a>00012 <span class="comment">//</span>
+<a name="l00013"></a>00013 <span class="comment">// Description:</span>
+<a name="l00014"></a>00014 <span class="comment">// Contains the CTransparentApplication, CTransparentDocument, CTransparentAppUi, CWait,</span>
+<a name="l00015"></a>00015 <span class="comment">// CEventHandler and CTransparentDocument classes.</span>
+<a name="l00016"></a>00016 <span class="comment">//</span>
+<a name="l00017"></a>00017
+<a name="l00018"></a>00018
+<a name="l00019"></a>00019
+<a name="l00023"></a>00023 <span class="preprocessor">#ifndef __TRANSPARENT_H__</span>
+<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define __TRANSPARENT_H__</span>
+<a name="l00025"></a>00025 <span class="preprocessor"></span>
+<a name="l00026"></a>00026 <span class="preprocessor">#include <coeccntx.h></span>
+<a name="l00027"></a>00027
+<a name="l00028"></a>00028 <span class="preprocessor">#include <eikenv.h></span>
+<a name="l00029"></a>00029 <span class="preprocessor">#include <eikappui.h></span>
+<a name="l00030"></a>00030 <span class="preprocessor">#include <eikapp.h></span>
+<a name="l00031"></a>00031 <span class="preprocessor">#include <eikdoc.h></span>
+<a name="l00032"></a>00032 <span class="preprocessor">#include <eikmenup.h></span>
+<a name="l00033"></a>00033 <span class="preprocessor">#include <eikstart.h></span>
+<a name="l00034"></a>00034 <span class="preprocessor">#include <f32file.h></span>
+<a name="l00035"></a>00035 <span class="preprocessor">#include <w32std.h></span>
+<a name="l00036"></a>00036 <span class="preprocessor">#include <e32std.h></span>
+<a name="l00037"></a>00037 <span class="preprocessor">#include <eikon.hrh></span>
+<a name="l00038"></a>00038
+<a name="l00039"></a>00039 <span class="preprocessor">#include <transparent.rsg></span>
+<a name="l00040"></a>00040 <span class="preprocessor">#include "transparent.hrh"</span>
+<a name="l00041"></a>00041
+<a name="l00042"></a>00042 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KEventButton1Pressed, <span class="stringliteral">"Event received for mouse button 1 being pressed"</span>);
+<a name="l00043"></a>00043 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KEventButton2Pressed, <span class="stringliteral">"Event received for press of middle button of a 3 button mouse"</span>);
+<a name="l00044"></a>00044 <a class="code" href="secureclientandserver_8h.html#a5eadd4429627d82193b37536d4faa03a">_LIT</a>(KEventButton3Pressed, <span class="stringliteral">"Event received for last mouse button press"</span>);
+<a name="l00045"></a>00045
+<a name="l00046"></a>00046 <span class="keyword">const</span> TInt KDelay=1000000;
+<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="class_c_event_handler.html">CEventHandler</a>;
+<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="class_c_transparent_app_ui.html">CTransparentAppUi</a>;
+<a name="l00049"></a>00049
+<a name="l00054"></a><a class="code" href="class_c_transparent_application.html">00054</a> <span class="keyword">class </span><a class="code" href="class_c_transparent_application.html">CTransparentApplication</a> : <span class="keyword">public</span> CEikApplication
+<a name="l00055"></a>00055 {
+<a name="l00056"></a>00056 <span class="keyword">private</span>:
+<a name="l00057"></a>00057 CApaDocument* CreateDocumentL();
+<a name="l00058"></a>00058 TUid AppDllUid() <span class="keyword">const</span>;
+<a name="l00059"></a>00059 };
+<a name="l00060"></a>00060
+<a name="l00064"></a><a class="code" href="class_c_transparent_util.html">00064</a> <span class="keyword">class </span><a class="code" href="class_c_transparent_util.html">CTransparentUtil</a> : <span class="keyword">public</span> CCoeControl
+<a name="l00065"></a>00065 {
+<a name="l00066"></a>00066 <span class="keyword">public</span>:
+<a name="l00067"></a>00067 <span class="keyword">static</span> <a class="code" href="class_c_transparent_util.html">CTransparentUtil</a>* <a class="code" href="class_c_transparent_util.html#a9d8db23cebc357a94cfa21213db8a2ab">NewL</a>();
+<a name="l00068"></a>00068 <span class="keyword">static</span> TBool Flag();
+<a name="l00069"></a>00069 <a class="code" href="class_c_transparent_util.html#a5ac75e00750e9cd60fdf575bf3e400e4">CTransparentUtil</a>();
+<a name="l00070"></a>00070 <a class="code" href="class_c_transparent_util.html#acc7952414bc448ede845d4ee1a6306ab">~CTransparentUtil</a>();
+<a name="l00071"></a>00071 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_util.html#a913184d6e06574a7b843e17c021caad6">ConstructL</a>();
+<a name="l00072"></a>00072
+<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_util.html#a1b609f4a41da207c7a42610a42529752">ClearWindow</a>(RWsSession& aSession, RWindow& aWindow, CWindowGc* aGc, TRgb aColor);
+<a name="l00074"></a>00074 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_util.html#a253c26d5668451d3186cabe1744e364a">DrawWindow</a>(RWindow& aWindow, TRgb aColor1, TRgb aColor2, TRect aRect, <span class="keyword">const</span> TDesC& aText);
+<a name="l00075"></a>00075 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_util.html#ab552b1972db4ef4c22a6733e8f48a959">DrawWindowRegion</a>(RWindow& aWindow, TRgb aColor1, TRgb aColor2,TRect aChopRect, TRect aRect, <span class="keyword">const</span> TDesC& aText, <span class="keyword">const</span> TPoint& aPoint);
+<a name="l00076"></a>00076
+<a name="l00077"></a>00077 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_util.html#a8789a4bf5bdbbd7ee94c91ac91a5c04f">TransparencyVarianceL</a>();
+<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_util.html#a5177889bde1510d758ef8e84b6416e5f">TransparentRegionL</a>();
+<a name="l00079"></a>00079
+<a name="l00080"></a>00080 TBool <a class="code" href="class_c_transparent_util.html#ae5c53597e173f8e554c7f4fbda81a154">DoChangeTransparencyL</a>();
+<a name="l00081"></a>00081 TBool DoSetTransparentRegion();
+<a name="l00082"></a>00082
+<a name="l00083"></a>00083 <span class="keyword">private</span>:
+<a name="l00084"></a>00084 CPeriodic* iPeriodicObject;
+<a name="l00085"></a>00085 <a class="code" href="class_c_event_handler.html">CEventHandler</a>* iEventHandler;
+<a name="l00086"></a>00086 RWindowGroup iGroup;
+<a name="l00087"></a>00087 RWindow iBackgndWindow;
+<a name="l00088"></a>00088 RWindow iForegndWindowTrans;
+<a name="l00089"></a>00089
+<a name="l00090"></a>00090 RWindow iFgndWinTransRegion;
+<a name="l00091"></a>00091 RWsSession iWs;
+<a name="l00092"></a>00092 CWsScreenDevice* iScr;
+<a name="l00093"></a>00093 CWindowGc* iGc;
+<a name="l00094"></a>00094
+<a name="l00095"></a>00095 TSize iSize;
+<a name="l00096"></a>00096 TInt iAlphaValue;
+<a name="l00097"></a>00097 TInt iXOffset;
+<a name="l00098"></a>00098 TInt iYOffset;
+<a name="l00099"></a>00099 CFbsBitmapDevice* iBitmapDevice;
+<a name="l00100"></a>00100 CFbsBitGc* iBitmapGc;
+<a name="l00101"></a>00101 TInt iPos;
+<a name="l00102"></a>00102 TInt iColor;
+<a name="l00103"></a>00103 TBool iBoolVisible;
+<a name="l00104"></a>00104 <span class="keyword">public</span>:
+<a name="l00105"></a>00105 TRegionFix<2> iRegion;
+<a name="l00106"></a>00106 };
+<a name="l00107"></a>00107
+<a name="l00111"></a><a class="code" href="class_c_transparent_app_ui.html">00111</a> <span class="keyword">class </span><a class="code" href="class_c_transparent_app_ui.html">CTransparentAppUi</a> : <span class="keyword">public</span> CEikAppUi
+<a name="l00112"></a>00112 {
+<a name="l00113"></a>00113 <span class="keyword">public</span>:
+<a name="l00114"></a>00114 <span class="keywordtype">void</span> <a class="code" href="class_c_transparent_app_ui.html#a326f4addd9c938b310e947e693a677f6">ConstructL</a>();
+<a name="l00115"></a>00115 <a class="code" href="class_c_transparent_app_ui.html#ac0551f245d91b66ef370eada24099134">~CTransparentAppUi</a>();
+<a name="l00116"></a>00116
+<a name="l00117"></a>00117 <span class="keyword">private</span>:
+<a name="l00118"></a>00118 <span class="keywordtype">void</span> HandleCommandL(TInt aCommand);
+<a name="l00119"></a>00119
+<a name="l00120"></a>00120 <span class="keyword">private</span>:
+<a name="l00121"></a>00121 <a class="code" href="class_c_transparent_util.html">CTransparentUtil</a>* iUtil;
+<a name="l00122"></a>00122 };
+<a name="l00123"></a>00123
+<a name="l00127"></a><a class="code" href="class_c_transparent_document.html">00127</a> <span class="keyword">class </span><a class="code" href="class_c_transparent_document.html">CTransparentDocument</a> : <span class="keyword">public</span> CEikDocument
+<a name="l00128"></a>00128 {
+<a name="l00129"></a>00129 <span class="keyword">public</span>:
+<a name="l00130"></a>00130 <span class="keyword">static</span> <a class="code" href="class_c_transparent_document.html">CTransparentDocument</a>* NewL(CEikApplication& aApp);
+<a name="l00131"></a>00131 <a class="code" href="class_c_transparent_document.html#adc1f29c2b1b23bfdea626b8b80a60bdb">CTransparentDocument</a>(CEikApplication& aApp);
+<a name="l00132"></a>00132 <span class="keywordtype">void</span> ConstructL();
+<a name="l00133"></a>00133 <span class="keyword">private</span>:
+<a name="l00134"></a>00134 CEikAppUi* CreateAppUiL();
+<a name="l00135"></a>00135 };
+<a name="l00136"></a>00136
+<a name="l00140"></a><a class="code" href="class_c_event_handler.html">00140</a> <span class="keyword">class </span><a class="code" href="class_c_event_handler.html">CEventHandler</a>: <span class="keyword">public</span> CActive
+<a name="l00141"></a>00141 {
+<a name="l00142"></a>00142 <span class="keyword">public</span>:
+<a name="l00143"></a>00143 <span class="keyword">static</span> <a class="code" href="class_c_event_handler.html">CEventHandler</a>* <a class="code" href="class_c_event_handler.html#a0e709c6e924eb9799e69ea10e26824d6">NewL</a>(RWsSession& aWs);
+<a name="l00144"></a>00144 <span class="keyword">virtual</span> <a class="code" href="class_c_event_handler.html#a41b6924a33472d04cee2fe3e90cc6acc">~CEventHandler</a>();
+<a name="l00145"></a>00145 <span class="keywordtype">void</span> <a class="code" href="class_c_event_handler.html#aaebc5150679bb4621e2bc353d6b97131">HandlePointerEvent</a>(TPointerEvent& aPointerEvent);
+<a name="l00146"></a>00146 <span class="keywordtype">void</span> <a class="code" href="class_c_event_handler.html#a72d34b52144f8e5312ec78abe44ee895">InfoMessage</a>(<span class="keyword">const</span> TDesC& aMsg);
+<a name="l00147"></a>00147 <span class="keywordtype">void</span> <a class="code" href="class_c_event_handler.html#aac65df544e26e3ef06cc087b514c030a">IssueRequest</a>();
+<a name="l00148"></a>00148 <span class="keyword">private</span>:
+<a name="l00149"></a>00149 <a class="code" href="class_c_event_handler.html">CEventHandler</a>(RWsSession& aWs);
+<a name="l00150"></a>00150 <span class="keywordtype">void</span> ConstructL();
+<a name="l00151"></a>00151 <span class="keywordtype">void</span> RunL();
+<a name="l00152"></a>00152 <span class="keywordtype">void</span> DoCancel();
+<a name="l00153"></a>00153
+<a name="l00154"></a>00154 <span class="keyword">private</span>:
+<a name="l00155"></a>00155 TWsEvent iWsEvent;
+<a name="l00156"></a>00156 RWsSession& iWs;
+<a name="l00157"></a>00157 };
+<a name="l00158"></a>00158 <span class="preprocessor">#endif // __TRANSPARENT_H__</span>
+<a name="l00159"></a>00159 <span class="preprocessor"></span>
+</pre></div></div>
+<hr size="1"/><address style="text-align: right;"><small>Generated by
+<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
+</body>
+</html>