Simplify code dealing with toolbar position in associated frame
This commit is contained in:
@@ -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]; }
|
||||
|
Reference in New Issue
Block a user