Merge branch 'toolbar-bottom'

Fix handling of toolbars using both wxTB_HORIZONTAL and wxTB_BOTTOM (or
both wxTB_VERTICAL and wxTB_RIGHT) styles.

See https://github.com/wxWidgets/wxWidgets/pull/1840

Closes #18769.
This commit is contained in:
Vadim Zeitlin
2020-06-13 14:59:00 +02:00
5 changed files with 46 additions and 17 deletions

View File

@@ -482,6 +482,10 @@ public:
// return true if this is a vertical toolbar, otherwise false
bool IsVertical() const;
// returns one of wxTB_TOP, wxTB_BOTTOM, wxTB_LEFT, wxTB_RIGHT
// indicating where the toolbar is placed in the associated frame
int GetDirection() const;
// these methods allow to access tools by their index in the toolbar
size_t GetToolsCount() const { return m_tools.GetCount(); }
wxToolBarToolBase *GetToolByPos(int pos) { return m_tools[pos]; }