Location:
eikscrlb.h
Link against:
eikcoctl.lib
TEikScrollBarModel
Supported from 6.0
The model for a CEikScrollBar
. 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.
Defined in TEikScrollBarModel
:
CheckBounds()
, MaxThumbPos()
, ScrollBarUseful()
, TEikScrollBarModel()
, iScrollSpan
, iThumbPosition
, iThumbSpan
, operator!=()
, operator==()
TEikScrollBarModel();
Constructor.
Creates, allocates and initialises a new TEikScrollBarModel
.
TEikScrollBarModel (TInt aScrollSpan, TInt aThumbSpan=0, TInt aThumbPosition=0);
Constructor.
Creates, allocates and initialises a new TEikScrollBarModel
.
|
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.
|
TInt MaxThumbPos() const;
Gets the maximum position possible for the low edge of the thumb within the total span.
|
void CheckBounds();
Ensures that the thumb position remains within its valid range by altering it if necessary.
TBool operator!=(const TEikScrollBarModel aModel) const;
Tests two models for inequality. The two models are the current model and the model specified by aModel
.
|
|
TBool operator==(const TEikScrollBarModel aModel) const;
Tests two models for equality. The two models are the current model and the model specified by aModel
.
|
|
iThumbPosition
Position of the low edge of the thumb within 0...iScrollSpan
.