TAknDoubleSpanScrollBarModel Class Reference
class TAknDoubleSpanScrollBarModel : public TEikScrollBarModel |
Inherits from
- TAknDoubleSpanScrollBarModel
Constructor & Destructor Documentation
TAknDoubleSpanScrollBarModel()
IMPORT_C | TAknDoubleSpanScrollBarModel | ( | ) | |
TAknDoubleSpanScrollBarModel(const TEikScrollBarModel &)
Constructor which converts TEikScrollBarModel into TAknDoubleSpanScrollBarModel.
- Since
- 2.6
Allowed range for
TEikScrollBarModel values is from 0x1FFF7FFF to -0x1FFF7FFF. Values 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.
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.
Member Functions Documentation
CheckMinMaxValue(TInt)
TInt
| CheckMinMaxValue | ( | TInt | aValue | ) | [private] |
Checks if given parameter is between internal min and max values.
Parameters
TInt aValue | Value to be checked. |
FieldPosition()
IMPORT_C TInt | FieldPosition | ( | ) | const |
FieldPositionValue()
TInt16
| FieldPositionValue | ( | ) | const [private] |
FieldSize()
IMPORT_C TInt | FieldSize | ( | ) | const |
FieldSizeValue()
TInt16
| FieldSizeValue | ( | ) | const [private] |
FocusPosition()
IMPORT_C TInt | FocusPosition | ( | ) | const |
FocusPositionValue()
TInt16
| FocusPositionValue | ( | ) | const [private] |
HighBytes(TInt)
Gets two highest bytes from TInt and constructs TInt16 from those.
Parameters
TInt aInt | Value from which the highest bytes are extracted. |
LowBytes(TInt)
Gets two lowest bytes from TInt and constructs TInt16 from those.
Parameters
TInt aInt | Value from which the lowest bytes are extracted. |
ModelIsSupported()
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
PrepareScaledValue(TInt)
TInt16
| PrepareScaledValue | ( | TInt | aNonScaledValue | ) | [private] |
Constructs a scaled TInt16 value from given TInt value. Changes internal member variable values using ReScale()-method if needed.
Parameters
TInt aNonScaledValue | Value which will be changed to scaled one. |
ReScale(TUint16)
void | ReScale | ( | TUint16 | aNewScale | ) | [private] |
Changes the used scale value and updates all stored attribute values if needed.
Parameters
TUint16 aNewScale | New value to be used scaling. |
Scale()
Gets the internal scale value.
ScrollSpan()
IMPORT_C TInt | ScrollSpan | ( | ) | const |
Get methods for model attributes. These MUST be used instead of getting base class model values directly.
ScrollSpanValue()
TInt16
| ScrollSpanValue | ( | ) | const [private] |
Get methods for model attributes values without scaling.
SetFieldPosition(TInt)
IMPORT_C void | SetFieldPosition | ( | TInt | aValue | ) | |
SetFieldPositionValue(TInt16)
void | SetFieldPositionValue | ( | TInt16 | aValue | ) | [private] |
SetFieldSize(TInt)
IMPORT_C void | SetFieldSize | ( | TInt | aValue | ) | |
SetFieldSizeValue(TInt16)
void | SetFieldSizeValue | ( | TInt16 | aValue | ) | [private] |
SetFocusPosition(TInt)
IMPORT_C void | SetFocusPosition | ( | TInt | aValue | ) | |
SetFocusPositionValue(TInt16)
void | SetFocusPositionValue | ( | TInt16 | aValue | ) | [private] |
SetHighBytes(TInt &, TInt16)
void | SetHighBytes | ( | TInt & | aInt, |
| TInt16 | aValue |
| ) | [private] |
Sets two highest bytes of TInt.
Parameters
TInt & aInt | TInt of which the highest bytes are set. |
TInt16 aValue | Value for the highest bytes. |
SetLowBytes(TInt &, TInt16)
void | SetLowBytes | ( | TInt & | aInt, |
| TInt16 | aValue |
| ) | [private] |
Sets two lowest bytes of TInt.
Parameters
TInt & aInt | TInt of which the lowest bytes are set. |
TInt16 aValue | Value for the lowest bytes. |
SetScale(TUint16)
void | SetScale | ( | TUint16 | aScale | ) | [private] |
Sets the internal scale value.
Parameters
TUint16 aScale | New internal scaling value. |
SetScrollBarModelType(TEikScrollBarModelType)
Parameters
TEikScrollBarModelType aModelType | Scrollbar type. Supported types are EEikScrollBarModel and EAknDoubleSpanScrollBarModel. |
SetScrollSpan(TInt)
IMPORT_C void | SetScrollSpan | ( | TInt | aValue | ) | |
Set methods for model attributes. These MUST be used instead of setting base class model values directly.
- Since
- 2.6
This inaccuracy means that e.g. following can happen: TInt value1 = 23456789; TInt value2 = 0;
model.SetScrollSpan(value1); value2 = model.ScrollSpan(); if (value1 != value2) { // we can end up here !!!! }
Parameters
TInt 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. |
SetScrollSpanValue(TInt16)
void | SetScrollSpanValue | ( | TInt16 | aValue | ) | [private] |
Set methods for model attributes values without scaling.
Parameters
TInt16 aValue | Value without scaling to be stored. |
SetWindowSize(TInt)
IMPORT_C void | SetWindowSize | ( | TInt | aValue | ) | |
SetWindowSizeValue(TInt16)
void | SetWindowSizeValue | ( | TInt16 | aValue | ) | [private] |
WindowSize()
IMPORT_C TInt | WindowSize | ( | ) | const |
WindowSizeValue()
TInt16
| WindowSizeValue | ( | ) | const [private] |
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.