wBrush

A brush is a drawing tool for filling in areas.

Superclass:wGdiObject
Seealso:wDC wPredefined
Consts:
Font FamilyDescription
wBrushStyleSolidSolid.
wBrushStyleTransparentTransparent (no fill).
wBrushStyleMaskBrush style mask.
wBrushStyleBdiagonalHatchBackward diagonal hatch.
wBrushStyleCrossdiagHatchCross-diagonal hatch.
wBrushStyleFdiagonalHatchForward diagonal hatch.
wBrushStyleCrossHatchCross hatch.
wBrushStyleHorizontalHatchHorizontal hatch.
wBrushStyleVerticalHatchVertical hatch.
wBrushStyleMaskHatchBrush hatch style mask.

Types

wBrushError = object of wGdiObjectError
  
An error raised when wBrush creation failed.

Consts

wBrushStyleSolid = 0
wBrushStyleTransparent = 5
wBrushStyleMask = 0x0000000F
wBrushStyleBdiagonalHatch = 196608
wBrushStyleCrossdiagHatch = 327680
wBrushStyleFdiagonalHatch = 131072
wBrushStyleCrossHatch = 262144
wBrushStyleHorizontalHatch = 0
wBrushStyleVerticalHatch = 65536
wBrushStyleMaskHatch = 0x00FF0000

Procs

proc final(self: wBrush) {...}{.raises: [], tags: [].}
Default finalizer for wBrush.
proc init(self: wBrush; color: wColor = wWHITE; style = wBrushStyleSolid) {...}{.validate,
    raises: [], tags: [].}
Initializer.
proc Brush(color: wColor = wWHITE; style = wBrushStyleSolid): wBrush {...}{.inline, raises: [],
    tags: [].}
Constructs a brush from a color and style.
proc init(self: wBrush; hBrush: HANDLE) {...}{.validate, raises: [], tags: [].}
Initializer.
proc Brush(hBrush: HANDLE): wBrush {...}{.inline, raises: [], tags: [].}
Construct wBrush object from a system brush handle.
proc init(self: wBrush; brush: wBrush) {...}{.validate, raises: [], tags: [].}
Initializer.
proc Brush(brush: wBrush): wBrush {...}{.inline, raises: [], tags: [].}
Copy constructor
proc getColor(self: wBrush): wColor {...}{.validate, property, inline, raises: [], tags: [].}
Returns a reference to the brush color.
proc getStyle(self: wBrush): DWORD {...}{.validate, property, inline, raises: [], tags: [].}
Returns the brush style.
proc setColor(self: wBrush; color: wColor) {...}{.validate, property, raises: [], tags: [].}
Sets the brush color.
proc setStyle(self: wBrush; style: DWORD) {...}{.validate, property, raises: [], tags: [].}
Sets the brush style.