X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcbd177f06597f98aae27bf53a4c98b4739102c7..bcf576ccfe754a634034203aa133c02fb5d2f964:/docs/latex/wx/menuitem.tex?ds=sidebyside diff --git a/docs/latex/wx/menuitem.tex b/docs/latex/wx/menuitem.tex index 697b5ebd39..5cb61d9bd7 100644 --- a/docs/latex/wx/menuitem.tex +++ b/docs/latex/wx/menuitem.tex @@ -5,7 +5,7 @@ deal with it directly as \helpref{wxMenu}{wxmenu} methods usually construct an object of this class for you. Also please note that the methods related to fonts and bitmaps are currently -only implemented for Windows. +only implemented for Windows and GTK+. \wxheading{Derived from} @@ -27,7 +27,7 @@ wxOwnerDrawn (Windows only)\\ \func{}{wxMenuItem}{\param{wxMenu*}{ parentMenu = NULL}, \param{int}{ id = wxID\_SEPARATOR}, \param{const wxString\& }{text = ""}, \param{const wxString\& }{helpString = ""}, - \param{wxItemKind }{kind = wxITEM\_NORMAL}, \param{wxMenu*}{ subMenu = NULL}, } + \param{wxItemKind }{kind = wxITEM\_NORMAL}, \param{wxMenu*}{ subMenu = NULL}} Constructs a wxMenuItem object. @@ -58,7 +58,7 @@ Destructor. \membersection{wxMenuItem::Check}\label{wxmenuitemcheck} -\func{void}{Check}{\param{bool}{ check}} +\func{void}{Check}{\param{bool}{ check = true}} Checks or unchecks the menu item. @@ -67,7 +67,7 @@ Note that this only works when the item is already appended to a menu. \membersection{wxMenuItem::Enable}\label{wxmenuitemenable} -\func{void}{Enable}{\param{bool}{ enable}} +\func{void}{Enable}{\param{bool}{ enable = true}} Enables or disables the menu item. @@ -220,6 +220,13 @@ Returns true if the item is enabled. Returns true if the item is a separator. +\membersection{wxMenuItem::IsSubMenu}\label{wxmenuitemissubmenu} + +\constfunc{bool}{IsSubMenu}{\void} + +Returns true if the item is a submenu. + + \membersection{wxMenuItem::SetBackgroundColour}\label{wxmenuitemsetbackgroundcolour} \constfunc{void}{SetBackgroundColour}{\param{const wxColour\& }{colour}}