From 0856300fb12e26978a3cf10f88cc6a91bfdd69c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Thu, 14 Sep 2006 16:02:48 +0000 Subject: [PATCH] wxHeaderButtonParams needs complete classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/renderer.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/include/wx/renderer.h b/include/wx/renderer.h index ebda812285..4fbcf21b19 100644 --- a/include/wx/renderer.h +++ b/include/wx/renderer.h @@ -29,6 +29,10 @@ class WXDLLEXPORT wxDC; class WXDLLEXPORT wxWindow; #include "wx/gdicmn.h" // for wxPoint +#include "wx/colour.h" +#include "wx/font.h" +#include "wx/bitmap.h" +#include "wx/string.h" // some platforms have their own renderers, others use the generic one #if defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXGTK__) @@ -95,7 +99,7 @@ struct WXDLLEXPORT wxHeaderButtonParams wxHeaderButtonParams() : m_labelAlignment(wxALIGN_LEFT) { } - + wxColour m_arrowColour; wxColour m_selectionColour; wxString m_labelText; @@ -224,7 +228,7 @@ public: // draw rectangle indicating that an item in e.g. a list control // has been selected or focused // - // flags may use + // flags may use // wxCONTROL_SELECTED (item is selected, e.g. draw background) // wxCONTROL_CURRENT (item is the current item, e.g. dotted border) // wxCONTROL_FOCUSED (the whole control has focus, e.g. blue background vs. grey otherwise) @@ -303,7 +307,7 @@ public: wxHeaderButtonParams* params = NULL) { m_rendererNative.DrawHeaderButton(win, dc, rect, flags, params); } - + virtual void DrawHeaderButtonContents(wxWindow *win, wxDC& dc, const wxRect& rect, @@ -311,7 +315,7 @@ public: wxHeaderButtonParams* params = NULL) { m_rendererNative.DrawHeaderButtonContents(win, dc, rect, flags, params); } - + virtual int GetHeaderButtonHeight(wxWindow *win) { return m_rendererNative.GetHeaderButtonHeight(win); } -- 2.47.2