CFepLayoutEditAreaBase Class Reference
class CFepLayoutEditAreaBase : public CFepUiBaseCtrl |
Base class for lightweight Edwin-like editing area
This is not an actual control and it never actually gains focus, but it simulates it with its own cursor. This is because the FEP must never take focus, because otherwise it will mess up the functionality of the underlying application.
feplayouteng.lib
- Since
- S60 v4.0
Nested Classes and Structures
Inherited Functions |
---|
| CBase::CBase() |
| CBase::Delete(CBase *) |
| CBase::operator new(TUint) |
| CBase::operator new(TUint,TAny *) |
| CBase::operator new(TUint,TLeave) |
| CBase::operator new(TUint,TLeave,TUint) |
| CBase::operator new(TUint,TUint) |
| CBase::~CBase() |
| CFepUiBaseCtrl::AbleToDraw() |
| CFepUiBaseCtrl::AbsOrderPos() |
| CFepUiBaseCtrl::ActiveExtResponseArea() |
| CFepUiBaseCtrl::AddEventObserver(MEventObserver *) |
| CFepUiBaseCtrl::AllowOverlap() |
| CFepUiBaseCtrl::BackgroundBmp() |
| CFepUiBaseCtrl::BaseConstructL(CFepUiLayoutRootCtrl *) |
| CFepUiBaseCtrl::BitGc() |
| CFepUiBaseCtrl::BitmapDevice() |
| CFepUiBaseCtrl::BkColor() |
| CFepUiBaseCtrl::BkMaskBmp() |
| CFepUiBaseCtrl::BorderColor() |
| CFepUiBaseCtrl::BorderSize() |
| CFepUiBaseCtrl::BringToBack() |
| CFepUiBaseCtrl::BringToTop() |
| CFepUiBaseCtrl::CFepUiBaseCtrl(CCoeControl *,CFepUiLayout *,TBool) |
| CFepUiBaseCtrl::CFepUiBaseCtrl(const TRect &,CFepUiLayout *,TInt) |
| CFepUiBaseCtrl::CancelExtResponseArea() |
| CFepUiBaseCtrl::CapturePointer(TBool) |
| CFepUiBaseCtrl::Clear() |
| CFepUiBaseCtrl::ClearRect(const TRect &) |
| CFepUiBaseCtrl::CompareOrder(CFepUiBaseCtrl *) |
| CFepUiBaseCtrl::CompareOrderInSameGroup(CFepUiBaseCtrl *) |
| CFepUiBaseCtrl::ConstructFromResourceL() |
| CFepUiBaseCtrl::Contains(const TPoint &) |
| CFepUiBaseCtrl::ControlId() |
| CFepUiBaseCtrl::ControlType() |
| CFepUiBaseCtrl::CreateOwnDeviceL(CFbsBitmap *,CFbsBitmap *) |
| CFepUiBaseCtrl::DisableRegionUpdating() |
| CFepUiBaseCtrl::DrawBackground(TBool) |
| CFepUiBaseCtrl::DrawBackground(const TRect,TBool) |
| CFepUiBaseCtrl::DrawBackgroundToDevice(TRect,CFbsDevice *,CFbsBitmap *,const TRgb &,const TRgb &,TBool) |
| CFepUiBaseCtrl::DrawBitmap(const CFbsBitmap *,TBool) |
| CFepUiBaseCtrl::DrawBitmap(const TRect,const CFbsBitmap *,TBool) |
| CFepUiBaseCtrl::DrawMaskBackground(TBool) |
| CFepUiBaseCtrl::DrawOpaqueMaskBackground(TBool) |
| CFepUiBaseCtrl::DrawOpaqueMaskBackground(const TRect,TBool) |
| CFepUiBaseCtrl::DrawShadow() |
| CFepUiBaseCtrl::DrawTransparentMaskBackground(const TRect &,TBool) |
| CFepUiBaseCtrl::EnableExtResponseArea(TBool,const TRect &) |
| CFepUiBaseCtrl::EnableRegionUpdating() |
| CFepUiBaseCtrl::Extension_(TUint,TAny *&,TAny *) |
| CFepUiBaseCtrl::GraphicDeviceSizeChanged() |
| CFepUiBaseCtrl::HandlePointerEnter(const TPoint &) |
| CFepUiBaseCtrl::HandlePositionChange(const TPoint &) |
| CFepUiBaseCtrl::HandleResourceChange(TInt) |
| CFepUiBaseCtrl::Hide(TBool) |
| CFepUiBaseCtrl::Hiden() |
| CFepUiBaseCtrl::IsActive() |
| CFepUiBaseCtrl::IsFepBaseControl() |
| CFepUiBaseCtrl::IsKindOfControl(TStockBaseCtrlType) |
| CFepUiBaseCtrl::IsOnTopOf(CFepUiBaseCtrl *) |
| CFepUiBaseCtrl::MaskBitmapDevice() |
| CFepUiBaseCtrl::MaskBkCol() |
| CFepUiBaseCtrl::MovingArea() |
| CFepUiBaseCtrl::NONSHARABLE_CLASS(CFepUiBaseCtrlExtension) |
| CFepUiBaseCtrl::OrderPos()const |
| CFepUiBaseCtrl::Overlapped(CFepUiBaseCtrl *) |
| CFepUiBaseCtrl::ParentCtrl() |
| CFepUiBaseCtrl::PenColor() |
| CFepUiBaseCtrl::PenSize() |
| CFepUiBaseCtrl::PointerDown() |
| CFepUiBaseCtrl::ReDrawRect(const TRect &) |
| CFepUiBaseCtrl::Ready() |
| CFepUiBaseCtrl::Rect() |
| CFepUiBaseCtrl::Region() |
| CFepUiBaseCtrl::RemoveEventObserver(MEventObserver *) |
| CFepUiBaseCtrl::ReportEvent(TInt,const TDesC &) |
| CFepUiBaseCtrl::RequireRegionUpdateL(TBool) |
| CFepUiBaseCtrl::ResizeDeviceL() |
| CFepUiBaseCtrl::ResourceId() |
| CFepUiBaseCtrl::RootControl() |
| CFepUiBaseCtrl::SetActive(TBool) |
| CFepUiBaseCtrl::SetAllowOverlap(TBool) |
| CFepUiBaseCtrl::SetBackgroundBitmapL(CFbsBitmap *) |
| CFepUiBaseCtrl::SetBackgroundBmp(CFbsBitmap *) |
| CFepUiBaseCtrl::SetBackgroundMaskBitmapL(CFbsBitmap *) |
| CFepUiBaseCtrl::SetBackgroundMaskBmp(CFbsBitmap *) |
| CFepUiBaseCtrl::SetBkColor(const TRgb &) |
| CFepUiBaseCtrl::SetBorderColor(const TRgb &) |
| CFepUiBaseCtrl::SetBorderSize(const TSize &) |
| CFepUiBaseCtrl::SetControlType(TControlType) |
| CFepUiBaseCtrl::SetHidenFlag(TBool) |
| CFepUiBaseCtrl::SetMaskBkCol(const TRgb &) |
| CFepUiBaseCtrl::SetOrdinalPos(TInt) |
| CFepUiBaseCtrl::SetParent(CFepUiBaseCtrl *) |
| CFepUiBaseCtrl::SetPenColor(const TRgb &) |
| CFepUiBaseCtrl::SetPenSize(const TSize &) |
| CFepUiBaseCtrl::SetPointerDown(TBool) |
| CFepUiBaseCtrl::SetReady(TBool) |
| CFepUiBaseCtrl::SetRect(const TRect &) |
| CFepUiBaseCtrl::SetRegion(const RRegion &) |
| CFepUiBaseCtrl::SetResourceId(TInt32) |
| CFepUiBaseCtrl::SetShadowAreaRect(const TRect &,TShadowBitmapIndex) |
| CFepUiBaseCtrl::SetShadowBmp(CFbsBitmap *,CFbsBitmap *,TShadowBitmapIndex) |
| CFepUiBaseCtrl::SetShadowRect(const TRect &) |
| CFepUiBaseCtrl::SetTactileFeedbackType(TInt) |
| CFepUiBaseCtrl::ShadowAreaRect(TShadowBitmapIndex) |
| CFepUiBaseCtrl::ShadowRect() |
| CFepUiBaseCtrl::SimulateRawEvent(const TRawEvent &) |
| CFepUiBaseCtrl::TactileFeedbackType()const |
| CFepUiBaseCtrl::UiLayout() |
| CFepUiBaseCtrl::UpdateArea(const TRect &,TBool) |
| CFepUiBaseCtrl::UpdateAreaImmed(const TRect &,TBool) |
| CFepUiBaseCtrl::ValidClipRegion() |
| CFepUiBaseCtrl::WholeHiden() |
| CFepUiBaseCtrl::WndBasedControl() |
| CFepUiBaseCtrl::WndControl() |
| CFepUiBaseCtrl::~CFepUiBaseCtrl() |
Constructor & Destructor Documentation
CFepLayoutEditAreaBase(TRect, CFepUiLayout *, TInt)
Parameters
TRect aRect | Control area |
CFepUiLayout * aUiLayout | The layout which contains this control |
TInt aControlId | The control Id |
~CFepLayoutEditAreaBase()
IMPORT_C | ~CFepLayoutEditAreaBase | ( | ) | [virtual] |
Member Functions Documentation
AdjustPostionInVisualText(const TInt, TInt &)
void | AdjustPostionInVisualText | ( | const TInt | cursorDistance, |
| TInt & | retVal |
| ) | [private] |
AdjustSelectedCompositionText(TInt &)
IMPORT_C void | AdjustSelectedCompositionText | ( | TInt & | aPositionOfInsertionPointInBuffer | ) | [virtual] |
Adjust cursor position when pointer down or move
Parameters
TInt & aPositionOfInsertionPointInBuffer | The position |
BaseConstructL()
IMPORT_C void | BaseConstructL | ( | ) | [protected] |
By default Symbian 2nd phase constructor is private.
CalculateDisplayTextL()
void | CalculateDisplayTextL | ( | ) | [protected] |
CancelPointerDownL()
IMPORT_C void | CancelPointerDownL | ( | ) | [virtual] |
CursorDistance(TInt)
TInt
| CursorDistance | ( | TInt | aX | ) | const [private] |
CursorVisible()
IMPORT_C TBool | CursorVisible | ( | ) | const |
Draw()
IMPORT_C void | Draw | ( | ) | [virtual] |
DrawContent(CBitmapContext *, const TRect &)
Draws the text buffer into the given graphic context
Parameters
CBitmapContext * aGc | The graphic context |
const TRect & aRect | Invalid rectangle. Edit area is redrawn only if the invalid rectangle intersects with the rectangle of the edit area |
DrawSelection()
TRect
| DrawSelection | ( | ) | [private] |
FindOverlappedCtrl(CFepUiBaseCtrl *)
Find whether the given control is one of the overlapped control.
GetEditorFieldMaxLen()
IMPORT_C TInt | GetEditorFieldMaxLen | ( | ) | [virtual] |
Get the editor max length. This is the max char length which this editor can holds
HandlePointerDownEventL(const TPoint &)
Parameters
const TPoint & aPoint | The point position relative the layout |
HandlePointerLeave(const TPoint &)
IMPORT_C void | HandlePointerLeave | ( | const TPoint & | aPoint | ) | [virtual] |
From CFepUiBaseCtrl Handle pointer levae event. This will be called only when it's got pointer down event before and now pointer leaves without pointer up event
Parameters
const TPoint & aPoint | current pointer position |
HandlePointerMoveEventL(const TPoint &)
Parameters
const TPoint & aPoint | The point position relative the layout |
HandlePointerUpEventL(const TPoint &)
Parameters
const TPoint & aPoint | The point position relative the layout |
IncreaseBufferL(TInt)
void | IncreaseBufferL | ( | TInt | aLength | ) | [private] |
IsDimmed()
TBool
| IsDimmed | ( | ) | const [inline] |
IsFocused()
IMPORT_C TBool | IsFocused | ( | ) | |
Tests if the field has focus.
Move(const TPoint &)
IMPORT_C void | Move | ( | const TPoint & | aOffset | ) | [virtual] |
Parameters
const TPoint & aOffset | The offset to be moved |
OnActivate()
IMPORT_C void | OnActivate | ( | ) | [virtual] |
From CFepUiBaseCtrl Handle pointer enter event. This will be called only when it's got pointer down event before and pointer leaves but now comes back without pointer up event.
- Since
- S60 V4.0
- Since
- S60 v4.0
OnDeActivate()
IMPORT_C void | OnDeActivate | ( | ) | [virtual] |
OnDeActivate. Called when the layout is going to be hidden
OnLayoutDraggingEnd()
IMPORT_C void | OnLayoutDraggingEnd | ( | ) | [virtual] |
OnLayoutDraggingStart()
IMPORT_C void | OnLayoutDraggingStart | ( | ) | [virtual] |
PositionInDisplayText(TInt)
IMPORT_C TInt | PositionInDisplayText | ( | TInt | aX | ) | const [protected] |
Returns the position in buffer for given x-coordinate
PositionInVisualText(TInt)
TInt
| PositionInVisualText | ( | TInt | aX | ) | [private] |
PositionInVisualWindow(TInt)
TPoint
| PositionInVisualWindow | ( | TInt | aCharacterIndex | ) | const [private] |
PositionInWindow(TInt)
IMPORT_C TPoint | PositionInWindow | ( | TInt | aCharacterIndex | ) | [protected] |
Gives coordinates of the character relative to the parent window.
Parameters
TInt aCharacterIndex | index of the character in iRenderBuffer |
PositionOfInsertionPointOnWindow()
IMPORT_C TPoint | PositionOfInsertionPointOnWindow | ( | ) | |
Returns the cursor position relative to parent window
PrepareForFocusGain()
IMPORT_C TBool | PrepareForFocusGain | ( | ) | [protected, virtual] |
Prepares the field for gaining focus.
PrepareForFocusLoss()
IMPORT_C void | PrepareForFocusLoss | ( | ) | [protected, virtual] |
Handles taps, i.e. moves insertion point and selects text.
- Since
- S60 v4.0
- Since
- S60 v4.0
RestoreCursorState(CFepUiBaseCtrl *)
Restore cursor state when overlapped area is removed.
Parameters
CFepUiBaseCtrl * aCtrl | The control which may affects the cursor shown state |
RestoreCursorState(TInt)
void | RestoreCursorState | ( | TInt | aIndex | ) | [private] |
Restore cursor state when overlapped area is removed.
Parameters
TInt aIndex | The control index in the list which may affects the cursor shown state |
SaveCursorState(CFepUiBaseCtrl *)
Save current cursor state
Parameters
CFepUiBaseCtrl * aCtrl | The control which may affects the cursor shown state |
ScrollLeft()
void | ScrollLeft | ( | ) | [protected] |
Scrolls selection to the left exposing more text
ScrollRight()
void | ScrollRight | ( | ) | [protected] |
Scrolls selection to the right exposing more text
Selection()
Returns the selected text.
SetCursorVisible(TBool, TBool)
IMPORT_C void | SetCursorVisible | ( | TBool | aCursorVisibleFlag = ETrue, |
| TBool | aCursorSelVisibleFlag = EFalse |
| ) | |
Parameters
TBool aCursorVisibleFlag = ETrue | |
TBool aCursorSelVisibleFlag = EFalse | |
SetDimmed(TBool)
IMPORT_C void | SetDimmed | ( | TBool | aDimFlag | ) | |
Parameters
TBool aDimFlag | Dim flag, ETrue for dim |
SetFocus(TBool)
IMPORT_C void | SetFocus | ( | TBool | aFlag = ETrue | ) | |
Parameters
TBool aFlag = ETrue | current focus. Default value is ETrue |
SetFont(const TFontSpec &)
IMPORT_C void | SetFont | ( | const TFontSpec & | aFontSpec | ) | |
Set the font for text drawing
SetFont(const CFont *)
IMPORT_C void | SetFont | ( | const CFont * | aFont | ) | |
Set the font for text drawing
Parameters
const CFont * aFont | The font to be used.Ownership not transferred |
SetPositionOfInsertionPointInBuffer(TInt &)
IMPORT_C void | SetPositionOfInsertionPointInBuffer | ( | TInt & | aPositionOfInsertionPointInBuffer | ) | |
Sets the position, where caret is in the buffer.
Parameters
TInt & aPositionOfInsertionPointInBuffer | The position |
SetPositionOfInsertionPointInBuffer(TInt &, TInt &)
void | SetPositionOfInsertionPointInBuffer | ( | TInt & | aPositionOfInsertionPointInBuffer, |
| TInt & | aPositionOfAnchorInBuffer |
| ) | |
Sets the position, where caret is in the buffer, including the start of the selection.
Parameters
TInt & aPositionOfInsertionPointInBuffer | The position |
TInt & aPositionOfAnchorInBuffer | |
SetRect(TRect)
IMPORT_C void | SetRect | ( | TRect | aRect | ) | |
SetTextAlignmentL(TInt)
IMPORT_C void | SetTextAlignmentL | ( | TInt | aAlignment | ) | |
SetTextColor(const TRgb)
IMPORT_C void | SetTextColor | ( | const TRgb | aColor | ) | |
Parameters
const TRgb aColor | RGB-value of the text color |
SetTextIsSecret(TBool)
void | SetTextIsSecret | ( | TBool | aIsSecret | ) | [inline] |
SetTextL(const TFepInputContextFieldData &)
Sets the text to be displayed
TextIsSecret()
TBool
| TextIsSecret | ( | ) | const [inline] |
TextLength()
TInt
| TextLength | ( | ) | const [inline] |
Get the text length of buffer
UpdateContent(const TCursorSelection &)
Update content when scrolling
UpdateCursorSelection(const TCursorSelection &)
UpdateSecretText(TAny *)
TInt
| UpdateSecretText | ( | TAny * | aEditArea | ) | [private, static] |
UpdateText(const TFepInputContextFieldData &)
UpdateValidRegion(CFepUiBaseCtrl *, TBool)
Update control's valid region when other control hiding or displaying. This is usually used for HWR window to change it's writing area.
Member Data Documentation
HBufC * iBuffer
HBufC * | iBuffer | [protected] |
Pointer down flag -- should be removed??? Buffer for text to display Own
TRect
iCorrectedRect
TRect
| iCorrectedRect | [protected] |
Corrected Rect of edit area. This have to be used when calculating width or does charachters fit
TBool
iCursorSelVisible
TBool
| iCursorSelVisible | [protected] |
TBool
iCursorVisible
TBool
| iCursorVisible | [protected] |
TPtrC
iDisplayText
TPtrC
| iDisplayText | [protected] |
The part of iBuffer that is shown in the edit area rectancle
TCursorSelection
iDisplayTextCurSel
TInt
iDisplayTextOffset
TInt
| iDisplayTextOffset | [protected] |
Display text start position in the original text
CFont * iFont
Font for text drawing. Ownership depends on iFontOwnership flag.
TBool
iFontOwnership
TBool
| iFontOwnership | [protected] |
Flag ownership flag. ETrue if CFont object is owned by this control.
TFontSpec
iFontSpec
Font spec for text drawing
TBool
iHasFocus
TBool
| iHasFocus | [protected] |
Flag telling whether the field has focus
TBool
iInDragging
TBool
| iInDragging | [protected] |
CInsertionPoint * iInsertionPoint
CInsertionPoint * | iInsertionPoint | [protected] |
the insertion point, i.e. caret Own
TBool
iMfneEditor
TBool
| iMfneEditor | [protected] |
RArray< TOverlappedInfo > iOverlappedCtrlList
list of controls which overlapped with ICF
CFepUiBaseCtrl * iPreCaptureCtrl
The control which captures the pointer before
TInt
iRelativePos
TInt
| iRelativePos | [protected] |
TBool
iScrolling
TBool
| iScrolling | [protected] |
Flag to indicate that text is being scrolled
CPeriodic * iSecretTextTimer
TCursorSelection
iSelectedCompositionText
cursor information for the selected txt
TRgb
iTextColor
TRgb
| iTextColor | [protected] |
Color of letters in the keyboard
TBidiText::TDirectionality
iTextDirection
TBool
iTextIsSecret
TBool
| iTextIsSecret | [protected] |
TCursorSelection
iUncommittedText
HBufC * iVisualBuffer
HBufC * | iVisualBuffer | [protected] |
TPtrC
iVisualText
TPtrC
| iVisualText | [protected] |
TBool
isCenter
TBool
| isCenter | [protected] |
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.