X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/64d3ed176d5b88473b69c7ab63075d50608d2f66..dc484d491b15355285a89da275c58c2ef247d1f4:/include/wx/generic/buttonbar.h diff --git a/include/wx/generic/buttonbar.h b/include/wx/generic/buttonbar.h index 1cb9d63a7f..c0f319b5c9 100644 --- a/include/wx/generic/buttonbar.h +++ b/include/wx/generic/buttonbar.h @@ -14,6 +14,7 @@ #define _WX_BUTTONBAR_H_ #include "wx/bmpbuttn.h" +#include "wx/toolbar.h" class WXDLLEXPORT wxButtonToolBarTool; @@ -89,6 +90,12 @@ protected: // receives button commands void OnCommand(wxCommandEvent& event); + // paints a border + void OnPaint(wxPaintEvent& event); + + // detects mouse clicks outside buttons + void OnLeftUp(wxMouseEvent& event); + private: // have we calculated the positions of our tools? bool m_needsLayout; @@ -100,6 +107,12 @@ private: wxCoord m_maxWidth, m_maxHeight; + // the height of a label + int m_labelHeight; + + // the space above the label + int m_labelMargin; + private: DECLARE_DYNAMIC_CLASS(wxButtonToolBar) DECLARE_EVENT_TABLE()