X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77c5eefb1f06a8956231d2cbe1526e4de526cac5..34bbbc276dc470014c8d200cfbbf7f588076aeaf:/docs/latex/wx/node.tex diff --git a/docs/latex/wx/node.tex b/docs/latex/wx/node.tex index a65eb41c69..c2b6600772 100644 --- a/docs/latex/wx/node.tex +++ b/docs/latex/wx/node.tex @@ -1,10 +1,20 @@ -\section{\class{wxNode}}\label{wxnode} +\section{\class{wxNodeBase}}\label{wxnode} -A node structure used in linked lists (see \helpref{wxList}{wxlist}). +A node structure used in linked lists (see \helpref{wxList}{wxlist}) and +derived classes. You should never use wxNodeBase class directly because it +works with untyped (void *) data and this is unsafe. Use wxNode-derived classes +which are defined by WX\_DECLARE\_LIST and WX\_DEFINE\_LIST macros instead as +described in \helpref{wxList}{wxlist} documentation (see example there). wxNode +is defined for compatibility as wxNodeBase containing "wxObject *" pointer, but +usage of this class is deprecated. \wxheading{Derived from} -\helpref{wxObject}{wxobject} +None. + +\wxheading{Include files} + + \wxheading{See also} @@ -12,33 +22,32 @@ A node structure used in linked lists (see \helpref{wxList}{wxlist}). \latexignore{\rtfignore{\wxheading{Members}}} -\membersection{wxNode::Data} +\membersection{wxNodeBase::GetData} -\func{wxObject *}{Data}{\void} +\func{void *}{Data}{\void} -Retrieves the client data pointer associated with the node. This will -have to be cast to the correct type. +Retrieves the client data pointer associated with the node. -\membersection{wxNode::Next} +\membersection{wxNodeBase::GetNext} -\func{wxNode *}{Next}{\void} +\func{wxNodeBase *}{Next}{\void} Retrieves the next node (NULL if at end of list). -\membersection{wxNode::Previous} +\membersection{wxNodeBase::GetPrevious} -\func{wxNode *}{Previous}{\void} +\func{wxNodeBase *}{GetPrevious}{\void} Retrieves the previous node (NULL if at start of list). -\membersection{wxNode::SetData} +\membersection{wxNodeBase::SetData} -\func{void}{SetData}{\param{wxObject *}{data}} +\func{void}{SetData}{\param{void *}{data}} Sets the data associated with the node (usually the pointer will have been set when the node was created). -\membersection{wxNode::IndexOf} +\membersection{wxNodeBase::IndexOf} \func{int}{IndexOf}{\void}