#include "wx/sizer.h"
#include "wx/pen.h"
-//class WXDLLIMPEXP_FWD_CORE wxSizerItem;
-class wxAuiPaneInfo;
+class WXDLLIMPEXP_FWD_CORE wxClientDC;
+class WXDLLIMPEXP_FWD_AUI wxAuiPaneInfo;
enum wxAuiToolBarStyle
{
void SetItemRect(const wxRect& r) { rect = r; }
int GetToolId() const { return tool_id; }
- void SetToolId(int id) { tool_id = id; }
+ void SetToolId(int toolid) { tool_id = toolid; }
private:
window = NULL;
sizer_item = NULL;
spacer_pixels = 0;
- id = 0;
+ toolid = 0;
kind = wxITEM_NORMAL;
state = 0; // normal, enabled
proportion = 0;
sizer_item = c.sizer_item;
min_size = c.min_size;
spacer_pixels = c.spacer_pixels;
- id = c.id;
+ toolid = c.toolid;
kind = c.kind;
state = c.state;
proportion = c.proportion;
void SetWindow(wxWindow* w) { window = w; }
wxWindow* GetWindow() { return window; }
- void SetId(int new_id) { id = new_id; }
- int GetId() const { return id; }
+ void SetId(int new_id) { toolid = new_id; }
+ int GetId() const { return toolid; }
void SetKind(int new_kind) { kind = new_kind; }
int GetKind() const { return kind; }
wxSizerItem* sizer_item; // sizer item
wxSize min_size; // item's minimum size
int spacer_pixels; // size of a spacer
- int id; // item's id
+ int toolid; // item's id
int kind; // item's kind
int state; // state
int proportion; // proportion
void OnMiddleUp(wxMouseEvent& evt);
void OnMotion(wxMouseEvent& evt);
void OnLeaveWindow(wxMouseEvent& evt);
+ void OnCaptureLost(wxMouseCaptureLostEvent& evt);
void OnSetCursor(wxSetCursorEvent& evt);
protected:
wxSize m_horzHintSize;
wxSize m_vertHintSize;
+private:
+ // Common part of OnLeaveWindow() and OnCaptureLost().
+ void DoResetMouseState();
+
DECLARE_EVENT_TABLE()
DECLARE_CLASS(wxAuiToolBar)
};