#include <wx/aui/dockart.h>
wxAuiDockArt is part of the wxAUI class framework.
See also wxAUI Overview.
wxAuiDockArt is the art provider: provides all drawing functionality to the wxAui dock manager. This allows the dock manager to have a pluggable look-and-feel.
By default, a wxAuiManager uses an instance of this class called wxAuiDefaultDockArt 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 wxAuiManager::SetArtProvider to force wxAUI to use your new dock art provider.
Public Member Functions | |
wxAuiDockArt () | |
Constructor. More... | |
virtual | ~wxAuiDockArt () |
Destructor. More... | |
virtual wxAuiDockArt * | Clone ()=0 |
Create a copy of this wxAuiDockArt instance. More... | |
virtual void | DrawBackground (wxDC &dc, wxWindow *window, int orientation, const wxRect &rect)=0 |
Draws a background. More... | |
virtual void | DrawBorder (wxDC &dc, wxWindow *window, const wxRect &rect, wxAuiPaneInfo &pane)=0 |
Draws a border. More... | |
virtual void | DrawCaption (wxDC &dc, wxWindow *window, const wxString &text, const wxRect &rect, wxAuiPaneInfo &pane)=0 |
Draws a caption. More... | |
virtual void | DrawGripper (wxDC &dc, wxWindow *window, const wxRect &rect, wxAuiPaneInfo &pane)=0 |
Draws a gripper. More... | |
virtual void | DrawPaneButton (wxDC &dc, wxWindow *window, int button, int button_state, const wxRect &rect, wxAuiPaneInfo &pane)=0 |
Draws a button in the pane's title bar. More... | |
virtual void | DrawSash (wxDC &dc, wxWindow *window, int orientation, const wxRect &rect)=0 |
Draws a sash between two windows. More... | |
virtual wxColour | GetColour (int id)=0 |
Get the colour of a certain setting. More... | |
virtual wxFont | GetFont (int id)=0 |
Get a font setting. More... | |
virtual int | GetMetric (int id)=0 |
Get the value of a certain setting. More... | |
virtual int | GetMetricForWindow (int id, wxWindow *window) |
Get metric value scaled by the DPI of the given window if appropriate. More... | |
virtual void | SetColour (int id, const wxColour &colour)=0 |
Set a certain setting with the value colour. More... | |
virtual void | SetFont (int id, const wxFont &font)=0 |
Set a font setting. More... | |
virtual void | SetMetric (int id, int new_val)=0 |
Set a certain setting with the value new_val. More... | |
wxAuiDockArt::wxAuiDockArt | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Create a copy of this wxAuiDockArt instance.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Draws a background.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Draws a border.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Draws a caption.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Draws a gripper.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Draws a button in the pane's title bar.
button can be one of the values of wxAuiButtonId. button_state can be one of the values of wxAuiPaneButtonState.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Draws a sash between two windows.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Get the colour of a certain setting.
id can be one of the colour values of wxAuiPaneDockArtSetting.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Get a font setting.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Get the value of a certain setting.
id can be one of the size values of wxAuiPaneDockArtSetting.
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.
Implemented in wxAuiDefaultDockArt.
|
virtual |
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 wxAUI_DOCKART_SASH_SIZE and wxAUI_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 wxAuiDefaultDockArt) 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 wxAUI_DOCKART_GRADIENT_TYPE are not expressed in pixels and so should never be scaled by this function.
|
pure virtual |
Set a certain setting with the value colour.
id can be one of the colour values of wxAuiPaneDockArtSetting.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Set a font setting.
Implemented in wxAuiDefaultDockArt.
|
pure virtual |
Set a certain setting with the value new_val.
id can be one of the size values of wxAuiPaneDockArtSetting.
The interpretation of new_val depends on the metric being set, see GetMetricForWindow().
Implemented in wxAuiDefaultDockArt.