|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Set value layout |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef T_GLXSETVALUELAYOUT_H |
|
22 #define T_GLXSETVALUELAYOUT_H |
|
23 |
|
24 #include <glxlayout.h> |
|
25 #include <alf/alftimedvalue.h> |
|
26 |
|
27 /** |
|
28 * TGlxSetValueLayout |
|
29 * |
|
30 * Sets value of specific layout attribute(s) |
|
31 * |
|
32 * @lib glxlayouts.lib |
|
33 */ |
|
34 class TGlxSetValueLayout : public TGlxLayout |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 IMPORT_C TGlxSetValueLayout(); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 IMPORT_C ~TGlxSetValueLayout(); |
|
47 |
|
48 /** |
|
49 * Set the value. This variant sets the value for opacity and rotation |
|
50 * value is (TReal) |
|
51 * This method can only be used for setting EOpacity or ERotation |
|
52 * @param aTarget the value you wish the visual(s) to have |
|
53 * @param aMilliseconds the duration for the change |
|
54 */ |
|
55 IMPORT_C void SetOpacity( TReal32 aTarget, TInt aMilliseconds ); |
|
56 |
|
57 /** |
|
58 * Set the value. This variant sets the value for size and position |
|
59 * value is (TReal, TReal) |
|
60 * This method can only be used for setting ESize or EPosition |
|
61 * @param aTargetX the value for x |
|
62 * @param aTargetY the value for y |
|
63 * @param aMilliseconds the duration for the change |
|
64 */ |
|
65 IMPORT_C void SetSize( |
|
66 TReal32 aTargetWidth, TReal32 aTargetHeight, TInt aMilliseconds ); |
|
67 |
|
68 /** |
|
69 * Set the position |
|
70 * @param aTargetX the value for x |
|
71 * @param aTargetY the value for y |
|
72 * @param aMilliseconds the duration for the change |
|
73 */ |
|
74 IMPORT_C void SetPosition( |
|
75 TReal32 aTargetX, TReal32 aTargetY, TInt aMilliseconds ); |
|
76 |
|
77 protected: // From TGlxLayout |
|
78 |
|
79 /// @ref TGlxLayout::DoSetLayoutValues |
|
80 void DoSetLayoutValues( TGlxLayoutInfo& aInfo ); |
|
81 |
|
82 private: |
|
83 |
|
84 /// Own: the value for opacity |
|
85 TAlfTimedValue iOpacityValue; |
|
86 /// Own: the value for size |
|
87 TAlfTimedPoint iSizeValue; |
|
88 /// Own: the value for position |
|
89 TAlfTimedPoint iPositionValue; |
|
90 /// Own: flag to tell which layout values need to be changed |
|
91 TInt iValuesToChange; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // T_GLXSETVALUELAYOUT_H |