func (v List) NthData(n uint) interface{} { p := C.g_list_nth_data(v.GList, C.guint(n)) if p == nil { return nil } return unsafe.Pointer(p) }
func (self *GList) NthData(n uint) interface{} { data := C.g_list_nth_data(self.object, C.guint(n)) if data == nil { return nil } if self.ConversionFunc != nil { return self.ConversionFunc(unsafe.Pointer(data)) } return data }
func (self *GList) FreeFull() { if self.DestroyFunc == nil { return } var numElements int = int(self.Length()) for i := 0; i < numElements; i++ { el := C.g_list_nth_data(self.object, C.guint(i)) self.DestroyFunc(unsafe.Pointer(el)) } self.Free() }
//WebKitNetworkRequest * webkit_web_data_source_get_request // (WebKitWebDataSource *data_source); func (v *DataSource) GetSubresources() []*WebResource { gList := C.webkit_web_data_source_get_subresources(v.getDataSource()) list := glib.ListFromNative(unsafe.Pointer(gList)) resources := []*WebResource{} l := list.First() for n := uint(0); n < l.Length(); n++ { resource := &WebResource{glib.GObject{unsafe.Pointer(C.g_list_nth_data(gList, C.guint(n)))}} resources = append(resources, resource) } return resources }
func (v List) NthData(n uint) interface{} { return C.g_list_nth_data(v.GList, C.guint(n)) }
func (v List) NthData(n uint) unsafe.Pointer { return unsafe.Pointer(C.g_list_nth_data(v.GList, C.guint(n))) }
// NthData is a wrapper around g_list_nth_data(). func (v *List) NthData(n uint) interface{} { glist := (*C.GList)(unsafe.Pointer(v)) return C.g_list_nth_data(glist, C.guint(n)) }