Location:
GRDSTD.H
Link against: grid.lib
class CGridLabelImg : public CBase;
Draws a grid cell's label.
CBase
- Base class for all classes to be instantiated on the heap
CGridLabelImg
- Draws a grid cell's label
Defined in CGridLabelImg
:
CGridLabelImg()
, ConstructL()
, DrawColLabelL()
, DrawRowCursorL()
, DrawRowLabelL()
, DrawTopLeftLabelL()
, DrawTopLeftLabelL()
, EDefaultSideLabelWidthInTwips
, EDefaultTopLabelHeightInTwips
, FontSpec()
, NotifyGraphicsDeviceMapChangeL()
, ReleaseFont()
, SetGraphicsDeviceMap()
, SetGridColors()
, SideLabelWidthInPixels()
, TopLabelHeightInPixels()
, anonymous
, iFont
, iFontSpec
, iGraphicsDeviceMap
, iGridColors
, ~CGridLabelImg()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
virtual IMPORT_C ~CGridLabelImg();
Destructor.
Releases resources before the object is destroyed. Specifically, it releases the font acquired when the object was constructed.
IMPORT_C void ConstructL();
Implements the second phase of two-phase construction.
Specifically, it gets the nearest font to that specified in the font specification passed to the constructor.
protected: IMPORT_C CGridLabelImg(const TFontSpec &aFontSpec, MGraphicsDeviceMap *aGraphicsDeviceMap);
Constructor taking specified parameters.
|
inline void SetGraphicsDeviceMap(MGraphicsDeviceMap *aGraphicsDeviceMap);
Supplies a new interface object for mapping between twips and device-specific units.
Note that the caller must call ReleaseFont()
before calling this function, and must call NotifyGraphicsDeviceMapChangeL()
afterwards.
|
inline TFontSpec FontSpec() const;
Gets the font specification.
|
IMPORT_C void ReleaseFont();
Releases the font.
This is called by the destructor, and should be called before calling SetGraphicsDeviceMap()
.
IMPORT_C void NotifyGraphicsDeviceMapChangeL();
Deals with the result of changing the graphics device map, i.e. the interface for mapping between twips and device-specific units.
The function releases the existing font, and then tries to get the nearest font to that specified in the font specification.
inline void SetGridColors(const TGridColors &aGridColors);
Sets the colours to be used when drawing the label.
|
protected: IMPORT_C void DrawTopLeftLabelL(CGraphicsContext *aGc, const TRect &aRect, TRgb aColor) const;
Fills the specified rectangle with the specified colour.
|
private: virtual void DrawRowLabelL(CGraphicsContext *aGc, TInt aRow, const TRect &aRect) const=0;
Draws a row label.
|
private: virtual void DrawColLabelL(CGraphicsContext *aGc, TInt aCol, const TRect &aRect) const=0;
Draws a column label.
|
private: virtual IMPORT_C void DrawTopLeftLabelL(CGraphicsContext *aGc, const TRect &aRect) const;
Fills the specified rectangle with a colour.
The default implementation fills the specified rectangle with the background colour value as defined by the grid colour specification in iGridColors.
|
private: virtual IMPORT_C TInt SideLabelWidthInPixels(TInt aStartRow, TInt aEndRow) const;
Gets the width of the side labels.
|
|
private: virtual IMPORT_C TInt TopLabelHeightInPixels() const;
Gets the height of the top labels.
|
private: virtual IMPORT_C void DrawRowCursorL(CGraphicsContext *aGc, const TRect &aRect) const;
Draws a cursor to identify a row.
The default implementation is empty.
|
protected: n/a
|
protected: MGraphicsDeviceMap * iGraphicsDeviceMap;
The graphics device map, an interface for mapping between twips and device-specific units.
protected: TGridColors iGridColors;
The grid colour specification.