X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..95b4a59e67af301bb6ff061055ac5a9a09b96d6c:/interface/wx/menuitem.h diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index 3aa24e02fd..4b8b36e42a 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -68,18 +68,18 @@ public: /** Destructor. */ - ~wxMenuItem(); + virtual ~wxMenuItem(); /** Checks or unchecks the menu item. Note that this only works when the item is already appended to a menu. */ - void Check(bool check = true); + virtual void Check(bool check = true); /** Enables or disables the menu item. */ - void Enable(bool enable = true); + virtual void Enable(bool enable = true); /** Returns the background colour associated with the menu item (Windows only). @@ -112,7 +112,7 @@ public: @see GetItemLabelText(), GetLabelText() */ - wxString GetItemLabel() const; + virtual wxString GetItemLabel() const; /** Returns the text associated with the menu item, without any accelerator @@ -120,7 +120,7 @@ public: @see GetItemLabel(), GetLabelText() */ - wxString GetItemLabelText() const; + virtual wxString GetItemLabelText() const; /** Returns the item kind, one of @c wxITEM_SEPARATOR, @c wxITEM_NORMAL, @@ -200,12 +200,12 @@ public: /** Returns @true if the item is checked. */ - bool IsChecked() const; + virtual bool IsChecked() const; /** Returns @true if the item is enabled. */ - bool IsEnabled() const; + virtual bool IsEnabled() const; /** Returns @true if the item is a separator. @@ -226,7 +226,7 @@ public: Sets the bitmap for the menu item (Windows and GTK+ only). It is equivalent to wxMenuItem::SetBitmaps(bmp, wxNullBitmap). */ - void SetBitmap(const wxBitmap& bmp); + virtual void SetBitmap(const wxBitmap& bmp); /** Sets the checked/unchecked bitmaps for the menu item (Windows only). The first @@ -249,7 +249,7 @@ public: /** Sets the label associated with the menu item. */ - void SetItemLabel(const wxString& label); + virtual void SetItemLabel(const wxString& label); /** Sets the width of the menu item checkmark bitmap (Windows only). @@ -270,7 +270,7 @@ public: Sets the text associated with the menu item. @deprecated This function is deprecated in favour of SetItemLabel(). */ - void SetText(const wxString& text); + virtual void SetText(const wxString& text); /** Sets the text colour associated with the menu item (Windows only).