TEikScrollBarModel Class Reference
Scroll bar models encapsulate the range of integers which a scroll bar can represent, from zero to n, and the current position of the scroll bar thumb within that range.
Supported from Symbian 5.0.
Constructor & Destructor Documentation
TEikScrollBarModel()
TEikScrollBarModel | ( | ) | [inline] |
TEikScrollBarModel(TInt, TInt, TInt)
IMPORT_C | TEikScrollBarModel | ( | TInt | aScrollSpan, |
| TInt | aThumbSpan = 0, |
| TInt | aThumbPosition = 0 |
| ) | |
Parameters
TInt aScrollSpan | The span of this model, numbered from zero. |
TInt aThumbSpan = 0 | Number of positions spanned by the thumb.In default this is zero. |
TInt aThumbPosition = 0 | Position of the thumb within the model span. In default this is zero. |
Member Functions Documentation
CheckBounds()
IMPORT_C void | CheckBounds | ( | ) | |
Ensures that the thumb position remains within its valid range by altering it if necessary.
MaxThumbPos()
IMPORT_C TInt | MaxThumbPos | ( | ) | const |
Gets the maximum position possible for the low edge of the thumb within the total span.
ScrollBarModelType()
Gets type of scroll bar model which is one of the enum values from TEikScrollBarModelType enum.
ScrollBarUseful()
IMPORT_C TBool | ScrollBarUseful | ( | ) | const |
Tests whether the scroll bar model is useful. Scroll bar models are only useful if their thumb span is smaller than their entire span.
operator!=(const TEikScrollBarModel)
Tests two models for inequality. The two models are the current model and the model specified by aModel.
operator==(const TEikScrollBarModel)
Tests two models for equality. The two models are the current model and the model specified by aModel.
Member Enumerations Documentation
Enum TEikScrollBarModelType
Type of scroll bar model. The different models store the scrolling information in different way, so correct model must be used with correct scrollbar type.
Enumerators
EEikScrollBarModel = 0x00000000 |
This model type is for storing data for the arrowhead scrollbar.
|
EAknDoubleSpanScrollBarModel = 0x80000000 |
This model type is for storing data for the spanned scrollbar.
|
Member Data Documentation
TInt
iScrollSpan
Entire range of integers for this model.
TInt
iThumbPosition
Position of the low edge of the thumb within 0...iScrollSpan.
TInt
iThumbSpan
Range spanned by the thumb.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.