class CEikSpacer : public CAknControl |
An invisible control that is used to provide a space between visible controls. It has a width, a height and a color. The spacer is normally drawn using the background color so that it is invisible.
Its associated resource struct is SPACER and its control factory identifier is EEikCtSpacer .
Public Member Functions | |
---|---|
CEikSpacer () | |
CEikSpacer ( TInt , TInt , TRgb ) | |
~CEikSpacer () | |
IMPORT_C void | HandlePointerEventL (const TPointerEvent &) |
IMPORT_C void | SetClear ( TBool ) |
IMPORT_C void | SetColor ( TRgb ) |
IMPORT_C void | SetHeight ( TInt ) |
IMPORT_C void | SetWidth ( TInt ) |
Private Member Functions | |
---|---|
void | ConstructFromResourceL ( TResourceReader &) |
void | Draw (const TRect &) |
IMPORT_C void * | ExtensionInterface ( TUid ) |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType |
Private Attributes | |
---|---|
TBool | iClear |
TRgb | iColor |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize |
IMPORT_C | CEikSpacer | ( | ) |
Default C++ constructor. The spacer's color is initialised to white.
IMPORT_C | CEikSpacer | ( | TInt | aWidth, |
TInt | aHeight, | |||
TRgb | aColor | |||
) |
C++ constructor with a width, height and color.
void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [private, virtual] |
From CCoeControl .
TResourceReader & aReader |
void | Draw | ( | const TRect & | aRect | ) | const [private, virtual] |
const TRect & aRect |
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl .
TUid aInterface |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Handles pointer events.
This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer.
If overriding this method, the implementation must include a base call to this method.
From CCoeControl .
const TPointerEvent & aPointerEvent | The pointer event. |
IMPORT_C void | SetClear | ( | TBool | aClear | ) |
Specifies whether the spacer is drawn using the standard brush color.
If the "Is clear" flag is set, the spacer's color value is ignored, and it is drawn using the brush color defined in the system's standard graphics context. By default, the "Is clear" flag is unset.
TBool aClear | ETrue to set the "Is clear" flag, EFalse to unset it. |
IMPORT_C void | SetColor | ( | TRgb | aColor | ) |
Sets the spacer's color.
TRgb aColor | The spacer's color. |
IMPORT_C void | SetHeight | ( | TInt | aHeight | ) |
Sets the spacer's height.
TInt aHeight | The spacer's height. |
IMPORT_C void | SetWidth | ( | TInt | aWidth | ) |
Sets the spacer's width.
TInt aWidth | The spacer's width. |
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.