]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/private/list.h
b4e50ab4283bbfdcc1c8ee01f2527a37fb254f20
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/private/list.h
3 // Purpose: wxGtkList class.
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GTK_PRIVATE_LIST_H_
12 #define _WX_GTK_PRIVATE_LIST_H_
14 // ----------------------------------------------------------------------------
15 // Convenience class for calling g_list_free() automatically
16 // ----------------------------------------------------------------------------
21 explicit wxGtkList(GList
* list
) : m_list(list
) { }
22 ~wxGtkList() { g_list_free(m_list
); }
24 operator GList
*() const { return m_list
; }
25 GList
* operator->() const { return m_list
; }
30 wxDECLARE_NO_COPY_CLASS(wxGtkList
);
33 #endif // _WX_GTK_PRIVATE_LIST_H_