X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/47d602c1efb6959629fd2622759d0abaf53809e4..bf956fac0e89eab569c41a9f121e728958767de7:/interface/aui/dockart.h diff --git a/interface/aui/dockart.h b/interface/aui/dockart.h index 5b7b33e90f..34ae018422 100644 --- a/interface/aui/dockart.h +++ b/interface/aui/dockart.h @@ -81,7 +81,7 @@ enum wxAuiButtonId wxAuiDockArt is the art provider: provides all drawing functionality to the wxAui dock manager. This allows the dock manager to have a plugable look-and-feel. - By default, a wxAuiManager uses an instance of this class called + 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. @@ -103,97 +103,78 @@ public: /** Destructor. */ - ~wxAuiDockArt(); + virtual ~wxAuiDockArt(); /** Draws a background. */ - virtual void DrawBackground(wxDC& dc, wxWindow* window, - int orientation, - const wxRect& rect); + virtual void DrawBackground(wxDC& dc, wxWindow* window, int orientation, + const wxRect& rect) = 0; /** Draws a border. */ - virtual void DrawBorder(wxDC& dc, wxWindow* window, - const wxRect& rect, - wxAuiPaneInfo& pane); + virtual void DrawBorder(wxDC& dc, wxWindow* window, const wxRect& rect, + wxAuiPaneInfo& pane) = 0; /** Draws a caption. */ - virtual void DrawCaption(wxDC& dc, wxWindow* window, - const wxString& text, - const wxRect& rect, - wxAuiPaneInfo& pane); + virtual void DrawCaption(wxDC& dc, wxWindow* window, const wxString& text, + const wxRect& rect, wxAuiPaneInfo& pane) = 0; /** Draws a gripper. */ - virtual void DrawGripper(wxDC& dc, wxWindow* window, - const wxRect& rect, - wxAuiPaneInfo& pane); + virtual void DrawGripper(wxDC& dc, wxWindow* window, const wxRect& rect, + wxAuiPaneInfo& pane) = 0; /** Draws a button in the pane's title bar. @a button can be one of the values of @b wxAuiButtonId. @a button_state can be one of the values of @b wxAuiPaneButtonState. */ - virtual void DrawPaneButton(wxDC& dc, wxWindow* window, - int button, - int button_state, - const wxRect& rect, - wxAuiPaneInfo& pane); + virtual void DrawPaneButton(wxDC& dc, wxWindow* window, int button, + int button_state, const wxRect& rect, + wxAuiPaneInfo& pane) = 0; /** Draws a sash between two windows. */ - virtual void DrawSash(wxDC& dc, wxWindow* window, - int orientation, - const wxRect& rect); - - /** - The same as GetColour(). - */ - virtual wxColour GetColor(int id); - + virtual void DrawSash(wxDC& dc, wxWindow* window, int orientation, + const wxRect& rect) = 0; /** Get the colour of a certain setting. @a id can be one of the colour values of @b wxAuiPaneDockArtSetting. */ - virtual wxColour GetColour(int id); + virtual wxColour GetColour(int id) = 0; /** Get a font setting. */ - virtual wxFont GetFont(int id); + virtual wxFont GetFont(int id) = 0; /** Get the value of a certain setting. @a id can be one of the size values of @b wxAuiPaneDockArtSetting. */ - virtual int GetMetric(int id); - - /** - The same as SetColour(). - */ - virtual void SetColor(int id, const wxColour& color); + virtual int GetMetric(int id) = 0; /** Set a certain setting with the value @e colour. @a id can be one of the colour values of @b wxAuiPaneDockArtSetting. */ - virtual void SetColour(int id, const wxColor& colour); + virtual void SetColour(int id, const wxColour& colour) = 0; /** Set a font setting. */ - virtual void SetFont(int id, const wxFont& font); + virtual void SetFont(int id, const wxFont& font) = 0; /** Set a certain setting with the value @e new_val. @a id can be one of the size values of @b wxAuiPaneDockArtSetting. */ - virtual void SetMetric(int id, int new_val); + virtual void SetMetric(int id, int new_val) = 0; };