BCGControlBar Pro for MFC
CBCGPBrush

Detailed Description

The CBCGPBrush class implements the functionality of brush. Many drawing methods implemented in CBCGPGraphicsManager accept CBCGPBrush as a parameter specifying line or fill colors.

+ Inheritance diagram for CBCGPBrush:

Public Types

enum  BCGP_GRADIENT_EXTEND_MODE
 
enum  BCGP_GRADIENT_TYPE
 

Public Member Functions

 CBCGPBrushDefault constructor.
 
 CBCGPBrushConstructor. Creates a solid color brush.
 
 CBCGPBrushConstructor. Creates a gradient brush.
 
 CBCGPBrushConstructor. Creates a gradient brush.
 
 CBCGPBrushConstructor. Creates a texture brush.
 
 CBCGPBrushCopy constructor.
 
 ClearTextureImageClears the texture image.
 
 EmptyResets the brush
 
 GetColorRetrieves the brush color
 
 GetGradientColorRetrieves the brush gradient color
 
 GetGradientStopsGets gradient stops.
 
 GetGradientTypeRetrieves the brush gradient type
 
 GetImageGets the brush texture image.
 
 GetOpacityRetrieves the brush opacity
 
 GetTextureImageRetrieves the brush texture image
 
 GetTextureImageRetrieves the brush texture image
 
 HasTextureImageTells whether the brush has a texture image.
 
 IsEmptyTells whether brush is empty, or not.
 
 MakeDarkerMakes the brush darker.
 
 MakeLighterMakes the brush lighter.
 
 MakePaleMakes the brush pale.
 
 SetColorSets a solid color brush background color.
 
 SetColorsSets a gradient brush colors and gradient type.
 
 SetLinearGradientStopsSets the linear gradient stops.
 
 SetOpacitySets the brush opacity.
 
 SetRadialGradientStopsSets the radial gradient stops.
 
 SetTextureImageSets brush texture image.
 
- Public Member Functions inherited from CBCGPGraphicsResource
 DetachCall this method to detach internal resource handle from this object.
 
 GetGraphicsManagerReturns a reference to CBCGPGraphicsManager - derived object associated with this object.
 
 GetHandleReturns a resource handle associated with this object.
 
 GetHandle1Returns a second (optional) resource handle associated with this object.
 
 GetHandle2Returns a third (optional) resource handle associated with this object.
 
 IsNullCheck whether this object has a NULL handle.
 
 SetCall this method to associate this object with a CBCGPGraphicsManager - derived object and resource handle(s).
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPGraphicsResource
 CBCGPGraphicsResourceDefault constructor.