X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1892d641c6e67510ad85aa697d6d9353f9662903..566e85f6ec147263f086847e0317f46705924903:/docs/latex/wx/menuitem.tex diff --git a/docs/latex/wx/menuitem.tex b/docs/latex/wx/menuitem.tex index a3ba832f3b..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} @@ -23,11 +23,11 @@ wxOwnerDrawn (Windows only)\\ \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxMenuItem::wxMenuItem}\label{wxmenuitemconstr} +\membersection{wxMenuItem::wxMenuItem}\label{wxmenuitemctor} \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. @@ -49,7 +49,7 @@ ampersand character in the menu item text, the ampersand must be doubled.} \docparam{subMenu}{If non-NULL, indicates that the menu item is a submenu.} -\membersection{wxMenuItem::\destruct{wxMenuItem}} +\membersection{wxMenuItem::\destruct{wxMenuItem}}\label{wxmenuitemdtor} \func{}{\destruct{wxMenuItem}}{\void} @@ -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}}