epoc32/include/uiklaf/private/lafappui.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/uiklaf/private/lafappui.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,62 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef __LAFAPPUI_H__
    1.20 +#define __LAFAPPUI_H__
    1.21 +
    1.22 +#include <e32std.h>
    1.23 +#include <lafmain.h>
    1.24 +
    1.25 +class CCoeEnv;
    1.26 +struct TPointerEvent;
    1.27 +
    1.28 +
    1.29 +class LafAppUi
    1.30 +/** Application UI level LAF support. 
    1.31 +
    1.32 +@publishedPartner 
    1.33 +@released */
    1.34 +	{
    1.35 +public:
    1.36 +	/** Tests whether to attempt to fade all windows of an application when that application's 
    1.37 +	window group moves into the background.
    1.38 +	
    1.39 +	@return True to fade, otherwise false */
    1.40 +	IMPORT_C static TBool FadeWhenInBackground();
    1.41 +	/** Adjusts a screen rectangle to allow room for any other applications that should 
    1.42 +	always be visible.
    1.43 +	
    1.44 +	@param aRect Pass in the rectangle to adjust; on return, the adjusted rectangle */
    1.45 +	IMPORT_C static void ReduceRect(TRect& aRect);
    1.46 +	/** Tests if bubble help should be cancelled due to a specified pointer event.
    1.47 +	
    1.48 +	This is called when processing a window server event in the AppUi.
    1.49 +	
    1.50 +	@param aEvent Pointer event
    1.51 +	@return True if bubble help should be cancelled */
    1.52 +	IMPORT_C static TBool CancelBubbleHelpOnEvent(const TPointerEvent& aEvent);
    1.53 +	/** Gets the screen area available to a specified client application.
    1.54 +	
    1.55 +	The screen area should exclude screen furniture such as menu bars and status 
    1.56 +	panes.
    1.57 +	
    1.58 +	@param aEnv Application's control environment
    1.59 +	@param aClientRectResolver Object that works out how screen furniture reduces 
    1.60 +	the available screen area 
    1.61 +	@return Available screen area */
    1.62 +	IMPORT_C static TRect ClientRect(const CCoeEnv& aEnv,const MLafClientRectResolver& aClientRectResolver);
    1.63 +	};
    1.64 +
    1.65 +#endif //__LAFAPPUI_H__