X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f98bd52a3e896ffa49cf672ec1864f5b2906a0a9..e944f70a6d8f0a56d00d575940f4fe94f49ef727:/include/wx/list.h?ds=inline diff --git a/include/wx/list.h b/include/wx/list.h index e166f1423c..d2c4bf87fc 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -131,6 +131,8 @@ private: WXDLLEXPORT_DATA(extern wxListKey) wxDefaultListKey; +class WXDLLEXPORT wxListBase; + class WXDLLEXPORT wxNodeBase { friend class wxListBase; @@ -271,6 +273,9 @@ protected: // operations // append to end of list + wxNodeBase *Prepend(void *object) + { return (wxNodeBase *)wxListBase::Insert(object); } + // append to beginning of list wxNodeBase *Append(void *object); // insert a new item at the beginning of the list wxNodeBase *Insert(void *object) { return Insert( (wxNodeBase*)NULL, object); } @@ -536,6 +541,10 @@ public: // makes a copy of the string wxNode *Add(const wxChar *s) { return (wxNode *)wxStringListBase::Append(copystring(s)); } + + // Append to beginning of list + wxNode *Prepend(const wxChar *s) + { return (wxNode *)wxStringListBase::Insert(copystring(s)); } bool Delete(const wxChar *s);