wx.aui.AuiDefaultDockArt¶
This is the default art provider for wx.aui.AuiManager.
Dock art can be customized by creating a class derived from this one, or replacing this class entirely.
Class Hierarchy¶
Methods Summary¶
Create a copy of this wx.aui.AuiDockArt instance. |
|
Draws a background. |
|
Draws a border. |
|
Draws a caption. |
|
Draws a gripper. |
|
Draws a button in the pane’s title bar. |
|
Draws a sash between two windows. |
|
Get the colour of a certain setting. |
|
Get a font setting. |
|
Get the value of a certain setting. |
|
Set a certain setting with the value colour. |
|
Set a font setting. |
|
Set a certain setting with the value new_val. |
Class API¶
- class wx.aui.AuiDefaultDockArt(AuiDockArt)¶
Possible constructors:
AuiDefaultDockArt() -> None
This is the default art provider for AuiManager.
Methods¶
- __init__(self)¶
- Return type:
None
- Clone(self)¶
Create a copy of this wx.aui.AuiDockArt instance.
- Return type:
- DrawBackground(self, dc, window, orientation, rect)¶
Draws a background.
- DrawBorder(self, dc, window, rect, pane)¶
Draws a border.
- Parameters:
dc (wx.DC)
window (wx.Window)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
- Return type:
None
- DrawCaption(self, dc, window, text, rect, pane)¶
Draws a caption.
- Parameters:
dc (wx.DC)
window (wx.Window)
text (string)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
- Return type:
None
- DrawGripper(self, dc, window, rect, pane)¶
Draws a gripper.
- Parameters:
dc (wx.DC)
window (wx.Window)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
- Return type:
None
- DrawPaneButton(self, dc, window, button, button_state, rect, pane)¶
Draws a button in the pane’s title bar.
button can be one of the values of AuiButtonId. button_state can be one of the values of AuiPaneButtonState.
- Parameters:
dc (wx.DC)
window (wx.Window)
button (int)
button_state (int)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
- Return type:
None
- DrawSash(self, dc, window, orientation, rect)¶
Draws a sash between two windows.
- GetColour(self, id)¶
Get the colour of a certain setting.
id can be one of the colour values of AuiPaneDockArtSetting.
- Parameters:
id (int)
- Return type:
Colour
- GetFont(self, id)¶
Get a font setting.
- Parameters:
id (int)
- Return type:
Font
- GetMetric(self, id)¶
Get the value of a certain setting.
id can be one of the size values of AuiPaneDockArtSetting.
This function returns the same value that was set by
SetMetric, useGetMetricForWindowto get the value appropriate for the given window for metrics that express sizes.- Parameters:
id (int)
- Return type:
int
- SetColour(self, id, colour)¶
Set a certain setting with the value colour.
id can be one of the colour values of AuiPaneDockArtSetting.
- Parameters:
id (int)
colour (wx.Colour)
- Return type:
None
- SetMetric(self, id, new_val)¶
Set a certain setting with the value new_val.
id can be one of the size values of AuiPaneDockArtSetting.
The interpretation of new_val depends on the metric being set, see
GetMetricForWindow.- Parameters:
id (int)
new_val (int)
- Return type:
None