Package wx :: Package lib :: Module buttonpanel :: Class BPArt

[frames | no frames]

## Class BPArt

BPArt is an art provider class which does all of the drawing for ButtonPanel. This allows the library caller to customize the BPArt or to completely replace all drawing with custom BPArts.

Method Summary
| ``__init__`(self, parentStyle)` Default class constructor.
| ``DrawButton`(self, dc, rect, parentSize, buttonBitmap, isVertical, buttonStatus, isToggled, textAlignment, text)` Draws a button in ButtonPanel, together with its text (if any).
| ``DrawButtonPanel`(self, dc, rect, style)` Paint the ButtonPanel's background.
| ``DrawCaption`(self, dc, rect, captionText)` Draws the main caption text in ButtonPanel.
| ``DrawLabel`(self, dc, text, isEnabled, xpos, ypos)` Draws the label for a button.
| ``DrawSeparator`(self, dc, rect, isVertical)` Draws a separator in ButtonPanel.
| ``FillGradientColor`(self, dc, rect)` Gradient fill from colour 1 to colour 2 with top to bottom or left to right.
| ``GetColor`(self, id)` Returns colours of customizable options.
| ``GetColour`(self, id)` Returns colours of customizable options.
| ``GetFont`(self, id)` Returns font of customizable options.
| ``GetGradientType`(self)` Returns the gradient type for BPArt drawings.
| ``GetMetric`(self, id)` Returns sizes of customizable options.
| ``SetColor`(self, id, colour)` Sets colours for customizable options.
| ``SetColour`(self, id, colour)` Sets colours for customizable options.
| ``SetFont`(self, id, font)` Sets font for customizable options.
| ``SetGradientType`(self, gradient)` Sets the gradient type for BPArt drawings.
| ``SetMetric`(self, id, new_val)` Sets sizes for customizable options.

Method Details

### __init__(self, parentStyle)
(Constructor)

Default class constructor.

### DrawButton(self, dc, rect, parentSize, buttonBitmap, isVertical, buttonStatus, isToggled, textAlignment, text='')

Draws a button in ButtonPanel, together with its text (if any).

### DrawButtonPanel(self, dc, rect, style)

Paint the ButtonPanel's background.

### DrawCaption(self, dc, rect, captionText)

Draws the main caption text in ButtonPanel.

### DrawLabel(self, dc, text, isEnabled, xpos, ypos)

Draws the label for a button.

### DrawSeparator(self, dc, rect, isVertical)

Draws a separator in ButtonPanel.

### FillGradientColor(self, dc, rect)

Gradient fill from colour 1 to colour 2 with top to bottom or left to right.

### GetColor(self, id)

Returns colours of customizable options.

### GetColour(self, id)

Returns colours of customizable options.

### GetFont(self, id)

Returns font of customizable options.

### GetGradientType(self)

Returns the gradient type for BPArt drawings.

### GetMetric(self, id)

Returns sizes of customizable options.

### SetColor(self, id, colour)

Sets colours for customizable options.

### SetColour(self, id, colour)

Sets colours for customizable options.

### SetFont(self, id, font)

Sets font for customizable options.

### SetGradientType(self, gradient)

Sets the gradient type for BPArt drawings.

### SetMetric(self, id, new_val)

Sets sizes for customizable options.

Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:07:24 2007 | http://epydoc.sf.net