|
1 /* |
|
2 * Copyright (c) 2004-2008 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: PolySpline. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AKNSALPOLYLINE1D_H |
|
20 #define AKNSALPOLYLINE1D_H |
|
21 |
|
22 #include "AknsAlPolyBase.h" |
|
23 #include "AknsAlFixed.h" |
|
24 |
|
25 |
|
26 /** |
|
27 * Base class for PolyLine and PolySpline classes. |
|
28 * |
|
29 * The class is not intended for derivation outside the library. |
|
30 * |
|
31 * @since 3.0 |
|
32 */ |
|
33 class CAknsAlPolyLine1D : public CAknsAlPolyBase |
|
34 { |
|
35 public: // Constructors |
|
36 |
|
37 static CAknsAlPolyLine1D* NewL(); |
|
38 |
|
39 /** |
|
40 * Destructor |
|
41 * |
|
42 * @since 3.0 |
|
43 */ |
|
44 ~CAknsAlPolyLine1D(); |
|
45 |
|
46 public: // New functions |
|
47 |
|
48 /** |
|
49 * Returns the point in poly(line/spline) in scaled area. |
|
50 * |
|
51 * @param aPosition 32-bit integer representing the position in poly(line/spline). |
|
52 * If aPosition is 0, starting point is returned and if aPosition is 0xffffffff, |
|
53 * the last point is returned. |
|
54 * |
|
55 * @return Point in poly(line/spline) scaled to the set area or if no |
|
56 * area is set, returned values are in scale from 0 to 1. |
|
57 * |
|
58 * @since 3.0 |
|
59 */ |
|
60 TPoint GetPolyPoint( const TUint32 aPosition ); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * Default constructor. |
|
66 * |
|
67 * @since 3.0 |
|
68 */ |
|
69 CAknsAlPolyLine1D(); |
|
70 }; |
|
71 |
|
72 #endif //AKNSALPOLYLINE1D_H |
|
73 |
|
74 // End of file |
|
75 |