Scroll bars are used when the contents of a view require a greater area than can be physically displayed. Scroll bars allow a user to move different parts of the content into the view and to indicate what proportion of the total contents are visible at any one time.
|
Public Types |
| typedef TEikScrollBarFlags | TAknScrollBarFlags |
| enum | TOrientation { EVertical = SLafScrollBar::EVertical,
EHorizontal = SLafScrollBar::EHorizontal
} |
| | Scroll bar orientation. More...
|
| enum | TScrollBarType { ENormalScrollBar = 0x0,
EArrowHead = 0x200,
EDoubleSpan = 0x400
} |
| | Type of the scroll bar. More...
|
| enum | TEikScrollBarFlags {
EEikScrollBarDefaultBehaviour,
EEikScrollBarNoNudgeButtons,
EEikScrollBarHasPageButtons,
EEikScrollBarHasHomeEndButtons,
EEikScrollBarNoShaftOrThumb,
EEikScrollBarShaftButNoThumb,
EButtonsAtStartOfShaft,
EButtonsAtEndOfShaft,
EButtonsEitherSideOfShaft,
ENoAutoDimming
} |
| | Scroll bar initialisation flags. More...
|
Public Member Functions |
| IMPORT_C | ~CEikScrollBar () |
| | Destructor.
|
| IMPORT_C | CEikScrollBar () |
| | C++ default constructor.
|
| virtual IMPORT_C void | ConstructL (MEikScrollBarObserver *aScrollBarObserver, const CCoeControl *aParent, TOrientation aOrientation, TInt aLength, TInt aScrollBarFlags=EEikScrollBarDefaultBehaviour) |
| | Second phase constructor of the scroll bar.
|
| IMPORT_C void | SetLengthL (TInt aLength) |
| | Not implemented.
|
| IMPORT_C void | SetModelL (const TEikScrollBarModel *aModel) |
| | Change the scrollbar model.
|
| IMPORT_C void | SetModel (const TEikScrollBarModel *aModel) |
| | Change the scrollbar model.
|
| IMPORT_C void | SetLengthAndModelL (TInt aLength, const TEikScrollBarModel *aModel) |
| | Change the model at once to avoid a double update of the scroll bar.
|
| IMPORT_C void | SetModelThumbPosition (TInt aThumbPos) |
| | Not implemented.
|
| IMPORT_C void | SetFocusPosToThumbPos (TInt aFocusPosition) |
| | Not implemented.
|
| void | SetScrollBarObserver (MEikScrollBarObserver *aScrollBarObserver) |
| | Allows scroll bar observer to be changed also after the construction.
|
| const TEikScrollBarModel * | Model () const |
| | Gets the scroll bar model used by this scroll bar.
|
| IMPORT_C TInt | ThumbPosition () const |
| | Gets the position within the scroll bar model.
|
| IMPORT_C TInt | ScrollBarBreadth () const |
| | Gets the height of a horizontal scrollbar or width of a vertical scrollbar.
|
| IMPORT_C void | SetDecreaseButtonsDimmed (TBool aDimmed) |
| | Not implemented.
|
| IMPORT_C void | SetIncreaseButtonsDimmed (TBool aDimmed) |
| | Not implemented.
|
| IMPORT_C void | SetAllButtonsDimmed (TBool aDimmed) |
| | Not implemented.
|
| CAknScrollButton * | IncreaseNudgeButton () const |
| | Gets handle to the controls that draw arrows in the both ends of spanned scrollbar.
|
| CAknScrollButton * | DecreaseNudgeButton () const |
| | Gets handle to the controls that draw arrows in the both ends of spanned scrollbar.
|
| IMPORT_C void | SetContainingCba (CEikCba *aCba) |
| | Sets command button area.
|
| IMPORT_C void | MakeVisible (TBool aVisible) |
| | From CCoeControl.
|
| IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
| | From CCoeControl.
|
| TScrollBarType | ScrollBarType () |
| | Gets the scroll bar type.
|
Static Public Member Functions |
| static IMPORT_C TInt | DefaultScrollBarBreadth () |
| | Gets the default width of the scroll bar.
|
| static IMPORT_C TInt | MinVisibleLength (const TInt aScrollBarFlags) |
| | Not implemented.
|
Data Fields |
| TDblQueLink | iSBLink |
| | Not used, but cannot be removed due binary compatibility issues.
|
Protected Types |
| enum | TPrivateScrollBarFlags { ENoComponentsToDisplay = 0x10000,
EIncreaseButtonsDimmed = 0x20000,
EDecreaseButtonsDimmed = 0x40000
} |
| | Flags to determine whether there are visible components and whether to dim the increase, or decrease, buttons. More...
|
| enum | TPointerDownOn {
ENone,
EHomeButton,
EDecreasePageButton,
EDecreaseNudgeButton,
EDecreaseShaft,
EThumb,
EIncreaseShaft,
EIncreaseNudgeButton,
EIncreasePageButton,
EEndButton
} |
| | Determines where on a scroll bar a pointer down event occurred. More...
|
| enum | TShaftRedrawRequired { ENoRedrawRequired,
ERedrawShaft
} |
| | Determines whether to redraw the scroll bar shaft. More...
|
| enum | TWhichButtons { EIncreaseOnly,
EDecreaseOnly,
EAll
} |
| | Determines which buttons are displayed. More...
|
Protected Member Functions |
| IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
| | From CCoeControl.
|
| IMPORT_C TInt | CountComponentControls () const |
| | From .
|
| void | CreateRequiredComponentsL () |
| | Allocates and constructs all the required components of the scrollbar.
|
| void | DestroyButton (CAknScrollButton *&aButton) |
| | Destroys a button.
|
| virtual IMPORT_C void | SetButtonPositionL (CAknScrollButton *aButton) |
| | Not implemented.
|
Protected Attributes |
| SEikScrollBarButtons | iButtons |
| | Scroll bar buttons struct.
|
| TOrientation | iOrientation |
| | Scroll bar orientation.
|
| CEikScrollBarExtensionImpl * | iExtension |
| | A pointer to CEikScrollBarExtensionImpl class.
|
Friends |
| class | CEikScrollBarExtension |
| class | CAknDoubleSpanScrollBarExtension |
| class | CEikScrollBarFrame |
| | The scroll bar frame is a control assemblage manager that relates a control, or control body, to two scroll bars and a corner window.
|
Data Structures |
| struct | SEikScrollBarButtons |
| | Encapsulates pointers to the scroll bar buttons. More...
|