1 /* |
|
2 * Copyright (c) 2007 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: Widget interface with utilities for scrollbar widget. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ALF_SCROLLEVENTS_H |
|
20 #define ALF_SCROLLEVENTS_H |
|
21 |
|
22 // WidgetModel Includes |
|
23 #include <alf/alfwidgetevents.h> |
|
24 |
|
25 // Widget Includes |
|
26 #include <alf/ialfscrollbarwidget.h> |
|
27 #include <alf/ialfscrollbardefaultbaseelement.h> |
|
28 |
|
29 namespace Alf |
|
30 { |
|
31 // forward declaration |
|
32 class IAlfScrollBarDefaultBaseElement; |
|
33 |
|
34 /** |
|
35 * Flags to indicate the changes being done in the scrollbar model |
|
36 * ENoChange Flag to indicate no scrollbar model data is changed |
|
37 * ESpanChanged Flag to indicate Span is changed |
|
38 * EViewLengthChanged Flag to indicate view length is changed |
|
39 * EViewStartPosChanged Flag to indicate view start position is changed |
|
40 * EFocusPosChanged Flag to indicate focus position is changed |
|
41 * |
|
42 * @since S60 ?S60_version |
|
43 */ |
|
44 enum ScrollModelChangeMask |
|
45 { |
|
46 ENoChange = 0, // Flag if scrollbar model data is changed |
|
47 ESpanChanged = 1, // Flag to indicate Span is changed |
|
48 EViewLengthChanged = 2, // Flag to indicate view length is changed |
|
49 EViewStartPosChanged = 4, // Flag if view start position is changed |
|
50 }; |
|
51 |
|
52 /** |
|
53 * This structure is used to send data along with |
|
54 * EEventScrollModelChanged scroll event |
|
55 * |
|
56 * @since S60 ?S60_version |
|
57 */ |
|
58 struct ScrollModelChangedEventData |
|
59 { |
|
60 int mSpan; // Span |
|
61 int mViewLength; // View Length |
|
62 int mViewStartPos; // View Start position |
|
63 int mChangedMask; // combination (ORing) of one or more |
|
64 // TScrollModelChangeMask enums |
|
65 }; |
|
66 |
|
67 } // namespace Alf |
|
68 |
|
69 #endif // IALF_SCROLLEVENTS_H |
|
70 //End Of File |
|