|
||
Interface status: | deprecated |
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 MCoeControlBrushContext::PrepareContext(CWindowGc &)const
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()
Cause vtable & typeinfo to be exported PrepareContext(CWindowGc &)const
Sets the brush settings for the specified graphics context.iBitmap
Brush pattern. iBrushColor
Brush colour. (Not required if iBitmap is set.) iBrushStyle
Brush style. (Not required if iBitmap is set.) Inherited from MCoeControlContext
:
ActivateContext(CWindowGc &,RDrawableWindow &)const
Activates a graphics context for the specified window.ResetContext(CWindowGc &)const
Resets the control context.Interface status: | deprecated | Inherited from: MCoeControlBrushContext |
IMPORT_C MCoeControlBrushContext();
Cause vtable & typeinfo to be exported
Interface status: | deprecated | Inherited from: MCoeControlBrushContext |
protected: IMPORT_C virtual 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.
|
Interface status: | deprecated | Inherited from: MCoeControlBrushContext |
CWindowGc::TBrushStyle iBrushStyle;
Brush style. (Not required if iBitmap is set.)
Interface status: | deprecated | Inherited from: MCoeControlBrushContext |
TRgb iBrushColor;
Brush colour. (Not required if iBitmap is set.)
Interface status: | deprecated | Inherited from: MCoeControlBrushContext |
const CFbsBitmap * iBitmap;
Brush pattern.