#include <mw/eikscrlb.h>
class TAknDoubleSpanScrollBarModel : public TEikScrollBarModel |
Public Member Functions | |
---|---|
TAknDoubleSpanScrollBarModel() | |
TAknDoubleSpanScrollBarModel(const TEikScrollBarModel &) | |
IMPORT_C TInt | FieldPosition() |
IMPORT_C TInt | FieldSize() |
IMPORT_C TInt | FocusPosition() |
TBool | ModelIsSupported() |
IMPORT_C TInt | ScrollSpan() |
IMPORT_C void | SetFieldPosition(TInt) |
IMPORT_C void | SetFieldSize(TInt) |
IMPORT_C void | SetFocusPosition(TInt) |
IMPORT_C void | SetScrollSpan(TInt) |
IMPORT_C void | SetWindowSize(TInt) |
IMPORT_C TInt | WindowSize() |
Inherited Attributes | |
---|---|
TEikScrollBarModel::iScrollSpan | |
TEikScrollBarModel::iThumbPosition | |
TEikScrollBarModel::iThumbSpan |
Inherited Enumerations | |
---|---|
TEikScrollBarModel:TEikScrollBarModelType |
IMPORT_C | TAknDoubleSpanScrollBarModel | ( | const TEikScrollBarModel & | aEikModel | ) |
Constructor which converts TEikScrollBarModel into TAknDoubleSpanScrollBarModel.
Values will be converted as:
TEikScrollBarModel TAknDoubleSpanScrollBarModel ------------------ ---------------------------- iScrollSpan -> ScrollSpan iThumbPosition -> FocusPosition iThumbSpan -> WindowSize 0 -> FieldPosition 0 -> FieldSize
Values will be internally stored with 15 bit accuracy, this means that the actual stored value may differ from the value given inside parameter.
Parameter | Description |
---|---|
aEikModel | a model that will be converted. |
TBool | ModelIsSupported | ( | ) | [static] |
This method can be used to query if this model type is supported by the device. If model is not supported then this model and the behaviour of ALL methods defaults to TEikScrollBarModel behaviour with following rules:
TAknDoubleSpanScrollBarModel TEikScrollBarModel ---------------------------- ------------------ ScrollSpan methods -> iScrollSpan FocusPosition methods -> iThumbPosition WindowSize methods -> iThumbSize FieldPosition methods -> N/A FieldSize methods -> N/A
Returns: ETrue if this model is supported by the devices scrollbar system. Otherwise EFalse is returned.
IMPORT_C TInt | ScrollSpan | ( | ) | const |
Get methods for model attributes. These MUST be used instead of getting base class model values directly.
Returns: Values from range 0x1FFF7FFF to -0x1FFF7FFF. Values are internally stored with 15 bit accuracy, this means that the returned value may differ from the value which was set using the corresponding set method. Difference can be about 0x3FFF in the high end of the range.
IMPORT_C void | SetScrollSpan | ( | TInt | aValue | ) |
Set methods for model attributes. These MUST be used instead of setting base class model values directly.
model.SetScrollSpan(value1); value2 = model.ScrollSpan(); if (value1 != value2) { // we can end up here !!!! }
Parameter | Description |
---|---|
aValue | Value to be stored. Allowed range 0x1FFF7FFF to -0x1FFF7FFF. Value outside the allowed range will be truncated to max or min value. Value will be internally stored with 15 bit accuracy, this means that the actual stored value may differ from the value given as parameter. |