Location:
coecntx.h
Link against: cone.lib
CCoeBrushAndPenContext
Supported from 5.1
Brush and pen graphics context.
This class allows an MCoeControlContext
to be
instantiated and used to set brush and pen properties before drawing a
control.
|
Defined in CCoeBrushAndPenContext
:
BrushBitmap()
, BrushColor()
, BrushStyle()
, NewL()
, PenColor()
, PrepareContext()
, SetBrushBitmap()
, SetBrushColor()
, SetBrushStyle()
, SetPenColor()
Inherited from CBase
:
operator new()
Inherited from MCoeControlContext
:
ActivateContext()
,
ResetContext()
static CCoeBrushAndPenContext* NewL();
Allocates and constructs a new brush and pen graphics context object.
|
const CFbsBitmap& BrushBitmap() const;
Gets a reference to the bitmap used to pattern the drawing brush.
|
TRgb BrushColor() const;
Gets the brush colour.
|
CWindowGc::TBrushStyle BrushStyle() const;
Gets the brush style.
|
void SetBrushBitmap(const CFbsBitmap& aBitmap);
Sets the drawing brush pattern bitmap. When a bitmap has been set a patterned style brush is selected automatically.
|
void SetBrushColor(TRgb aColor);
Sets the brush colour.
|
void SetBrushStyle(CWindowGc::TBrushStyle aBrushStyle);
Sets the brush style.
|
void SetPenColor(TRgb aColor);
Sets the pen colour.
|
protected: void PrepareContext(CWindowGc& aGc) const;
Prepares the graphics context for drawing the control in its normal state.
The function uses the brush and pen properties which have been set, or uses a black pen and a black solid brush by default. When a bitmap has been set a patterned style brush is selected
|