X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3a65071987ac699afa1cf7edf909f5770244dba..42e69d6b435a4dd5415caf3750db62cf45b6f373:/docs/latex/wx/list.tex diff --git a/docs/latex/wx/list.tex b/docs/latex/wx/list.tex index 6e53b0e541..91c439dfa9 100644 --- a/docs/latex/wx/list.tex +++ b/docs/latex/wx/list.tex @@ -72,7 +72,9 @@ future versions completely. \helpref{wxObject}{wxobject} -{\bf WARNING: } the rest of documentation may be out-of-date. +\wxheading{Include files} + + \wxheading{Example} @@ -80,19 +82,19 @@ It is very common to iterate on a list as follows: \begin{verbatim} ... - wxPoint *point1 = new wxPoint(100, 100); - wxPoint *point2 = new wxPoint(200, 200); + wxWindow *win1 = new wxWindow(...); + wxWindow *win2 = new wxWindow(...); wxList SomeList; - SomeList.Append(point1); - SomeList.Append(point2); + SomeList.Append(win1); + SomeList.Append(win2); ... wxNode *node = SomeList.GetFirst(); while (node) { - wxPoint *point = (wxPoint *)node->Data(); + wxWindow *win = (wxWindow *)node->Data(); ... node = node->Next(); } @@ -110,7 +112,7 @@ with \begin{verbatim} ... - delete point; + delete win; delete node; node = SomeList.GetFirst(); ... @@ -213,7 +215,7 @@ Returns the first node in the list (NULL if the list is empty). \func{int}{IndexOf}{\param{wxObject*}{ obj }} -Returns the index of {\it obj} within the list or NOT\_FOUND if {\it obj} +Returns the index of {\it obj} within the list or NOT\_FOUND if {\it obj} is not found in the list. \membersection{wxList::Insert}