Changeset 493
- Timestamp:
- 04/10/08 15:01:57 (5 months ago)
- Files:
-
- trunk/src/glib/ListG.d (modified) (1 diff)
- trunk/src/glib/ListSG.d (modified) (1 diff)
- trunk/wrap/APILookupGLib.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/glib/ListG.d
r480 r493 129 129 void* data() 130 130 { 131 int* pt = cast(int*)getStruct(); 132 return cast(void *)(*pt); 131 return getListGStruct().data; 132 } 133 134 /** 135 * get the next element 136 * Returns: the next element, or NULL if there are no more elements. 137 */ 138 ListG next() 139 { 140 return new ListG(getListGStruct().next); 141 } 142 143 /** 144 * get the previous element 145 * Returns: the previous element, or NULL if there are no more elements. 146 */ 147 ListG previous() 148 { 149 return new ListG(getListGStruct().prev); 133 150 } 134 151 trunk/src/glib/ListSG.d
r480 r493 129 129 void* data() 130 130 { 131 int* pt = cast(int*)getStruct(); 132 return cast(void *)(*pt); 131 return getListSGStruct().data; 132 } 133 134 /** 135 * get the next element 136 * Returns: the next element, or NULL if there are no more elements. 137 */ 138 ListSG next() 139 { 140 return new ListSG(getListSGStruct().next); 133 141 } 134 142 trunk/wrap/APILookupGLib.txt
r479 r493 1225 1225 void* data() 1226 1226 { 1227 int* pt = cast(int*)getStruct(); 1228 return cast(void *)(*pt); 1227 return getListGStruct().data; 1228 } 1229 1230 /** 1231 * get the next element 1232 * Returns: the next element, or NULL if there are no more elements. 1233 */ 1234 ListG next() 1235 { 1236 return new ListG(getListGStruct().next); 1237 } 1238 1239 /** 1240 * get the previous element 1241 * Returns: the previous element, or NULL if there are no more elements. 1242 */ 1243 ListG previous() 1244 { 1245 return new ListG(getListGStruct().prev); 1229 1246 } 1230 1247 code: end … … 1241 1258 void* data() 1242 1259 { 1243 int* pt = cast(int*)getStruct(); 1244 return cast(void *)(*pt); 1260 return getListSGStruct().data; 1261 } 1262 1263 /** 1264 * get the next element 1265 * Returns: the next element, or NULL if there are no more elements. 1266 */ 1267 ListSG next() 1268 { 1269 return new ListSG(getListSGStruct().next); 1245 1270 } 1246 1271 code: end
