williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __LAFAPPUI_H__ williamr@2: #define __LAFAPPUI_H__ williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: class CCoeEnv; williamr@2: struct TPointerEvent; williamr@2: williamr@2: williamr@2: class LafAppUi williamr@2: /** Application UI level LAF support. williamr@2: williamr@2: @publishedPartner williamr@2: @released */ williamr@2: { williamr@2: public: williamr@2: /** Tests whether to attempt to fade all windows of an application when that application's williamr@2: window group moves into the background. williamr@2: williamr@2: @return True to fade, otherwise false */ williamr@2: IMPORT_C static TBool FadeWhenInBackground(); williamr@2: /** Adjusts a screen rectangle to allow room for any other applications that should williamr@2: always be visible. williamr@2: williamr@2: @param aRect Pass in the rectangle to adjust; on return, the adjusted rectangle */ williamr@2: IMPORT_C static void ReduceRect(TRect& aRect); williamr@2: /** Tests if bubble help should be cancelled due to a specified pointer event. williamr@2: williamr@2: This is called when processing a window server event in the AppUi. williamr@2: williamr@2: @param aEvent Pointer event williamr@2: @return True if bubble help should be cancelled */ williamr@2: IMPORT_C static TBool CancelBubbleHelpOnEvent(const TPointerEvent& aEvent); williamr@2: /** Gets the screen area available to a specified client application. williamr@2: williamr@2: The screen area should exclude screen furniture such as menu bars and status williamr@2: panes. williamr@2: williamr@2: @param aEnv Application's control environment williamr@2: @param aClientRectResolver Object that works out how screen furniture reduces williamr@2: the available screen area williamr@2: @return Available screen area */ williamr@2: IMPORT_C static TRect ClientRect(const CCoeEnv& aEnv,const MLafClientRectResolver& aClientRectResolver); williamr@2: }; williamr@2: williamr@2: #endif //__LAFAPPUI_H__