Location:
coeccntx.h
Link against: cone.lib
class MCoeControlBrushContext : public MCoeControlContext;
Protocol for sharing brush settings used in graphics operations.
It can be used to set brush and pen properties before drawing a control.
The mixin provides a default implementation of a control context. It implements PrepareContext()
to initialise brush settings used in graphics operations. Its data members are public so that the brush style, brush colour
and brush pattern can be set by application code.
MCoeControlContext
- Interface to allow sharing of graphics settings between controls
MCoeControlBrushContext
- Protocol for sharing brush settings used in graphics operations
Defined in MCoeControlBrushContext
:
MCoeControlBrushContext()
, PrepareContext()
, iBitmap
, iBrushColor
, iBrushStyle
Inherited from MCoeControlContext
:
ActivateContext()
,
MCoeControlContext_Reserved1()
,
MCoeControlContext_Reserved2()
,
ResetContext()
protected: virtual IMPORT_C void PrepareContext(CWindowGc &aGc) const;
Sets the brush settings for the specified graphics context.
If iBitmap is set, it sets this as the brush pattern and sets the brush style to EPatternedBrush. Otherwise, it sets the brush style and brush colour using the values of iBrushStyle and iBrushColor.
|
const CFbsBitmap * iBitmap;
Brush pattern.