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.
Public Member Functions | |
---|---|
MCoeControlBrushContext () |
Protected Member Functions | |
---|---|
IMPORT_C void | PrepareContext ( CWindowGc &) |
Inherited Functions | |
---|---|
MCoeControlContext::ActivateContext(CWindowGc &,RDrawableWindow &)const | |
MCoeControlContext::MCoeControlContext() | |
MCoeControlContext::ResetContext(CWindowGc &)const |
Public Attributes | |
---|---|
const CFbsBitmap * | iBitmap |
TRgb | iBrushColor |
CWindowGc::TBrushStyle | iBrushStyle |
Private Attributes | |
---|---|
TInt | iMCoeControlBrushContext_Reserved1 |
IMPORT_C | MCoeControlBrushContext | ( | ) |
Cause vtable & typeinfo to be exported
IMPORT_C void | PrepareContext | ( | CWindowGc & | aGc | ) | const [protected, virtual] |
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.
CWindowGc & aGc | The graphics context to set. |
CWindowGc::TBrushStyle | iBrushStyle |
Brush style. (Not required if iBitmap is set.)
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.