Ticket #1: ddoc-cairo.diff

File ddoc-cairo.diff, 5.9 kB (added by Mike Wey, 1 year ago)

DDoc in APILookupcairo.txt, includes the cairoLib.Cairo -> cairo.Cotext change

  • gtkD/wrap/APILookupCairo.txt

    old new  
    7878 
    7979file: cairo-cairo-t.html 
    8080struct: cairo_t 
    81 class: Cairo 
     81class: Context 
    8282prefix: cairo_ 
    8383structWrap: cairo_surface_t* Surface 
    84 structWrap: cairo_t* Cairo 
    85 import: cairoLib.Surface 
     84structWrap: cairo_t* Context 
     85import: cairo.Surface 
    8686import: glib.Str 
    8787import: gdk.Region 
    8888import: gdk.Rectangle 
     
    9797 
    9898    /** 
    9999     * Creates a Cairo context for drawing to drawable. 
    100      * drawable: 
    101      *  a GdkDrawable 
     100     * Since 2.8 
     101     * Params: 
     102     *  drawable = a GdkDrawable 
    102103     * Returns: 
    103104     *  A newly created Cairo context. Free with 
    104105     *  cairo_destroy() when you are done drawing. 
    105      * Since 2.8 
    106106     */ 
    107107    this (Drawable drawable) 
    108108    { 
     
    112112 
    113113    /** 
    114114     * Sets the specified GdkColor as the source color of cr. 
    115      * cr: 
    116      *  a cairo_t 
    117      * color: 
    118      *  a GdkColor 
    119115     * Since 2.8 
     116     * Params: 
     117     *  color = a GdkColor 
    120118     */ 
    121119    public void setSourceColor(Color color) 
    122120    { 
    123121        // void gdk_cairo_set_source_color (cairo_t *cr,  GdkColor *color); 
    124         gdk_cairo_set_source_color(getCairoStruct(), color.getColorStruct()); 
     122        gdk_cairo_set_source_color(getContextStruct(), color.getColorStruct()); 
    125123    } 
    126124 
    127125    /** 
    128126     * Sets the given pixbuf as the source pattern for the Cairo context. 
    129127     * The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned 
    130      * so that the origin of pixbuf is pixbuf_x, pixbuf_y 
    131      * cr: 
    132      *  a Cairo context 
    133      * pixbuf: 
    134      *  a GdkPixbuf 
    135      * pixbuf_x: 
    136      *  X coordinate of location to place upper left corner of pixbuf 
    137      * pixbuf_y: 
    138      *  Y coordinate of location to place upper left corner of pixbuf 
     128     * so that the origin of pixbuf is pixbufX, pixbufY 
    139129     * Since 2.8 
     130     * Params: 
     131     *  pixbuf = a GdkPixbuf 
     132     *  pixbufX = X coordinate of location to place upper left corner of pixbuf 
     133     *  pixbufY = Y coordinate of location to place upper left corner of pixbuf 
    140134     */ 
    141135    public void setSourcePixbuf(Pixbuf pixbuf, double pixbufX, double pixbufY) 
    142136    { 
    143137        // void gdk_cairo_set_source_pixbuf (cairo_t *cr,  GdkPixbuf *pixbuf,  double pixbuf_x,  double pixbuf_y); 
    144         gdk_cairo_set_source_pixbuf(getCairoStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY); 
     138        gdk_cairo_set_source_pixbuf(getContextStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY); 
    145139    } 
    146140 
    147141    /** 
    148142     * Sets the given pixmap as the source pattern for the Cairo context. 
    149143     * The pattern has an extend mode of CAIRO_EXTEND_NONE and is aligned 
    150      * so that the origin of pixbuf is pixbuf_x, pixbuf_y 
    151      * cr: 
    152      *  a Cairo context 
    153      * pixmap: 
    154      *  a GdkPixmap 
    155      * pixmap_x: 
    156      *  X coordinate of location to place upper left corner of pixmap 
    157      * pixmap_y: 
    158      *  Y coordinate of location to place upper left corner of pixmap 
     144     * so that the origin of pixbuf is pixbufX, pixbufY 
    159145     * Since 2.10 
     146     * Params: 
     147     *  pixmap = a GdkPixmap 
     148     *  pixmapX = X coordinate of location to place upper left corner of pixmap 
     149     *  pixmapY = Y coordinate of location to place upper left corner of pixmap 
    160150     */ 
    161151    public void setSourcePixmap(Pixmap pixmap, double pixmapX, double pixmapY) 
    162152    { 
    163153        // void gdk_cairo_set_source_pixmap (cairo_t *cr,  GdkPixmap *pixmap,  double pixmap_x,  double pixmap_y); 
    164         gdk_cairo_set_source_pixmap( getCairoStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY); 
     154        gdk_cairo_set_source_pixmap( getContextStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY); 
    165155    } 
    166156 
    167157    /** 
    168158     * Adds the given rectangle to the current path of cr. 
    169      * cr: 
    170      *  a cairo_t 
    171      * rectangle: 
    172      *  a GdkRectangle 
    173159     * Since 2.8 
     160     * Params: 
     161     *  rectangle = a GdkRectangle 
    174162     */ 
    175163    public void rectangle(Rectangle rectangle) 
    176164    { 
    177165        // void gdk_cairo_rectangle (cairo_t *cr,  GdkRectangle *rectangle); 
    178         gdk_cairo_rectangle( getCairoStruct(), rectangle.getRectangleStruct()); 
     166        gdk_cairo_rectangle( getContextStruct(), rectangle.getRectangleStruct()); 
    179167    } 
    180168 
    181169    /** 
    182170     * Adds the given region to the current path of cr. 
    183      * cr: 
    184      *  a cairo_t 
    185      * region: 
    186      *  a GdkRegion 
    187171     * Since 2.8 
     172     * Params: 
     173     *  region = a GdkRegion 
    188174     */ 
    189     public  void region( Region region) 
     175    public  void region(Region region) 
    190176    { 
    191177        // void gdk_cairo_region (cairo_t *cr,  GdkRegion *region); 
    192         gdk_cairo_region(getCairoStruct(), region.getRegionStruct()); 
     178        gdk_cairo_region(getContextStruct(), region.getRegionStruct()); 
    193179    } 
    194180 
    195181 
    196182code: end 
    197183 
    198 openFile: Cairo 
     184openFile: Context 
    199185 
    200186file: cairo-Paths.html 
    201 mergeFile: Cairo 
     187mergeFile: Context 
    202188 
    203189file: cairo-Transformations.html 
    204 mergeFile: Cairo 
     190mergeFile: Context 
    205191 
    206192file: cairo-Text.html 
    207 closeFile: Cairo 
     193closeFile: Context 
    208194 
    209195 
    210196file: cairo-Patterns.html 
  • gtkD/wrap/APILookupGdk.txt

    old new  
    128128struct: GdkScreen 
    129129class: Screen 
    130130prefix: gdk_screen_ 
    131 import: gtkc.cairoLibtypes 
     131import: gtkc.cairotypes 
    132132import: glib.Str 
    133133import: gdk.Screen 
    134134structWrap: GdkScreen* Screen 
     
    968968file: gdk-Cairo-Interaction.html 
    969969 
    970970prefix: gdk_cairo_ 
    971 import: cairoLib.Cairo 
    972 structWrap: cairo_t* Cairo 
     971import: cairo.Context 
     972structWrap: cairo_t* Context 
    973973structWrap: GdkDrawable* Drawable 
    974974structWrap: GdkColor* Color 
    975975structWrap: GdkPixbuf* Pixbuf 
     
    990990     * This file is not used,  
    991991     *  
    992992     * It is here just to tell you to look at  
    993      * cairoLib.Cairo class for the methods that where here.. 
     993     * cairo.Context class for the methods that where here.. 
    994994     */ 
    995995 
    996996 
  • gtkD/wrap/APILookup.txt

    old new  
    132132package: glib glib 
    133133package: gthread gthread 
    134134package: gobject gobject 
    135 package: cairo cairoLib 
     135package: cairo cairo 
    136136package: pango pango 
    137137package: atk atk 
    138138package: gdk-pixbuf gdkpixbuf