00001 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // 00015 00016 #include "transparent.h" 00017 00022 void CTransparentAppUi::ConstructL() 00023 { 00024 // Complete the UI framework's construction of the App UI. 00025 BaseConstructL(); 00026 // Create the appview. 00027 iUtil = CTransparentUtil::NewL(); 00028 } 00029 00034 CTransparentAppUi::~CTransparentAppUi() 00035 { 00036 delete iUtil; 00037 } 00038 00042 void CTransparentAppUi::HandleCommandL( TInt aCommand ) 00043 { 00044 switch (aCommand) 00045 { 00046 case ETransparentToDo0: 00047 // Create a transparent foreground window over a background window, 00048 // both windows having some content drawn to them. 00049 // Vary the transparency of the foreground window in steps 00050 iUtil->TransparencyVarianceL(); 00051 break; 00052 00053 case ETransparentToDo1: 00054 // Create an opaque window with a transparent region having appropriate 00055 // content drawn to it to illustrate the presence of the region. 00056 iUtil->TransparentRegionL(); 00057 break; 00058 00059 case EEikCmdExit: 00060 Exit(); 00061 break; 00062 } 00063 } 00064
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.