Toolbar art provider code - a tab provider provides all drawing functionality to the AuiToolBar. This allows the AuiToolBar to have a plugable look-and-feel.
By default, a AuiToolBar uses an instance of this class called AuiDefaultToolBarArt which provides bitmap art and a colour scheme that is adapted to the major platforms’ look. You can either derive from that class to alter its behaviour or write a completely new tab art class. Call SetArtProvider to make use this new tab art.
__init__ | Default class constructor. |
Clone | Clones the AuiToolBar art. |
DrawBackground | Draws a toolbar background with a gradient shading. |
DrawButton | Draws a toolbar item button. |
DrawControlLabel | Draws a label for a toolbar control. |
DrawDropDownButton | Draws a toolbar dropdown button. |
DrawGripper | Draws the toolbar gripper. |
DrawLabel | Draws a toolbar item label. |
DrawOverflowButton | Draws the overflow button for the AuiToolBar. |
DrawPlainBackground | Draws a toolbar background with a plain colour. |
DrawSeparator | Draws a toolbar separator. |
GetAGWFlags | Returns the AuiDefaultToolBarArt flags. See SetAGWFlags for more |
GetElementSize | Returns the size of a UI element in the AuiToolBar. |
GetFont | Returns the AuiDefaultToolBarArt font. |
GetLabelSize | Returns the label size for a toolbar item. |
GetOrientation | Returns the toolbar orientation. |
GetTextOrientation | Returns the AuiDefaultToolBarArt text orientation. See |
GetToolSize | Returns the toolbar item size. |
GetToolsPosition | Returns the bitmap and text rectangles for a toolbar item. |
SetAGWFlags | Sets the toolbar art flags. |
SetDefaultColours | Sets the default colours, which are calculated from the given base colour. |
SetElementSize | Sets the size of a UI element in the AuiToolBar. |
SetFont | Sets the AuiDefaultToolBarArt font. |
SetOrientation | Sets the toolbar tool orientation. |
SetTextOrientation | Sets the text orientation. |
ShowDropDown | Shows the drop down window menu for overflow items. |
Toolbar art provider code - a tab provider provides all drawing functionality to the AuiToolBar. This allows the AuiToolBar to have a plugable look-and-feel.
By default, a AuiToolBar uses an instance of this class called AuiDefaultToolBarArt which provides bitmap art and a colour scheme that is adapted to the major platforms’ look. You can either derive from that class to alter its behaviour or write a completely new tab art class. Call AuiToolBar.SetArtProvider() to make use this new tab art.
Clones the AuiToolBar art.
Draws a toolbar background with a gradient shading.
Parameters: |
|
---|
Draws a toolbar item button.
Parameters: |
|
---|
Draws a label for a toolbar control.
Parameters: |
|
---|
Draws a toolbar dropdown button.
Parameters: |
|
---|
Draws the toolbar gripper.
Parameters: |
|
---|
Draws a toolbar item label.
Parameters: |
|
---|
Draws the overflow button for the AuiToolBar.
Parameters: |
|
---|
Draws a toolbar background with a plain colour.
This method contrasts with the default behaviour of the AuiToolBar that draws a background gradient and this break the window design when putting it within a control that has margin between the borders and the toolbar (example: put AuiToolBar within a wx.StaticBoxSizer that has a plain background).
Parameters: |
|
---|
Draws a toolbar separator.
Parameters: |
|
---|
Returns the AuiDefaultToolBarArt flags. See SetAGWFlags for more details.
See also
Returns the size of a UI element in the AuiToolBar.
Parameters: | element_id – can be one of the following:
|
---|
Returns the AuiDefaultToolBarArt font.
Returns the label size for a toolbar item.
Parameters: |
|
---|
Returns the AuiDefaultToolBarArt text orientation. See SetTextOrientation for more details.
See also
Returns the toolbar item size.
Parameters: |
|
---|
Returns the bitmap and text rectangles for a toolbar item.
Parameters: |
|
---|
Sets the toolbar art flags.
Parameters: | agwFlags – a combination of the following values:
|
---|
Sets the default colours, which are calculated from the given base colour.
Parameters: | base_colour – an instance of wx.Colour. If defaulted to None, a colour is generated accordingly to the platform and theme. |
---|
Sets the size of a UI element in the AuiToolBar.
Parameters: |
|
---|
Sets the AuiDefaultToolBarArt font.
Parameters: | font – a wx.Font object. |
---|
Sets the toolbar tool orientation.
Parameters: | orientation – one of AUI_TBTOOL_HORIZONTAL, AUI_TBTOOL_VERT_CLOCKWISE or AUI_TBTOOL_VERT_COUNTERCLOCKWISE. |
---|
Sets the text orientation.
Parameters: | orientation – can be one of the following constants:
|
---|