More support for drawing native column headers, adds more states
(selected, mouse-over) and also optionally drawing the contents of the header (label and/or bitmap, sort arrow) in a consistent way. Also added a method to determine the default height of the column header. This is based on work done for OSAF. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,7 +46,8 @@ public:
|
||||
virtual void DrawHeaderButton(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags = 0);
|
||||
int flags = 0,
|
||||
wxHeaderButtonParams* params = NULL);
|
||||
|
||||
// draw the expanded/collapsed icon for a tree control item
|
||||
virtual void DrawTreeItemButton(wxWindow *win,
|
||||
@@ -183,7 +184,8 @@ void
|
||||
wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int flags)
|
||||
int flags,
|
||||
wxHeaderButtonParams* params)
|
||||
{
|
||||
|
||||
GtkWidget *button = GetButtonWidget();
|
||||
@@ -201,6 +203,8 @@ wxRendererGTK::DrawHeaderButton(wxWindow *win,
|
||||
"button",
|
||||
dc.LogicalToDeviceX(rect.x), rect.y, rect.width, rect.height
|
||||
);
|
||||
|
||||
DrawHeaderButtonContents(win, dc, rect, flags, params);
|
||||
}
|
||||
|
||||
// draw a ">" or "v" button
|
||||
|
||||
Reference in New Issue
Block a user