Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <COECCNTX.H>
Link against: cone.lib

Class MCoeControlBrushContext

Interface status: deprecated

class MCoeControlBrushContext : public MCoeControlContext;

Description

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.

Derivation

Members

Defined in MCoeControlBrushContext:

Inherited from MCoeControlContext:


Construction and destruction


MCoeControlBrushContext()

Interface status: deprecated Inherited from: MCoeControlBrushContext

IMPORT_C MCoeControlBrushContext();

Description

Cause vtable & typeinfo to be exported

[Top]


Member functions


PrepareContext(CWindowGc &)const

Interface status: deprecated Inherited from: MCoeControlBrushContext

protected: IMPORT_C virtual void PrepareContext(CWindowGc &aGc) const;

Description

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.

Parameters

CWindowGc &aGc

The graphics context to set.

[Top]


Member data


iBrushStyle

Interface status: deprecated Inherited from: MCoeControlBrushContext

CWindowGc::TBrushStyle iBrushStyle;

Description

Brush style. (Not required if iBitmap is set.)


iBrushColor

Interface status: deprecated Inherited from: MCoeControlBrushContext

TRgb iBrushColor;

Description

Brush colour. (Not required if iBitmap is set.)


iBitmap

Interface status: deprecated Inherited from: MCoeControlBrushContext

const CFbsBitmap * iBitmap;

Description

Brush pattern.