API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib uiklaf.lib form.lib
Required Capabilities
None
#include <eikmfne.h>
Inherited by CEikMfneNumber, CEikMfneSeparator, and CEikMfneSymbol.
Public Types |
|
enum | THighlightType { EInverseVideo, ECursor } |
The type of highlight. More... |
|
Public Member Functions |
|
void | Draw (CWindowGc &aGc, const CFont &aFont, const TPoint &aTopLeft) const |
TInt | WidthInPixels (const CFont &aFont) const |
TInt | DistanceFromStartOfFieldToEndOfTextInPixels (const CFont &aFont) const |
virtual TInt | MaximumWidthInPixels (const CFont &aFont, TBool aShrinkToMinimumSize)=0 |
An implementation of this pure virtual function should get the field's maximum width in pixels. |
|
virtual TCoeInputCapabilities | InputCapabilities () const =0 |
An implementation of this pure virtual function should return the field's input capabilities. |
|
virtual IMPORT_C TBool | IsEditable () const |
Derived classes' implementation of function should return whether the field is editable. |
|
virtual IMPORT_C TBool | IsValid () const |
Derived classes' implementation of function should return whether the field is valid. |
|
virtual IMPORT_C THighlightType | HighlightType () const |
An implementation of this function should get the field's highlight type. |
|
virtual IMPORT_C void | HandleKey (const CFont &aFont, const TKeyEvent &aKeyEvent, TBool aInterpretLeftAndRightAsEarEvents, TBool &aDataAltered, TInt &aHighlightIncrement) |
An implementation of this function should handle a key event. |
|
virtual IMPORT_C void | HandleDeHighlight (const CFont &aFont, CEikonEnv &aEikonEnv, TBool &aDataAltered, TBool &aError) |
An implementation of this function should handle de-highlighting the field. |
|
const TDesC & | FieldText () const |
Protected Member Functions |
|
IMPORT_C | CEikMfneField () |
Protected default constructor. |
|
IMPORT_C void | HandleLeftOrRightArrow (TChar aKey, TBool &aDataAltered, TInt &aHighlightIncrement) |
Handles a left or right arrow key press. |
|
TInt | AdditionalWidthForHighlights (const CFont &aFont) const |
Protected Attributes |
|
TInt | iMinimumWidthInPixels |
The field's minimum width in pixels. |
|
The type of highlight. |
|
Protected default constructor. Sets the minimum width of the field to zero pixels. |
|
|
|
|
|
An implementation of this function should handle de-highlighting the field. May only be called if IsEditable() returns ETrue. This implementation panics in debug builds and is empty in release builds.
|
|
An implementation of this function should handle a key event. May only be called if IsEditable() returns ETrue. This implementation panics in debug builds and is empty in release builds.
|
|
Handles a left or right arrow key press.
|
|
An implementation of this function should get the field's highlight type. May only be called if IsEditable() returns ETrue. This implementation panics in debug builds and returns a dummy value in release builds.
|
|
An implementation of this pure virtual function should return the field's input capabilities.
|
|
Derived classes' implementation of function should return whether the field is editable. This implementation returns EFalse.
|
|
Derived classes' implementation of function should return whether the field is valid. This implementation returns ETrue.
Reimplemented in CEikMfneNumber. |
|
An implementation of this pure virtual function should get the field's maximum width in pixels.
|
|
|
The field's minimum width in pixels. |