Simplify code dealing with toolbar position in associated frame

This commit is contained in:
PB
2020-05-26 23:43:54 +02:00
committed by Vadim Zeitlin
parent 46dfc54e8d
commit 13b15fecc0
5 changed files with 47 additions and 32 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]; }