func (self *GSList) FreeFull() { if self.DestroyFunc == nil { return } var numElements int = int(self.Length()) for i := 0; i < numElements; i++ { el := C.g_slist_nth_data(self.object, C.guint(i)) self.DestroyFunc(unsafe.Pointer(el)) } self.Free() }
func (self *GSList) NthData(n uint) interface{} { data := C.g_slist_nth_data(self.object, C.guint(n)) if data == nil { return nil } if self.ConversionFunc != nil { return self.ConversionFunc(unsafe.Pointer(data)) } return data }
// GSList* g_slist_sort (GSList *list, GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT; // GSList* g_slist_sort_with_data (GSList *list, GCompareDataFunc compare_func, gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; func (v SList) NthData(n uint) interface{} { return C.g_slist_nth_data(v.GSList, C.guint(n)) }
// GSList* g_slist_sort (GSList *list, GCompareFunc compare_func) G_GNUC_WARN_UNUSED_RESULT; // GSList* g_slist_sort_with_data (GSList *list, GCompareDataFunc compare_func, gpointer user_data) G_GNUC_WARN_UNUSED_RESULT; func (v SList) NthData(n uint) unsafe.Pointer { return unsafe.Pointer(C.g_slist_nth_data(v.GSList, C.guint(n))) }