wx.aui.AuiDockArt¶ wx.aui.AuiDockArt is part of the AUI class framework.
See also AUI Overview.
wx.aui.AuiDockArt is the art provider: provides all drawing functionality to the Aui dock manager. This allows the dock manager to have a pluggable look-and-feel.
By default, a wx.aui.AuiManager uses an instance of this class called wx.aui.AuiDefaultDockArt 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 dock art class. Call wx.aui.AuiManager.SetArtProvider to force AUI to use your new dock art provider.
See also
Class Hierarchy¶
Inheritance diagram for class AuiDockArt:
Known Subclasses¶
Methods Summary¶Constructor. |
|
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. |
|
Get metric value scaled by the |
|
Set a certain setting with the value colour. |
|
Set a font setting. |
|
Set a certain setting with the value new_val. |
Class API¶Possible constructors:
AuiDockArt() -> None
AuiDockArt is part of the AUI class framework.
Constructor.
None
Create a copy of this wx.aui.AuiDockArt instance.
Draws a background.
Draws a border.
dc (wx.DC)
window (wx.Window)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
None
Draws a caption.
dc (wx.DC)
window (wx.Window)
text (string)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
None
Draws a gripper.
dc (wx.DC)
window (wx.Window)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
None
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.
dc (wx.DC)
window (wx.Window)
button (int)
button_state (int)
rect (wx.Rect)
pane (wx.aui.AuiPaneInfo)
None
Draws a sash between two windows.
Get the colour of a certain setting.
id can be one of the colour values of AuiPaneDockArtSetting.
id (int)
Colour
Get a font setting.
id (int)
Font
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 , use GetMetricForWindow to get the value appropriate for the given window for metrics that express sizes.
id (int)
int
Get metric value scaled by the DPI of the given window if appropriate.
Call this function instead of GetMetric to get the metric value scaled by the window DPI for the metrics that are expressed in pixels and must be scaled.
The default implementation doesn’t scale AUI_DOCKART_SASH_SIZE and AUI_DOCKART_PANE_BORDER_SIZE metrics in order to allow setting them to just a single pixel (which is the default value for the latter in wx.aui.AuiDefaultDockArt) even in high DPI. You may override this function in your custom art implementation to scale these metrics too if you prefer to have thicker borders in high DPI.
Note that values of AUI_DOCKART_GRADIENT_TYPE are not expressed in pixels and so should never be scaled by this function.
id (int)
window (wx.Window)
int
Added in version 4.3/wxWidgets-3.3.0.
Set a certain setting with the value colour.
id can be one of the colour values of AuiPaneDockArtSetting.
id (int)
colour (wx.Colour)
None
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 .
id (int)
new_val (int)
None