CAknFepCtrlEventButton Class Reference

class CAknFepCtrlEventButton : public CAknFepCtrlCommonButton

Basic functionality for graphic buttons It provides creation from resource and can react according to SizeChanged Msg

fepcommonctrls.lib
Since
S60 v3.2
Public Member Functions
~CAknFepCtrlEventButton()
IMPORT_C voidDraw()
IMPORT_C TIntEvent()
IMPORT_C CFepUiBaseCtrl *HandlePointerUpEventL(const TPoint &)
IMPORT_C CAknFepCtrlEventButton *NewL(CFepUiLayout *, TInt, TInt, TInt, TAknsItemID, TAknsItemID, TAknsItemID)
IMPORT_C CAknFepCtrlEventButton *NewLC(CFepUiLayout *, TInt, TInt, TInt, TAknsItemID, TAknsItemID, TAknsItemID)
IMPORT_C voidSetEvent(TInt)
IMPORT_C voidSetFont(const CFont *)
IMPORT_C voidSetFontColor(const TRgb)
IMPORT_C voidSetShadowFont(const CFont *)
IMPORT_C voidSetShadowFontColor(const TRgb)
IMPORT_C voidSetText(const TDesC &)
IMPORT_C voidSetUnicode(TInt)
IMPORT_C TIntUnicode()
Protected Member Functions
CAknFepCtrlEventButton(CFepUiLayout *, TInt, TInt, TInt, TAknsItemID, TAknsItemID, TAknsItemID)
IMPORT_C voidDisplayText()
Inherited Functions
CAknFepCtrlCommonButton::CAknFepCtrlCommonButton(CFepUiLayout *,TInt,TAknsItemID,TAknsItemID,TAknsItemID)
CAknFepCtrlCommonButton::CancelPointerDownL()
CAknFepCtrlCommonButton::ConstructFromResourceL()
CAknFepCtrlCommonButton::ConstructFromResourceL(TResourceReader &)
CAknFepCtrlCommonButton::CreateDimmedMaskL(CFbsBitmap *&,const CFbsBitmap *)
CAknFepCtrlCommonButton::DeleteForgroundRes()
CAknFepCtrlCommonButton::ForgroundBmp()
CAknFepCtrlCommonButton::ForgroundBmpMask()
CAknFepCtrlCommonButton::ForgroundBmpRect()const
CAknFepCtrlCommonButton::HandlePointerDownEventL(const TPoint &)
CAknFepCtrlCommonButton::HandlePointerEnter(const TPoint &)
CAknFepCtrlCommonButton::HandlePointerLeave(const TPoint &)
CAknFepCtrlCommonButton::Move(const TPoint &)
CAknFepCtrlCommonButton::NewL(CFepUiLayout *,TInt,TAknsItemID,TAknsItemID,TAknsItemID)
CAknFepCtrlCommonButton::NewLC(CFepUiLayout *,TInt,TAknsItemID,TAknsItemID,TAknsItemID)
CAknFepCtrlCommonButton::ResizeBitmaps(TSize)
CAknFepCtrlCommonButton::Set3PiecesColorIcons(CPenInput3PiecesColorIcons *)
CAknFepCtrlCommonButton::SetActive(TBool)
CAknFepCtrlCommonButton::SetDraw3PieceFrameInfo(TDraw3PiecesFrame)
CAknFepCtrlCommonButton::SetForegroundBmpL(CFbsBitmap *,CFbsBitmap *)
CAknFepCtrlCommonButton::SetForgroundBmpRect(const TRect &)
CAknFepCtrlCommonButton::SetHighlight(TBool)
CAknFepCtrlCommonButton::SetImageFrameId(TAknsItemID,TAknsItemID,TAknsItemID)
CAknFepCtrlCommonButton::SetTextColorIndex(TInt)
CAknFepCtrlCommonButton::SetTextFormat(TAknTextLineLayout)
CAknFepCtrlCommonButton::SetTextL(const TDesC &)
CAknFepCtrlCommonButton::SizeChanged(TRect,TRect,TBool)
CAknFepCtrlCommonButton::TextColorIndex()const
CAknFepCtrlCommonButton::~CAknFepCtrlCommonButton()
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()
CButtonBase::BaseConstructL()
CButtonBase::Bitmap(TButtonBmpType,TBool)
CButtonBase::BmpStretchable()
CButtonBase::CButtonBase(const TRect &,CFepUiLayout *,TInt)
CButtonBase::HandlePointerMoveEventL(const TPoint &)
CButtonBase::Hide(TBool)
CButtonBase::IsDimmed()
CButtonBase::NewL(const TRect &,CFepUiLayout *,TInt)
CButtonBase::ResetBmpPool()
CButtonBase::SetBackgroundBitmapL(CFbsBitmap *)
CButtonBase::SetBackgroundMaskBitmapL(CFbsBitmap *)
CButtonBase::SetBitmapL(CFbsBitmap *,TButtonBmpType)
CButtonBase::SetBmpStretchable(TBool)
CButtonBase::SetCaptionColor(const TRgb &)
CButtonBase::SetCaptionL(const TDesC &)
CButtonBase::SetCaptionShadowColor(const TRgb &)
CButtonBase::SetDimmed(TBool)
CButtonBase::SetFont(const TFontSpec &)
CButtonBase::SetMaskBitmapL(CFbsBitmap *,TButtonBmpType)
CButtonBase::~CButtonBase()
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::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::HandlePositionChange(const TPoint &)
CFepUiBaseCtrl::HandleResourceChange(TInt)
CFepUiBaseCtrl::Hiden()
CFepUiBaseCtrl::IsActive()
CFepUiBaseCtrl::IsFepBaseControl()
CFepUiBaseCtrl::IsKindOfControl(TStockBaseCtrlType)
CFepUiBaseCtrl::IsOnTopOf(CFepUiBaseCtrl *)
CFepUiBaseCtrl::MaskBitmapDevice()
CFepUiBaseCtrl::MaskBkCol()
CFepUiBaseCtrl::MovingArea()
CFepUiBaseCtrl::NONSHARABLE_CLASS(CFepUiBaseCtrlExtension)
CFepUiBaseCtrl::OnActivate()
CFepUiBaseCtrl::OnDeActivate()
CFepUiBaseCtrl::OnLayoutDraggingEnd()
CFepUiBaseCtrl::OnLayoutDraggingStart()
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::SetAllowOverlap(TBool)
CFepUiBaseCtrl::SetBackgroundBmp(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::UpdateValidRegion(CFepUiBaseCtrl *,TBool)
CFepUiBaseCtrl::ValidClipRegion()
CFepUiBaseCtrl::WholeHiden()
CFepUiBaseCtrl::WndBasedControl()
CFepUiBaseCtrl::WndControl()
CFepUiBaseCtrl::~CFepUiBaseCtrl()
Inherited Enumerations
CFepUiBaseCtrl:TZOrder
Private Attributes
TInt iEvent
const CFont *iFont
TRgb iFontColor
const CFont *iShadowFont
TRgb iShadowFontColor
HBufC *iText
TInt iUnicode
Inherited Attributes
CAknFepCtrlCommonButton::iFirstTimeConstruct
CAknFepCtrlCommonButton::iHighlight
CAknFepCtrlCommonButton::iPressed
CButtonBase::iActiveBmp
CButtonBase::iActiveBmpPressed
CButtonBase::iActiveMaskBmp
CButtonBase::iActiveMaskBmpPressed
CButtonBase::iNonActiveBkBmp
CButtonBase::iNonActiveBkBmpPressed
CButtonBase::iNonActiveBkMaskBmp
CButtonBase::iNonActiveBkMaskBmpPressed
CFepUiBaseCtrl::iBorderColor
CFepUiBaseCtrl::iBorderSize
CFepUiBaseCtrl::iClipRegion
CFepUiBaseCtrl::iParentCtrl
CFepUiBaseCtrl::iPointerLeft
CFepUiBaseCtrl::iRect
CFepUiBaseCtrl::iResourceId
CFepUiBaseCtrl::iShadowAreaRect
CFepUiBaseCtrl::iShadowRect
CFepUiBaseCtrl::iUpdateFlagEnabled
CFepUiBaseCtrl::iValidRegion
CFepUiBaseCtrl::iWndControl

Constructor & Destructor Documentation

CAknFepCtrlEventButton(CFepUiLayout *, TInt, TInt, TInt, TAknsItemID, TAknsItemID, TAknsItemID)

IMPORT_CCAknFepCtrlEventButton(CFepUiLayout *aUiLayout,
TIntaControlId,
TIntaEvent,
TIntaUnicode,
TAknsItemIDaNormalID =  KAknsIIDQsnFrFunctionButtonNormal ,
TAknsItemIDaPressedID =  KAknsIIDQsnFrFunctionButtonPressed ,
TAknsItemIDaInactiveID =  KAknsIIDQsnFrFunctionButtonInactive
)[protected]

C++ constructor.

Since
S60 v3.2

Parameters

CFepUiLayout * aUiLayoutUi Layout who contains this control
TInt aControlIdControl Id
TInt aEventAn event Id to be sent
TInt aUnicodeA Unicode value to be sent
TAknsItemID aNormalID =  KAknsIIDQsnFrFunctionButtonNormal
TAknsItemID aPressedID =  KAknsIIDQsnFrFunctionButtonPressed
TAknsItemID aInactiveID =  KAknsIIDQsnFrFunctionButtonInactive

~CAknFepCtrlEventButton()

IMPORT_C~CAknFepCtrlEventButton()[virtual]

destructor.

Since
S60 v3.2

Member Functions Documentation

DisplayText()

IMPORT_C voidDisplayText()[protected]

Display button caption.

Since
S60 v3.2

Draw()

IMPORT_C voidDraw()[virtual]

Draw function

Since
S60 v3.2

Event()

IMPORT_C TIntEvent()const

This function gets the current Event Id

Since
S60 v3.2

HandlePointerUpEventL(const TPoint &)

IMPORT_C CFepUiBaseCtrl *HandlePointerUpEventL(const TPoint &aPoint)[virtual]

From CButtonBase Handle button up event. cancel all timers

Since
S60 v3.2

Parameters

const TPoint & aPointPoint position

NewL(CFepUiLayout *, TInt, TInt, TInt, TAknsItemID, TAknsItemID, TAknsItemID)

IMPORT_C CAknFepCtrlEventButton *NewL(CFepUiLayout *aUiLayout,
TIntaControlId,
TIntaEvent = 0xFFFF,
TIntaUnicode = 0,
TAknsItemIDaNormalID =  KAknsIIDQsnFrFunctionButtonNormal ,
TAknsItemIDaPressedID =  KAknsIIDQsnFrFunctionButtonPressed ,
TAknsItemIDaInactiveID =  KAknsIIDQsnFrFunctionButtonInactive
)[static]

Symbian constructor.

Since
S60 v3.2

Parameters

CFepUiLayout * aUiLayoutThe layout
TInt aControlIdThe control id
TInt aEvent = 0xFFFFAn event Id to be sent
TInt aUnicode = 0A Unicode value to be sent
TAknsItemID aNormalID =  KAknsIIDQsnFrFunctionButtonNormal
TAknsItemID aPressedID =  KAknsIIDQsnFrFunctionButtonPressed
TAknsItemID aInactiveID =  KAknsIIDQsnFrFunctionButtonInactive

NewLC(CFepUiLayout *, TInt, TInt, TInt, TAknsItemID, TAknsItemID, TAknsItemID)

IMPORT_C CAknFepCtrlEventButton *NewLC(CFepUiLayout *aUiLayout,
TIntaControlId,
TIntaEvent = 0xFFFF,
TIntaUnicode = 0,
TAknsItemIDaNormalID =  KAknsIIDQsnFrFunctionButtonNormal ,
TAknsItemIDaPressedID =  KAknsIIDQsnFrFunctionButtonPressed ,
TAknsItemIDaInactiveID =  KAknsIIDQsnFrFunctionButtonInactive
)[static]

Symbian constructor.

Since
S60 v3.2

Parameters

CFepUiLayout * aUiLayoutThe layout
TInt aControlIdThe control id
TInt aEvent = 0xFFFFAn event Id to be sent
TInt aUnicode = 0A Unicode value to be sent
TAknsItemID aNormalID =  KAknsIIDQsnFrFunctionButtonNormal
TAknsItemID aPressedID =  KAknsIIDQsnFrFunctionButtonPressed
TAknsItemID aInactiveID =  KAknsIIDQsnFrFunctionButtonInactive

SetEvent(TInt)

IMPORT_C voidSetEvent(TIntaEvent)

This function sets the Event Id sent by this button

Since
S60 v3.2

Parameters

TInt aEventAn event Id to be sent

SetFont(const CFont *)

IMPORT_C voidSetFont(const CFont *aFont)

This function set the font used to draw the text

Since
S60 v3.2

Parameters

const CFont * aFontthe font

SetFontColor(const TRgb)

IMPORT_C voidSetFontColor(const TRgbaColor)

This function set the font color used to draw the text

Since
S60 v3.2

Parameters

const TRgb aColorthe font color

SetShadowFont(const CFont *)

IMPORT_C voidSetShadowFont(const CFont *aFont)

This function set the shadow font used to draw the text

Since
S60 v3.2

Parameters

const CFont * aFontthe shadow font

SetShadowFontColor(const TRgb)

IMPORT_C voidSetShadowFontColor(const TRgbaColor)

This function set the shadow font color used to draw the text

Since
S60 v3.2

Parameters

const TRgb aColorthe shadow font color

SetText(const TDesC &)

IMPORT_C voidSetText(const TDesC &aText)

This function sets the text written on the button

Since
S60 v3.2

Parameters

const TDesC & aTextthe text will be shown

SetUnicode(TInt)

IMPORT_C voidSetUnicode(TIntaUnicode)

This function sets the Unicode value sent by this button

Since
S60 v3.2

Parameters

TInt aUnicodeA Unicode value to be sent

Unicode()

IMPORT_C TIntUnicode()const

This function gets the current Unicode value

Since
S60 v3.2

Member Data Documentation

TInt iEvent

TInt iEvent[private]

Event Id

const CFont * iFont

const CFont *iFont[private]

the font used to show the text

TRgb iFontColor

TRgb iFontColor[private]

the font color used to show the text

const CFont * iShadowFont

const CFont *iShadowFont[private]

the shadow font used to show the text

TRgb iShadowFontColor

TRgb iShadowFontColor[private]

the shadow font color used to show the text

HBufC * iText

HBufC *iText[private]

Text shown on button

TInt iUnicode

TInt iUnicode[private]

Unicode value