#include <mw/eikctgrp.h>
class CEikControlGroup : public CEikBorderedControl |
Protected Attributes | |
---|---|
CArrayFix< TEikGroupControl > * | iControlArray |
Public Member Enumerations | |
---|---|
enum | TOrientation { ELayHorizontally, ELayVertically } |
enum | TStartCorner { EFromTopLeft, EFromTopRight, EFromBottomLeft, EFromBottomRight } |
Protected Member Enumerations | |
---|---|
enum | anonymous { EDistributeEvenly, EAllSameSize, EDisableMSKDrawing } |
Protected Member Functions | |
---|---|
virtual IMPORT_C CCoeControl * | ComponentControl(TInt) |
void | SetMSKVisibility(TBool) |
virtual IMPORT_C void | WriteInternalStateL(RWriteStream &) |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikBorderedControl::iBorder |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType |
IMPORT_C void | AddControlL | ( | CCoeControl * | aControl, |
TInt | aId | |||
) | [virtual] |
AddControlL() adds a new control to the controlgroup
Parameter | Description |
---|---|
aControl | control to be added |
aId | id of the control |
IMPORT_C void | AddControlL | ( | TEikGroupControl & | aGroupControl | ) | [virtual] |
AddControlL() adds new control to the controlgroup
IMPORT_C CCoeControl * | ComponentControl | ( | TInt | aIndex | ) | const [protected, virtual] |
Reimplemented from CCoeControl::ComponentControl(TInt)const
IMPORT_C void | ConstructL | ( | TStartCorner | aStart, |
TOrientation | aOrientation | |||
) |
ConstructL() constructs the CEikControlGroup
Parameter | Description |
---|---|
aStart | corner to start |
aOrientation | whether controlgroup is vertical or horizontal |
IMPORT_C CCoeControl * | Control | ( | TInt | aIndex | ) | const |
Control() returns CCoeControl pointer based on array index
Parameter | Description |
---|---|
aIndex | index to the internal array |
Returns: control in that position of the array
IMPORT_C CArrayFix< TEikGroupControl > * | ControlArray | ( | ) | const |
ControlArray() access to the actual array representation
Returns: array
IMPORT_C CCoeControl * | ControlById | ( | TInt | aId | ) | const |
ControlById() fetches individual controls by id
Parameter | Description |
---|---|
aId | id of the control |
IMPORT_C TInt | ControlId | ( | CCoeControl * | aControl | ) | const |
ControlId() finds id of the control based on CCoeCOntrol pointer
Parameter | Description |
---|---|
aControl | control stored in a control group |
Returns: id of the control
ControlSpacing() gets control's spacing modifies variable to get horizontal spacing modifies variable to get vertical spacing
IMPORT_C TInt | CountComponentControls | ( | ) | const [virtual] |
Reimplemented from CCoeControl::CountComponentControls()const
CountComponentControls returns component controls count
DeleteControl() removes control from the group
Parameter | Description |
---|---|
aIndex | at which position of the array to delete |
aCount | how many controls to delete |
IMPORT_C void | GetColorUseListL | ( | CArrayFix< TCoeColorUse > & | aColorUseList | ) | const [virtual] |
Reimplemented from CEikBorderedControl::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
GetColorUseListL() sets the color use list of the control group
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CEikBorderedControl::HandlePointerEventL(const TPointerEvent &)
HandlePointerEventL() handles touch pointer events
IMPORT_C void | HandleResourceChange | ( | TInt | aType | ) | [virtual] |
Reimplemented from CEikBorderedControl::HandleResourceChange(TInt)
HandleResourceChange() handles resource change event
IndexById() gets array index from id
Parameter | Description |
---|---|
aId | id number of the control |
Returns: index number to the array
IMPORT_C void | InsertControlL | ( | TEikGroupControl & | aGroupControl, |
TInt | aIndex | |||
) |
InsertControlL() inserts a control to specific position
Parameter | Description |
---|---|
aGroupControl | control and its id packed to a struct |
aIndex | index of the array where new control is to be inserted |
IMPORT_C TSize | MinimumSize | ( | ) | [virtual] |
Reimplemented from CCoeControl::MinimumSize()
MinimumSize() gets minimumsize
IMPORT_C TOrientation | Orientation | ( | ) | const |
Orientation orientation of the control group
Returns: either horizontal or vertical orientation
IMPORT_C void | SetBreadthInPixels | ( | TInt | aBreadth | ) |
SetBreadthInPixels() sets width of the control group
Parameter | Description |
---|---|
aBreadth | width of the control group |
IMPORT_C void | SetControlLayout | ( | TStartCorner | aStart, |
TOrientation | aOrientation | |||
) |
SetControlLayout sets control layout parameters
Parameter | Description |
---|---|
aStart | start corner |
aOrientation | vertical or horizontal orientation |
IMPORT_C void | SetControlsAllSameSize | ( | ) |
SetControlsAllSameSize() sets all controls to be the same size
IMPORT_C void | SetLengthInPixels | ( | TInt | aLength | ) |
SetLengthInPixels() sets length of the control group in pixels
Parameter | Description |
---|---|
aLength | length of the whole control group in pixels |
SetNumberOfLines() sets number of lines of the control group
Parameter | Description |
---|---|
aNumLines | number of lines |
aDistributeEvenly | whether controls distribute evenly to the group |
IMPORT_C void | WriteInternalStateL | ( | RWriteStream & | aWriteStream | ) | const [protected, virtual] |
Reimplemented from CEikBorderedControl::WriteInternalStateL(RWriteStream &)const
Writes the internal state of the control and its components to aWriteStream. Does nothing in release mode.
Designed to be overridden and base called from subclasses.
From CCoeControl
Parameter | Description |
---|---|
aWriteStream | A connected write stream. |