CControlGroup Class Reference
class CControlGroup : public CFepUiBaseCtrl |
CControlGroup
CControl group. A CControl group will consists of several controls.
feplayoutcontrol.lib
- Since
- S60 V4.0
Nested Classes and Structures
Public Member Functions |
---|
| ~CControlGroup() |
IMPORT_C CFepUiBaseCtrl * | ActiveControl() |
IMPORT_C void | AddControlL(CFepUiBaseCtrl *, TBool) |
IMPORT_C CFepUiBaseCtrl * | AddControlL(CCoeControl *) |
void | AdjustBkCtrlPos() |
IMPORT_C CFepUiBaseCtrl * | At(TInt) |
IMPORT_C void | BringToBackInGroup(CFepUiBaseCtrl *) |
IMPORT_C void | BringToTopInGroup(CFepUiBaseCtrl *) |
IMPORT_C void | CancelPointerDownL() |
IMPORT_C void | ConstructFromResourceL() |
IMPORT_C CFepUiBaseCtrl * | ControlById(TInt) |
IMPORT_C CFepUiBaseCtrl * | ControlByType(TControlType, TInt) |
IMPORT_C CFepUiBaseCtrl * | ControlForKindOfType(TStockBaseCtrlType, TInt) |
const RPointerArray< CFepUiBaseCtrl > & | ControlList() |
IMPORT_C void | Draw() |
CFepUiBaseCtrl * | Find(CCoeControl *) |
TInt
| GetIdx(const CFepUiBaseCtrl *) |
TInt
| GetNestedLevel() |
IMPORT_C void | HandlePointerEnter(const TPoint &) |
IMPORT_C void | HandlePointerLeave(const TPoint &) |
IMPORT_C void | Hide(TBool) |
IMPORT_C void | HideControl(TInt, TBool) |
IMPORT_C void | HideControl(CFepUiBaseCtrl *, TBool) |
IMPORT_C void | Move(const TPoint &) |
TBool
| NeedRedrawBg() |
IMPORT_C CControlGroup * | NewL(CFepUiLayout *, TInt, TBool) |
CControlGroup * | NewL(CFepUiLayout *, CCoeControl *) |
IMPORT_C TInt | NumOfControls() |
IMPORT_C void | OnActivate() |
IMPORT_C void | OnDeActivate() |
IMPORT_C void | OnLayoutDraggingEnd() |
IMPORT_C void | OnLayoutDraggingStart() |
const RPointerArray< CFepUiBaseCtrl > & | PopCtrlList() |
IMPORT_C void | ReDrawRect(const TRect &) |
void | RedrawRectIfNeeded(const TRect &, CFepUiBaseCtrl *) |
void | RedrawRectInGrp(CFepUiBaseCtrl *, const TRect &) |
IMPORT_C TBool | RemoveControl(CFepUiBaseCtrl *) |
IMPORT_C CFepUiBaseCtrl * | SetActiveCtrl(CFepUiBaseCtrl *) |
IMPORT_C CFepUiBaseCtrl * | SetActiveCtrl(TInt) |
void | SetNeedRedrawBg(TBool) |
CFepUiBaseCtrl * | SetTempActiveCtrl(CFepUiBaseCtrl *) |
void | UpdateAreaInGrp(CFepUiBaseCtrl *, const TRect &, TBool) |
void | UpdateAreaInGrpImmed(CFepUiBaseCtrl *, const TRect &, TBool) |
IMPORT_C void | UpdateValidRegion(CFepUiBaseCtrl *, TBool) |
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() |
| 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::HandlePositionChange(const TPoint &) |
| 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::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
CControlGroup(CFepUiLayout *, TInt)
Parameters
CFepUiLayout * aUiLayout | Ui layout who contains this control |
TInt aControlId | control Id |
CControlGroup(CFepUiLayout *, TInt, TBool)
~CControlGroup()
IMPORT_C | ~CControlGroup | ( | ) | [virtual] |
Member Functions Documentation
AddControlL(CFepUiBaseCtrl *, TBool)
Parameters
CFepUiBaseCtrl * aControl | New control to be added.Ownership transferred |
TBool aOwnerFlag = ETrue | The flag tells whether transfer ownership to group. ETrue if group will be the owner A owner is responsible for free the control. Deafult value is ETrue |
AddControlL(CCoeControl *)
Parameters
CCoeControl * aControl | New control to be added.Ownership transferred. A CFepUiBasedCtrl will be created for this window based control |
AddSubRegionL(CFepUiBaseCtrl *)
At(TInt)
Get control for an position index
Parameters
TInt aIndex | Control index in group. Index starts from 0 |
BringToBackInGroup(CFepUiBaseCtrl *)
BringToTopInGroup(CFepUiBaseCtrl *)
Bring the control to top most in current control group and show it.
- Since
- S60 V5.0 aCtrl The control to be shown.
CalculateClipRegion()
void | CalculateClipRegion | ( | ) | [protected] |
CalculateClipRegion(CFepUiBaseCtrl *)
CalculateNonHwrStartPtArea()
const RRegion & | CalculateNonHwrStartPtArea | ( | ) | [protected] |
CancelPointerDownL()
IMPORT_C void | CancelPointerDownL | ( | ) | [virtual] |
From CFepUiBaseCtrl Cancel pointer down event. This will be called when a control has pointer down but pointer up event happens in other ways.
ConstructFromResourceL()
IMPORT_C void | ConstructFromResourceL | ( | ) | |
ConstructL()
IMPORT_C void | ConstructL | ( | ) | [protected] |
Symbian second phrase constructor
ControlById(TInt)
Get the sub control for given control Id.
Parameters
TInt aCtrlId | The control id |
ControlByType(TControlType, TInt)
Find qualified control in layout whose control type is exactly the same as the given one.
Parameters
TControlType aType | The contol type |
TInt aIndex = 0 | The control index. The nth control for such type in this group. The index is counted seperated for different control type. |
ControlForKindOfType(TStockBaseCtrlType, TInt)
Find qualified control in layout according to the type and index. Unlike ControlByType, it finds all controls which is kind of such type, includes those derived controls.
Parameters
TStockBaseCtrlType aType | The contol type |
TInt aIndex = 0 | The control index. The nth control for such type in this group. The index is counted seperated for different control type. |
ControlForPoints(const TPoint &)
Draw()
IMPORT_C void | Draw | ( | ) | [virtual] |
DrawControlGroupBackground(const TRect &)
IMPORT_C void | DrawControlGroupBackground | ( | const TRect & | aUpdateRegion | ) | [protected, virtual] |
Draw ControlGroup Background
Parameters
const TRect & aUpdateRegion | The rect to be updated |
Find(CCoeControl *)
Check whether this control is in the control group
FindSubRegion(CFepUiBaseCtrl *)
GetIdx(const CFepUiBaseCtrl *)
GraphicDeviceSizeChanged()
IMPORT_C void | GraphicDeviceSizeChanged | ( | ) | [protected, virtual] |
Handle pen UI graphic device size change event
HandlePointerDownEventL(const TPoint &)
Parameters
const TPoint & aPoint | The point position relative the layout |
HandlePointerEnter(const TPoint &)
IMPORT_C void | HandlePointerEnter | ( | const TPoint & | aPoint | ) | [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.
Parameters
const TPoint & aPoint | current pointer position |
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 |
HandleResourceChange(TInt)
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [protected, virtual] |
Handle system resource change
Parameters
TInt aType | The system resource change type |
Hide(TBool)
IMPORT_C void | Hide | ( | TBool | aFlag | ) | [virtual] |
From CFepUiBaseCtrl Hide or shoe control. A hiden control will not handle the event.
Parameters
TBool aFlag | ETrue if want to hide the control. |
HideControl(TInt, TBool)
IMPORT_C void | HideControl | ( | TInt | aIndex, |
| TBool | aFlag = ETrue |
| ) | |
Parameters
TInt aIndex | control index |
TBool aFlag = ETrue | control hide flag. ETrue if going to be hiden. Otherwise EFalse Deafult value is ETrue |
HideControl(CFepUiBaseCtrl *, TBool)
Parameters
CFepUiBaseCtrl * aControl | The button to be hiden |
TBool aFlag = ETrue | Contrl hide flag. ETrue if going to be hiden. Otherwise EFalse Default value is ETrue |
Move(const TPoint &)
IMPORT_C void | Move | ( | const TPoint & | aOffset | ) | [virtual] |
Parameters
const TPoint & aOffset | The offset to be moved |
MoveSubCtrlToBack(CFepUiBaseCtrl *, RPointerArray< CFepUiBaseCtrl > &)
MoveSubCtrlToTop(CFepUiBaseCtrl *, RPointerArray< CFepUiBaseCtrl > &)
NeedRedrawBg()
TBool
| NeedRedrawBg | ( | ) | const [inline] |
NewL(CFepUiLayout *, TInt, TBool)
Parameters
CFepUiLayout * aUiLayout | Ui layout who contains this control.Ownership not transferred |
TInt aControlId | control Id |
TBool aRedrawBg = ETrue | |
NewL(CFepUiLayout *, CCoeControl *)
NumOfControls()
IMPORT_C TInt | NumOfControls | ( | ) | |
OnActivate()
IMPORT_C void | OnActivate | ( | ) | [virtual] |
From CFepUiBaseCtrl OnActivate. Called when the layout is going to be shown.
OnDeActivate()
IMPORT_C void | OnDeActivate | ( | ) | [virtual] |
From CFepUiBaseCtrl OnDeActivate. Called when the layout is going to be hidden
OnDeActivateL()
void | OnDeActivateL | ( | ) | [private] |
OnLayoutDraggingEnd()
IMPORT_C void | OnLayoutDraggingEnd | ( | ) | [virtual] |
OnLayoutDraggingStart()
IMPORT_C void | OnLayoutDraggingStart | ( | ) | [virtual] |
ReDrawRect(const TRect &)
IMPORT_C void | ReDrawRect | ( | const TRect & | aRect | ) | [virtual] |
Parameters
const TRect & aRect | The rect to be redrawed |
RedrawRectIfNeeded(const TRect &, CFepUiBaseCtrl *)
Redraws the content in a control if needed. The redraw is caused by aCtrl's updating aRect.
Parameters
const TRect & aRect | The rect to be redrawed |
CFepUiBaseCtrl * aCtrl | The control who initiates the updating. |
RedrawRectInGrp(CFepUiBaseCtrl *, const TRect &)
RemoveControl(CFepUiBaseCtrl *)
RemoveControl Remove a control from the control group
RemoveCtrlFromSubCtrlInfoList(CFepUiBaseCtrl *)
RemoveOwnedControl(CFepUiBaseCtrl *)
RemoveOwnedControl Remove a control from group's owned control list
RemoveSubRegion(TInt)
void | RemoveSubRegion | ( | TInt | aIdx | ) | [private] |
SaveSubCtrlShownState()
void | SaveSubCtrlShownState | ( | ) | [private] |
SetActiveCtrl(CFepUiBaseCtrl *)
Set control to be actived.
Parameters
CFepUiBaseCtrl * aControl | The control to be set to actived. Ownership not transferred. |
SetActiveCtrl(TInt)
Set control to be actived
Parameters
TInt aIndex | The control index. Ownership not transferred. |
SetNeedRedrawBg(TBool)
void | SetNeedRedrawBg | ( | TBool | aNeedRedrawBg | ) | [inline] |
SetTempActiveCtrl(CFepUiBaseCtrl *)
Set control to be temparory actived. When button is pressed, the control is temparary set to be actived. When button is up, it's set to be actived.
UpdateAreaInGrp(CFepUiBaseCtrl *, const TRect &, TBool)
UpdateAreaInGrpImmed(CFepUiBaseCtrl *, const TRect &, TBool)
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
CFepUiBaseCtrl * iActiveCtrl
RPointerArray< CFepUiBaseCtrl > iCtrlList
Control list for all controls
CFepUiBaseCtrl * iCtrlWithPointerDown
Control which gets the pointer down event Not own
TInt
iNeedRedrawBg
TInt
| iNeedRedrawBg | [private] |
RRegion
iNonHwrStartPtRegion
RRegion
| iNonHwrStartPtRegion | [protected] |
RPointerArray< CFepUiBaseCtrl > iOwnedCtrlList
Control list for all owned controls. Control group will be responsible for release owned controls
RPointerArray< CFepUiBaseCtrl > iPopCtrlList
This is the control list for those control which must be shown on top, and which doesn't directly belong ( as a direct child of) to current group
RArray< TSubCtrlShownState > iSubCtrlShowStateBeforeHiden
list to record sub control's hide/show state before control group is hidden
RPointerArray< CSubRegionArea > iSubRegionArea
CFepUiBaseCtrl * iTempActiveCtrl
temparory active control Not own
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.