| class CCoeControlArray : public CBase |
Class that represents an array of controls.
The CCoeControlArray class is used to store the child controls of a container control. The method CCoeControl::InitComponentArrayL() must be used to create the array and the method CCoeControlArray& CCoeControl::Components() can be used to get this array.
| Public Member Functions | |
|---|---|
| ~CCoeControlArray() | |
| IMPORT_C TCursor | AppendLC(CCoeControl *, TInt) |
| IMPORT_C TCoeControlWithId | At(TInt) |
| IMPORT_C const TCoeControlWithId | At(TInt) |
| IMPORT_C TCursor | Begin() |
| T * | ControlById(TInt) |
| const T * | ControlById(TInt) |
| IMPORT_C TBool | ControlsOwnedExternally() |
| IMPORT_C TInt | Count() |
| IMPORT_C TCursor | End() |
| IMPORT_C TCursor | Find(const CCoeControl *) |
| IMPORT_C TCursor | Find(TInt) |
| IMPORT_C TInt | Id(const CCoeControl &) |
| IMPORT_C TCursor | InsertAfterLC(TInt, CCoeControl *, TInt) |
| IMPORT_C TCursor | InsertLC(TCursor &, CCoeControl *, TInt) |
| IMPORT_C TBool | IsArrayLocked() |
| IMPORT_C CCoeControlArray * | NewL(CCoeControl &) |
| IMPORT_C TInt | Remove(const CCoeControl *) |
| IMPORT_C CCoeControl * | Remove(TCursor) |
| IMPORT_C CCoeControl * | RemoveById(TInt) |
| IMPORT_C TInt | Replace(CCoeControl *, CCoeControl *) |
| IMPORT_C void | Reset() |
| IMPORT_C void | ResetAndDestroy() |
| IMPORT_C void | SetArrayLocked() |
| IMPORT_C void | SetControlsOwnedExternally(TBool) |
| IMPORT_C void | Sort(TLinearOrder< TCoeControlWithId >) |
| IMPORT_C void | SortById() |
| Private Member Functions | |
|---|---|
| CCoeControlArray(CCoeControl &) | |
| IMPORT_C CCoeControl * | CtrlById(TInt) |
| TInt | IndexById(TInt) |
| Public Member Enumerations | |
|---|---|
| enum | TEvent { EControlAdded, EControlRemoved } |
| Private Attributes | |
|---|---|
| RArray< TCoeControlWithId > | iControls |
| TInt | iFlags |
| CCoeControl & | iOwner |
| IMPORT_C | CCoeControlArray | ( | CCoeControl & | aOwner | ) | [private] |
| CCoeControl & aOwner |
| IMPORT_C TCursor | AppendLC | ( | CCoeControl * | aControl, |
| TInt | aControlId = KCoeNoControlId | |||
| ) | ||||
| CCoeControl * aControl | |
| TInt aControlId = KCoeNoControlId |
| T * | ControlById | ( | TInt | aControlId | ) | [inline] |
Gets the control with the given id. The control with the given id.
| TInt aControlId | The id of the desired control. |
| const T * | ControlById | ( | TInt | aControlId | ) | const [inline] |
Gets the control with the given id. The control with the given id.
| TInt aControlId | The id of the desired control. |
| IMPORT_C CCoeControl * | CtrlById | ( | TInt | aControlId | ) | const [private] |
| TInt aControlId |
| IMPORT_C TCursor | Find | ( | const CCoeControl * | aControl | ) | const |
| const CCoeControl * aControl |
| IMPORT_C TInt | Id | ( | const CCoeControl & | aControl | ) | const |
| const CCoeControl & aControl |
| IMPORT_C TCursor | InsertAfterLC | ( | TInt | aInsertAfterId, |
| CCoeControl * | aControl, | |||
| TInt | aControlId = KCoeNoControlId | |||
| ) | ||||
| TInt aInsertAfterId | |
| CCoeControl * aControl | |
| TInt aControlId = KCoeNoControlId |
| IMPORT_C TCursor | InsertLC | ( | TCursor & | aInsertAt, |
| CCoeControl * | aControl, | |||
| TInt | aControlId = KCoeNoControlId | |||
| ) | ||||
| TCursor & aInsertAt | |
| CCoeControl * aControl | |
| TInt aControlId = KCoeNoControlId |
| IMPORT_C CCoeControlArray * | NewL | ( | CCoeControl & | aOwner | ) | [static] |
| CCoeControl & aOwner |
| IMPORT_C TInt | Remove | ( | const CCoeControl * | aControl | ) |
| const CCoeControl * aControl |
| IMPORT_C TInt | Replace | ( | CCoeControl * | aOriginalControl, |
| CCoeControl * | aNewControl | |||
| ) | ||||
| CCoeControl * aOriginalControl | |
| CCoeControl * aNewControl |
| IMPORT_C void | SetControlsOwnedExternally | ( | TBool | aOwnedExternally | ) |
| TBool aOwnedExternally |
| IMPORT_C void | Sort | ( | TLinearOrder< TCoeControlWithId > | aOrder | ) |
| TLinearOrder< TCoeControlWithId > aOrder |
Defines the possible events related to a change to the contents of the array.
| EControlAdded |
A control has been added to the array |
| EControlRemoved |
A control has been removed from the array |