|
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 coefficient layout |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef T_GLXSETCOEFFICIENTLAYOUT_H |
|
22 #define T_GLXSETCOEFFICIENTLAYOUT_H |
|
23 |
|
24 #include <glxlayout.h> |
|
25 #include <alf/alfTimedValue.h> |
|
26 |
|
27 /** |
|
28 * TGlxSetCoefficientLayout |
|
29 * |
|
30 * Resets the coefficient to a defined value. |
|
31 * The value can be animated. |
|
32 * |
|
33 * @lib glxlayouts.lib |
|
34 */ |
|
35 class TGlxSetCoefficientLayout : public TGlxLayout |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Constructor. |
|
41 */ |
|
42 IMPORT_C TGlxSetCoefficientLayout(); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 IMPORT_C ~TGlxSetCoefficientLayout(); |
|
48 |
|
49 /** |
|
50 * Set layout type to which the coefficient is set |
|
51 * @param aType the layout type, see @ref TGlxLayoutInfo::TLayoutType |
|
52 */ |
|
53 IMPORT_C void SetType( TGlxLayoutInfo::TLayoutType aType ); |
|
54 |
|
55 /** |
|
56 * SetCoefficient. |
|
57 * @param aCoefficient the value to set |
|
58 * @param aMilliseconds the target time for the coefficient value |
|
59 */ |
|
60 IMPORT_C void SetCoefficient( TReal32 aCoefficient, TInt aMilliseconds ); |
|
61 |
|
62 protected: // From TGlxLayout |
|
63 |
|
64 /// @ref TGlxLayout::DoSetLayoutValues |
|
65 void DoSetLayoutValues( TGlxLayoutInfo& aInfo ); |
|
66 /// @ref TGlxLayout::DoChanged |
|
67 TBool DoChanged() const; |
|
68 /// @ref TGlxLayout::DoClearChanged |
|
69 void DoClearChanged(); |
|
70 |
|
71 private: |
|
72 |
|
73 /// Own: the type of the layout |
|
74 TGlxLayoutInfo::TLayoutType iType; |
|
75 /// Own: the timed value for the coefficient |
|
76 TAlfTimedValue iCoefficient; |
|
77 |
|
78 }; |
|
79 |
|
80 #endif // T_GLXSETCOEFFICIENTLAYOUT_H |