Changeset 493

Show
Ignore:
Timestamp:
04/10/08 15:01:57 (5 months ago)
Author:
Mike Wey
Message:

add ListG.next and ListG.previous

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/glib/ListG.d

    r480 r493  
    129129    void* data() 
    130130    { 
    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); 
    133150    } 
    134151     
  • trunk/src/glib/ListSG.d

    r480 r493  
    129129    void* data() 
    130130    { 
    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); 
    133141    } 
    134142     
  • trunk/wrap/APILookupGLib.txt

    r479 r493  
    12251225    void* data() 
    12261226    { 
    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); 
    12291246    } 
    12301247code: end 
     
    12411258    void* data() 
    12421259    { 
    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); 
    12451270    } 
    12461271code: end