1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // 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
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
27 /** Provides LAF settings for the system environment's message windows (CEikMsgWin).
33 class TDisplayParameters;
35 /** Sets the shadow on the blank window which the message is contained in.
37 @param aBlankWindow Message window */
38 IMPORT_C static void SetUpBlankWindow(RBlankWindow& aBlankWindow);
39 /** Completes the intitialisation of the message window.
41 This function should select a font and call RMessageWindow::ConstructL() for
44 @param aMessageWin Message window
45 @param aEnv LAF environment functions */
46 IMPORT_C static void CompleteMessageWinConstructionL(RMessageWindow& aMessageWin,const MLafEnv& aEnv);
47 /** Handles a change to the system resources that may affect how the window is
50 The function should update aMessageWin appropriately.
52 @param aMessageWin Message window
53 @param aEnv LAF environment functions */
54 IMPORT_C static void HandleResourceChange(RMessageWindow& aMessageWin,const MLafEnv& aEnv);
55 /** Formats message text display.
57 The function should truncate the text in aParams.iTextToDisplay to fit
58 the device display, and set aParms.iMsgWinSize and aParams.iMsgWinPosition
59 appropriately, depending on the corner aParams.iDisplayCorner, and the
62 aParams.iClientRect is provided for devices that wish to set the position
63 relative to the client rect of the application rather than the screen rect.
65 @param aParams Display parameters
66 @param aEnv LAF environment functions */
67 IMPORT_C static void ConfigureText(TDisplayParameters& aParams,const MLafEnv& aEnv);
71 class LafMsgWin::TDisplayParameters
72 /** Holds message window text display parameters.
80 @param aTextToDispay Message window text. */
81 IMPORT_C TDisplayParameters(TDes& aTextToDispay);
83 /** Message window position. */
84 TPoint iMsgWinPosition;
85 /** Message window size. */
87 /** Message window text. */
89 /** Message window margins. */
90 TMargins iMsgWinBorders;
91 /** Message window alignment. */
92 TGulAlignment iDisplayCorner;
93 /** Associated control environment. */
95 /** Message window client screen area. */
101 /** Provides LAF settings for the system environment's information message
102 window (CEikonEnv::InfoMsg() etc.).
108 /** Gets the default number of microseconds for which a message is displayed.
110 @return Default duration */
111 IMPORT_C static TTimeIntervalMicroSeconds32 DefaultDuration();
116 /** Provides LAF settings for the system environment's busy message window
117 (CEikonEnv::BusyMsgL()).
123 /** Gets the default number of microseconds for which a message is displayed.
125 @return Default delay */
126 IMPORT_C static TTimeIntervalMicroSeconds32 DefaultInitialDelay();
129 #endif //__LAFMSG_H__