X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7b8af652fe667c61d89dfb342c7660b2b16daea..86ac84b8ce086e6bbda58f422d41f84268606e35:/include/wx/aui/auibar.h diff --git a/include/wx/aui/auibar.h b/include/wx/aui/auibar.h index ab4d4b44aa..b8f6ff453b 100644 --- a/include/wx/aui/auibar.h +++ b/include/wx/aui/auibar.h @@ -119,6 +119,7 @@ public: dropdown = true; sticky = true; user_data = 0; + alignment = wxALIGN_CENTER; } wxAuiToolBarItem(const wxAuiToolBarItem& c) @@ -152,6 +153,7 @@ public: dropdown = c.dropdown; sticky = c.sticky; user_data = c.user_data; + alignment = c.alignment; } @@ -209,6 +211,9 @@ public: void SetUserData(long l) { user_data = l; } long GetUserData() const { return user_data; } + void SetAlignment(int l) { alignment = l; } + int GetAlignment() const { return alignment; } + private: wxWindow* window; // item's associated window @@ -229,6 +234,7 @@ private: bool dropdown; // true if the item has a dropdown button bool sticky; // overrides button states if true (always active) long user_data; // user-specified data + int alignment; // sizer alignment flag, defaults to wxCENTER, may be wxEXPAND or any other }; #ifndef SWIG @@ -249,8 +255,11 @@ public: virtual wxAuiToolBarArt* Clone() = 0; virtual void SetFlags(unsigned int flags) = 0; + virtual unsigned int GetFlags() = 0; virtual void SetFont(const wxFont& font) = 0; + virtual wxFont GetFont() = 0; virtual void SetTextOrientation(int orientation) = 0; + virtual int GetTextOrientation() = 0; virtual void DrawBackground( wxDC& dc, @@ -327,8 +336,11 @@ public: virtual wxAuiToolBarArt* Clone(); virtual void SetFlags(unsigned int flags); + virtual unsigned int GetFlags(); virtual void SetFont(const wxFont& font); + virtual wxFont GetFont(); virtual void SetTextOrientation(int orientation); + virtual int GetTextOrientation(); virtual void DrawBackground( wxDC& dc,