Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Module buttonpanel :: 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 | |
---|---|
Default class constructor. | |
Draws a button in ButtonPanel, together with its text (if any). | |
Paint the ButtonPanel's background. | |
Draws the main caption text in ButtonPanel. | |
Draws the label for a button. | |
Draws a separator in ButtonPanel. | |
Gradient fill from colour 1 to colour 2 with top to bottom or left to right. | |
Returns colours of customizable options. | |
Returns colours of customizable options. | |
Returns font of customizable options. | |
Returns the gradient type for BPArt drawings. | |
Returns sizes of customizable options. | |
Sets colours for customizable options. | |
Sets colours for customizable options. | |
Sets font for customizable options. | |
Sets the gradient type for BPArt drawings. | |
Sets sizes for customizable options. |
Method Details |
---|
__init__(self,
parentStyle)
|
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. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:07:24 2007 | http://epydoc.sf.net |