X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..704ceca8d2cd8da51a5cc22f8c51fd61c762dbf5:/interface/wx/menuitem.h?ds=sidebyside diff --git a/interface/wx/menuitem.h b/interface/wx/menuitem.h index f9372b5b7c..4b8b36e42a 100644 --- a/interface/wx/menuitem.h +++ b/interface/wx/menuitem.h @@ -8,7 +8,6 @@ /** @class wxMenuItem - @wxheader{menuitem.h} A menu item represents an item in a menu. Note that you usually don't have to deal with it directly as wxMenu methods usually construct an @@ -69,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). @@ -113,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 @@ -121,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, @@ -201,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. @@ -227,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 @@ -250,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). @@ -271,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).