Changeset 331

Show
Ignore:
Timestamp:
12/28/07 13:37:21 (1 year ago)
Author:
Pse
Message:

Mike Wey's changes for comments (ticket #1).
Non-tested, non-braking. Preparing for full rewrap.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wrap/APILookup.txt

    r322 r331  
    133133package: gthread gthread 
    134134package: gobject gobject 
    135 package: cairo cairoLib 
     135package: cairo cairo 
    136136package: pango pango 
    137137package: atk atk 
  • trunk/wrap/APILookupCairo.txt

    r322 r331  
    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 
     
    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) 
     
    113113    /** 
    114114     * Sets the specified GdkColor as the source color of cr. 
    115      * cr: 
    116      *  a cairo_t 
    117      * color: 
    118      *  a GdkColor 
    119      * Since 2.8 
     115     * 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 
     
    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 
    139      * Since 2.8 
     128     * so that the origin of pixbuf is pixbufX, pixbufY 
     129     * 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 
     
    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 
    173      * Since 2.8 
     159     * 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 
    187      * Since 2.8 
    188      */ 
    189     public  void region( Region region) 
     171     * Since 2.8 
     172     * Params: 
     173     *  region = a GdkRegion 
     174     */ 
     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 
     
    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 
  • trunk/wrap/APILookupGLd.txt

    r322 r331  
    9797     * Creates a mew OpenGL frame buffer configuration that match the specified display mode, 
    9898     * or the fallback mode. 
    99      * @param mode display mode bit mask. 
     99     * Params: 
     100     *  mode = display mode bit mask. 
     101     *  fallback = Try this mode if first fails. 
    100102     */ 
    101103    this(GLConfigMode mode, GLConfigMode fallback) 
  • trunk/wrap/APILookupGLib.txt

    r322 r331  
    160160    /** 
    161161     * Increases the reference count on a GMainLoop object by one. 
    162      * loop
    163      *  a GMainLoop 
     162     * Params
     163     *  loop = a GMainLoop 
    164164     * Returns: 
    165165     *  loop 
     
    462462} 
    463463 
     464    /** */ 
    464465    public static char** toStringzArray(char[][] args) 
    465466    { 
     
    479480    } 
    480481 
     482    /** */ 
    481483    public static char[][] toStringArray(char** args) 
    482484    { 
     
    499501    } 
    500502 
     503    /** */ 
    501504    public static char[] toString(bool b) 
    502505    { 
     
    504507    } 
    505508     
     509    /** */ 
    506510    public static char[] toString(char c) 
    507511    { 
     
    512516    } 
    513517 
     518    /** */ 
    514519    public static char[] toString(ubyte ub)  { return toString(cast(uint) ub); } /// ditto 
     520    /** */ 
    515521    public static char[] toString(ushort us) { return toString(cast(uint) us); } /// ditto 
    516522     
     523    /** */ 
    517524    public static char[] toString(uint u) 
    518525    {   char[uint.sizeof * 3] buffer = void; 
     
    540547    } 
    541548 
     549    /** */ 
    542550    public static char[] toString(ulong u) 
    543551    {   char[ulong.sizeof * 3] buffer; 
     
    561569    } 
    562570 
     571    /** */ 
    563572    public static char[] toString(byte b)  { return toString(cast(int) b); } /// ditto 
     573    /** */ 
    564574    public static char[] toString(short s) { return toString(cast(int) s); } /// ditto 
    565575     
     576    /** */ 
    566577    public static char[] toString(int i) 
    567578    {   char[1 + int.sizeof * 3] buffer; 
     
    753764     * Adds a delegate to be notified on the end of the child process. 
    754765     * Params: 
    755      *      delegate(int = 
    756766     *      dlg = 
    757767     */ 
     
    11371147 
    11381148code: start 
    1139    
     1149  /** */  
    11401150    void* data() 
    11411151    { 
     
    11431153        return cast(void *)(*pt); 
    11441154    } 
    1145       
    1146  
    1147  
    11481155code: end 
    11491156 
  • trunk/wrap/APILookupGda.txt

    r322 r331  
    115115    /** 
    116116     * Initializes the GDA library. 
    117      * app_id : 
    118      *  name of the program. 
    119      * version : 
    120      *  revision number of the program. 
    121      * args : 
    122      *   args from main(). 
     117     * Params: 
     118     *  appId = name of the program. 
     119     *  version = revision number of the program. 
     120     *  args = args from main(). 
    123121     */ 
    124122    public static void init(char[] appId, char[] versio, char[][] args) 
     
    178176     * the options parameter. 
    179177     * This function is the way of opening database connections with libgda. 
    180      * client : 
    181      *  a GdaClient object. 
    182      * dsn : 
    183      *  data source name. 
    184      * username : 
    185      *  user name. 
    186      * password : 
    187      *  password for username. 
    188      * options : 
    189      *  options for the connection (see GdaConnectionOptions). 
     178     * Params: 
     179     *  dsn = data source name. 
     180     *  username = user name. 
     181     *  password = password for username. 
     182     *  options = options for the connection (see GdaConnectionOptions). 
    190183     * Returns : 
    191184     *  the opened connection if successful, NULL if there is 
    192      * an error. 
     185     * an error. 
    193186     */ 
    194187    public Connection openConnection(char[] dsn, char[] username, char[] password, GdaConnectionOptions options) 
     
    251244import: std.string 
    252245code: start 
     246    /** */ 
    253247    this (ListG glist) { 
    254248        this.gdaDataSourceInfo = cast(GdaDataSourceInfo *) glist.data; 
    255249    } 
     250    /** */ 
    256251    char[] name() { return std.string.toString(this.gdaDataSourceInfo.name); } 
     252    /** */ 
    257253    char[] provider() { return std.string.toString(this.gdaDataSourceInfo.provider); } 
     254    /** */ 
    258255    char[] cncString() { return std.string.toString(this.gdaDataSourceInfo.cncString); } 
     256    /** */ 
    259257    char[] description() { return std.string.toString(this.gdaDataSourceInfo.description); } 
     258    /** */ 
    260259    char[] username() { return std.string.toString(this.gdaDataSourceInfo.username); } 
     260    /** */ 
    261261    char[] password() { return std.string.toString(this.gdaDataSourceInfo.password); } 
    262262         
     
    278278import: std.string 
    279279code: start 
     280    /** */ 
    280281    this (ListG glist) { 
    281282        this.gdaProviderInfo = cast(GdaProviderInfo *) glist.data; 
    282283    } 
     284    /** */ 
    283285    char[] id() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).id); } 
     286    /** */ 
    284287    char[] location() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).location); } 
     288    /** */ 
    285289    char[] description() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).description); } 
     290    /** */ 
    286291    ListG gda_params() { return new ListG((cast(_GdaProviderInfo*)this.gdaProviderInfo).gda_params); } 
    287      
    288          
    289292code: end 
    290293 
     
    343346 
    344347code: start 
     348    /** */ 
    345349    this (ListG glist) { 
    346350        this.gdaDataModel = cast(GdaDataModel *) glist.data; 
    347351    } 
    348  
    349352code: end 
    350353outFile: DataModel 
     
    359362 
    360363code: start 
     364    /** */ 
    361365    this (ListG glist) { 
    362366        this.gdaError = cast(GdaError *) glist.data; 
    363367    } 
    364  
    365368code: end 
    366369outFile: Error 
     
    524527 
    525528code: start 
     529    /** */ 
    526530    public this (bool val) 
    527        
    528                 // GdaValue* gda_value_new_boolean (gboolean val); 
    529                 this(cast(GdaValue*)gda_value_new_boolean(val) ); 
    530        
     531   
     532       // GdaValue* gda_value_new_boolean (gboolean val); 
     533       this(cast(GdaValue*)gda_value_new_boolean(val) ); 
     534   
    531535code: end 
    532536 
    533537 
    534538outFile: Value 
    535   
  • trunk/wrap/APILookupGdk.txt

    r322 r331  
    129129class: Screen 
    130130prefix: gdk_screen_ 
    131 import: gtkc.cairoLibtypes 
     131import: gtkc.cairotypes 
    132132import: glib.Str 
    133133import: gdk.Screen 
     
    278278    /** 
    279279     * Draws an outlined or filled polygon. 
    280      * drawable: 
    281      *  a GdkDrawable (a GdkWindow or a GdkPixmap). 
    282      * gc: 
    283      *  a GdkGC. 
    284      * filled: 
    285      *  TRUE if the polygon should be filled. The polygon is closed 
     280     * Params: 
     281     *  gc = a GdkGC. 
     282     *  filled = TRUE if the polygon should be filled. The polygon is closed 
    286283     *  automatically, connecting the last point to the first point if 
    287284     *  necessary. 
    288      * points: 
    289      *  an array of GdkPoint structures specifying the points making 
     285     *  points = an array of GdkPoint structures specifying the points making 
    290286     *  up the polygon. 
    291287     */ 
     
    295291        gdk_draw_polygon(gdkDrawable, gc.getGCStruct(), filled, points.ptr, points.length); 
    296292    } 
    297      
     293 
     294    /** */ 
    298295    public void drawPixbuf(Pixbuf pixbuf, int destX, int destY) 
    299296    { 
    300297        drawPixbuf(null, pixbuf, destX, destY); 
    301298    } 
     299 
     300    /** */ 
    302301    public void drawPixbuf(GC gc, Pixbuf pixbuf, int destX, int destY) 
    303302    { 
     
    311310                        0, 0); 
    312311    } 
    313  
    314  
    315       
    316      
    317312code: end 
    318313 
     
    455450     * converts the resulting image to a GdkPixbuf, so the 
    456451     * documentation for gdk_drawable_get_image() may also be relevant. 
    457      * dest: 
    458      *  Destination pixbuf, or NULL if a new pixbuf should be created. 
    459      * src: 
    460      *  Source drawable. 
    461      * cmap: 
    462      *  A colormap if src doesn't have one set. 
    463      * src_x: 
    464      *  Source X coordinate within drawable. 
    465      * src_y: 
    466      *  Source Y coordinate within drawable. 
    467      * dest_x: 
    468      *  Destination X coordinate in pixbuf, or 0 if dest is NULL. 
    469      * dest_y: 
    470      *  Destination Y coordinate in pixbuf, or 0 if dest is NULL. 
    471      * width: 
    472      *  Width in pixels of region to get. 
    473      * height: 
    474      *  Height in pixels of region to get. 
     452     * Params: 
     453     *  src = Source drawable. 
     454     *  cmap = A colormap if src doesn't have one set. 
     455     *  srcX = Source X coordinate within drawable. 
     456     *  srcY = Source Y coordinate within drawable. 
     457     *  destX = Destination X coordinate in pixbuf, or 0 if dest is NULL. 
     458     *  destY = Destination Y coordinate in pixbuf, or 0 if dest is NULL. 
     459     *  width = Width in pixels of region to get. 
     460     *  height = Height in pixels of region to get. 
    475461     * Returns: 
    476462     *  The same pixbuf as dest if it was non-NULL, or a newly-created 
    477      * pixbuf with a reference count of 1 if no destination pixbuf was specified, or NULL on error 
     463     * pixbuf with a reference count of 1 if no destination pixbuf was specified, or NULL on error 
    478464     */ 
    479465    public Pixbuf getFromDrawable(Drawable src, Colormap cmap, int srcX, int srcY, int destX, int destY, int width, int height) 
     
    588574    } 
    589575 
     576    /** */ 
    590577    this(ubyte red, ubyte green, ubyte blue) 
    591578    { 
     
    596583    /** 
    597584     * Creates a new Color with RGB values 
    598      * @param red 
    599      * @param green 
    600      * @param blue 
     585     * Params:   
     586     *  red = 
     587     *  green = 
     588     *  blue = 
    601589     */ 
    602590    this(guint16 red, guint16 green, guint16 blue) 
     
    607595    } 
    608596 
     597    /** */ 
    609598    this(uint rgb) 
    610599    { 
     
    614603    } 
    615604 
     605    /** */ 
    616606    this(int rgb) 
    617607    { 
     
    621611    } 
    622612 
     613    /** */ 
    623614    static Color black() 
    624615    { 
     
    629620        return _black; 
    630621    } 
     622 
     623    /** */ 
    631624    static Color white() 
    632625    { 
     
    640633    /** 
    641634     * Sets the Color with RGB values 
    642      * @param red 
    643      * @param green 
    644      * @param blue 
     635     * Params: 
     636     *  red = 
     637     *  green = 
     638     *  blue = 
    645639     */ 
    646640    void set(guint16 red, guint16 green, guint16 blue) 
     
    656650    } 
    657651 
     652    /** */ 
    658653    void set8(ubyte red, ubyte green, ubyte blue) 
    659654    { 
     
    667662    } 
    668663     
     664    /** */ 
    669665    uint getValue() 
    670666    { 
     
    672668    } 
    673669     
     670    /** */ 
    674671    int getValue24() 
    675672    { 
     
    677674    } 
    678675     
     676    /** */ 
    679677    uint getPixelValue() 
    680678    { 
     
    795793 
    796794code: start 
     795    /** */ 
    797796    public static bool isDoubleClick(GdkEventButton* eventButton, int buttonNumber=1) 
    798797    { 
     
    801800    } 
    802801 
     802    /** */ 
    803803    public static bool isTrippleClick(GdkEventButton* eventButton, int buttonNumber=1) 
    804804    { 
     
    806806                && eventButton.type == EventType.TRIPPLE_BUTTON_PRESS; 
    807807    } 
    808  
    809808code: end 
    810809 
     
    969968 
    970969prefix: gdk_cairo_ 
    971 import: cairoLib.Cairo 
    972 structWrap: cairo_t* Cairo 
     970import: cairo.Context 
     971structWrap: cairo_t* Context 
    973972structWrap: GdkDrawable* Drawable 
    974973structWrap: GdkColor* Color 
     
    991990     *  
    992991     * It is here just to tell you to look at  
    993      * cairoLib.Cairo class for the methods that where here.. 
     992     * cairo.Context class for the methods that where here.. 
    994993     */ 
    995994 
     
    997996code: end 
    998997outFile: GdkCairo 
    999  
    1000  
    1001  
  • trunk/wrap/APILookupGdkPixbuf.txt

    r322 r331  
    183183     * that can't be reliably identified by looking at the data, or if 
    184184     * the user manually forces a specific type. 
    185      * type: 
    186      *  name of the image format or mime to be loaded with the image 
    187      * error: 
    188      *  return location for an allocated GError, or NULL to ignore errors 
     185     * Params: 
     186     *  type = name of the image format or mime to be loaded with the image 
     187     *  error = return location for an allocated GError, or NULL to ignore errors 
    189188     * Returns: 
    190189     *  A newly-created pixbuf loader. 
  • trunk/wrap/APILookupGlade.txt

    r322 r331  
    105105 
    106106code: start 
    107         /** 
     107    /** 
    108108     * This function is used to get a pointer to the GtkWidget corresponding to 
    109109     * name in the interface description. You would use this if you have to do 
    110110     * anything to the widget after loading. 
    111      * self: 
    112      *  the GladeXML object. 
    113      * name: 
    114      *  the name of the widget. 
     111     * Params: 
     112     *  name = the name of the widget. 
    115113     * Returns: 
    116114     *  the widget matching name, or NULL if none exists. 
     
    134132     * window it is embedded in. Note also that the XML parse tree is cached 
    135133     * to speed up creating another GladeXML object for the same file 
    136      * fname: 
    137      *  the XML file name. 
    138      * root: 
    139      *  the widget node in fname to start building from (or NULL) 
    140      * domain: 
    141      *  the translation domain for the XML file (or NULL for default) 
    142      * Returns: 
    143      *  the newly created GladeXML object, or NULL on failure. 
     134     * Params: 
     135     *  fname = the XML file name. 
     136     *  root = the widget node in fname to start building from (or NULL) 
     137     *  domain = the translation domain for the XML file (or NULL for default) 
    144138     */ 
    145139    public this (char[] fname, char[] root = null, char[] domain=null) 
     
    152146     
    153147    /** 
    154          * This function is used to get a list of pointers to the GtkWidget(s) 
    155          * with names that start with the string name in the interface description. 
    156          * You would use this if you have to do something to all of these widgets 
    157          * after loading. 
    158          * self: 
    159          *  the GladeXML object. 
    160          * name: 
    161          *  the name of the widget. 
    162          * Returns: 
    163          *  A list of the widget that match name as the start of their 
    164          * name, or NULL if none exists. 
    165          */ 
    166         public Widget[] getWidgetPrefix(char[] name) 
    167         { 
    168                 // GList* glade_xml_get_widget_prefix (GladeXML *self,  const char *name); 
     148     * This function is used to get a list of pointers to the GtkWidget(s) 
     149     * with names that start with the string name in the interface description. 
     150     * You would use this if you have to do something to all of these widgets 
     151     * after loading. 
     152     * Params: 
     153     *  self = the GladeXML object. 
     154     *  name = the name of the widget. 
     155     * Returns: 
     156     *  A list of the widget that match name as the start of their 
     157     *  name, or NULL if none exists. 
     158     */ 
     159    public Widget[] getWidgetPrefix(char[] name) 
     160    { 
     161        // GList* glade_xml_get_widget_prefix (GladeXML *self,  const char *name); 
    169162        Widget[] ret; 
    170163        ListG widgets = new ListG( glade_xml_get_widget_prefix(gladeXML, Str.toStringz(name)) ); 
    171         for (int i=0;i < widgets.length; i++) { 
     164        for (int i=0;i < widgets.length; i++) 
     165        { 
    172166            ret ~= newFromWidget( cast(void *)widgets.nthData(i) ); 
    173167        } 
    174                 return widgets.length ? ret : null; 
    175         } 
    176  
    177  
    178     /** 
    179      * Utilitiy method to create objects that are castable. 
    180      *  
    181      */ 
     168        return widgets.length ? ret : null; 
     169    } 
     170 
     171 
    182172    private import gobject.Type; 
    183173    private import gtk.Container; 
     
    296286    private import gtk.Progress; 
    297287    private import gtk.ProgressBar; 
    298   
     288 
     289    /** 
     290     * Utilitiy method to create objects that are castable. 
     291     *  
     292     */ 
    299293    Widget newFromWidget(void * ptr)  
    300294    { 
     
    431425    } 
    432426 
    433       
    434      
    435      
    436      
    437  
    438  
    439427 
    440428code: end 
  • trunk/wrap/APILookupGtk.txt

    r322 r331  
    187187     *      delegate() =    the delegate to be executed 
    188188     *      fireNow =   When true the delegate will be executed emmidiatly 
    189      * Returns:  
    190189     */ 
    191190    this(uint interval, bool delegate() dlg, bool fireNow=false) 
     
    202201    } 
    203202 
     203    /** */ 
    204204    public void stop() 
    205205    { 
     
    213213    /** 
    214214     * Removes the timeout from gtk 
    215      * Returns:  
    216215     */ 
    217216    ~this() 
     
    223222     * Adds a new delegate to this timeout cycle 
    224223     * Params: 
    225      *      delegate() =   
     224     *      dlg =      
    226225     *      fireNow =    
    227226     */ 
     
    288287     * Creates a new idle cycle. 
    289288     * Params: 
    290      *      interval =  the idle in milieconds 
    291      *      delegate() =    the delegate to be executed 
    292      *      fireNow =   When true the delegate will be executed emmidiatly 
    293      * Returns:  
     289     *      interval = the idle in milieconds 
     290     *      dlg = the delegate to be executed 
     291     *      fireNow = When true the delegate will be executed emmidiatly 
    294292     */ 
    295293    this(bool delegate() dlg, bool fireNow=false) 
     
    306304    } 
    307305 
     306    /** */ 
    308307    public void stop() 
    309308    { 
     
    317316    /** 
    318317     * Removes the idle from gtk 
    319      * Returns:  
    320318     */ 
    321319    ~this() 
     
    327325     * Adds a new delegate to this idle cycle 
    328326     * Params: 
    329      *      delegate() =   
     327     *      dlg =      
    330328     *      fireNow =    
    331329     */ 
     
    723721 
    724722code: start 
    725  
     723    /** */ 
    726724    public Widget addButton(StockID stockID, int responseId) 
    727725    { 
     
    729727    } 
    730728     
    731  
     729    /** */ 
    732730    public void addButtons(char[][] buttonsText, ResponseType[] responses) 
    733731    { 
     
    738736    } 
    739737     
     738    /** */ 
    740739    public void addButtons(StockID[] stockIDs, ResponseType[] responses) 
    741740    { 
     
    777776     * signal is emitted with response IDs from GtkResponseType. See 
    778777     * GtkDialog for more details. 
    779      * parent: 
    780      *  transient parent, or NULL for none 
    781      * flags: 
    782      *  flags 
    783      * type: 
    784      *  type of message 
    785      * buttons: 
    786      *  set of buttons to use 
    787      * message_format: 
    788      *  printf()-style format string, or NULL 
    789      * message: 
    790      *  the message - should be null, any formatting should be done prior to call this constructor 
     778     * Params: 
     779     *      parent = transient parent, or NULL for none 
     780     *      flags = flags 
     781     *      type = type of message 
     782     *      buttons= set of buttons to use 
     783     *      messageFormat = printf()-style format string, or NULL 
     784     *      message = the message - should be null, any formatting should be done prior to call this constructor 
    791785     *  arguments for message_format 
    792786     * Returns: 
     
    814808     * as the format (it might contain '%' characters) or as a string 
    815809     * argument. 
     810     * Since 2.4 
     811     * Examples: 
     812     * -------------------- 
    816813     *  GtkWidget *dialog; 
    817814     *  dialog = gtk_message_dialog_new (main_application_window, 
     
    822819     *  gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog), 
    823820     *  markup); 
    824      * parent: 
    825      *  transient parent, or NULL for none 
    826      * flags: 
    827      *  flags 
    828      * type: 
    829      *  type of message 
    830      * buttons: 
    831      *  set of buttons to use 
    832      * message_format: 
    833      *  printf()-style format string, or NULL 
    834      * message: 
    835      *  the message - should be null, any formatting should be done prior to call this constructor 
    836      * ...: 
    837      *  arguments for message_format 
    838      * Returns: 
    839      *  a new GtkMessageDialog 
    840      * Since 2.4 
     821     * -------------------- 
     822     * Params: 
     823     *  parent = transient parent, or NULL for none 
     824     *  flags = flags 
     825     *  type = type of message 
     826     *  buttons = set of buttons to use 
     827     *  messageFormat = printf()-style format string, or NULL 
     828     *  message = the message - should be null, any formatting should be done prior to call this constructor 
    841829     */ 
    842830    public this (Window parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, bool markup, char[] messageFormat, char[] message=null ) 
     
    886874    /** 
    887875     * Create an information popup dialog. 
    888      * @param message The message to show on the dialog 
    889      * @param title The title of the dialog 
     876     * Params: 
     877     *  message = The message to show on the dialog 
     878     *  title = The title of the dialog 
    890879     */ 
    891880    public static void information(char[] message, char[] title) 
     
    896885    /** 
    897886     * Create an information popup dialog. 
    898      * @param parent The parent window of this popup dialog 
    899      * @param message The message to show on the dialog 
    900      * @param title The title of the dialog 
     887     * Params: 
     888     *  parent = The parent window of this popup dialog 
     889     *  message = The message to show on the dialog 
     890     *  title = The title of the dialog 
    901891     */ 
    902892    public static void information(Window parent, char[] message, char[] title) 
     
    915905    /** 
    916906     * Create an error popup dialog. 
    917      * @param message The message to show on the dialog 
    918      * @param title The title of the dialog 
     907     * Params: 
     908     *  message = The message to show on the dialog 
     909     *  title = The title of the dialog 
    919910     */ 
    920911    public static void error(char[] message, char[] title) 
     
    925916    /** 
    926917     * Create an error popup dialog. 
    927      * @param parent The parent window of this popup dialog 
    928      * @param message The message to show on the dialog 
    929      * @param title The title of the dialog 
     918     * Params: 
     919     *  parent = The parent window of this popup dialog 
     920     *  message = The message to show on the dialog 
     921     *  title = The title of the dialog 
    930922     */ 
    931923    public static void error(Window parent, char[] message, char[] title) 
     
    945937    /** 
    946938     * Create an 'yes' or 'no' popup dialog. 
    947      * @param message The message to show on the dialog 
    948      * @param title The title of the dialog 
     939     * Params: 
     940     *  message = The message to show on the dialog 
     941     *  title = The title of the dialog 
    949942     */ 
    950943    public static bool yesNo(char[] message, char[] title) 
     
    955948    /** 
    956949     * Create an 'yes' or 'no' popup dialog. 
    957      * @param parent The parent window of this popup dialog 
    958      * @param message The message to show on the dialog 
    959      * @param title The title of the dialog 
     950     * Params: 
     951     *  parent = The parent window of this popup dialog 
     952     *  message = The message to show on the dialog 
     953     *  title = The title of the dialog 
    960954     */ 
    961955    public static bool yesNo(Window parent, char[] message, char[] title) 
     
    977971    /** 
    978972     * Create an 'yes', 'no' or 'cancel' popup dialog. 
    979      * @param message The message to show on the dialog 
    980      * @param title The title of the dialog 
     973     * Params: 
     974     *  message = The message to show on the dialog 
     975     *  title = The title of the dialog 
    981976     */ 
    982977    public static ResponseType yesNoCancel(char[] message, char[] title) 
     
    987982    /** 
    988983     * Create an 'yes', 'no' or 'cancel' popup dialog. 
    989      * @param parent The parent window of this popup dialog 
    990      * @param message The message to show on the dialog 
    991      * @param title The title of the dialog 
     984     * Params: 
     985     *  parent = The parent window of this popup dialog 
     986     *  message = The message to show on the dialog 
     987     *  title = The title of the dialog 
    992988     */ 
    993989    public static ResponseType yesNoCancel(Window parent, char[] message, char[] title) 
     
    10371033     * Creates a top level window with a title 
    10381034     * Params: 
    1039      *      title: The Window title 
     1035     *      title = The Window title 
    10401036     */ 
    10411037    public this(char[] title) 
     
    10911087    /** 
    10921088     * Executed when the user tries to close the window 
    1093      * @return true to refuse to close the window 
     1089     * Returns: true to refuse to close the window 
    10941090     */ 
    10951091    protected int windowDelete(Event event, Widget widget) 
     
    11071103    /** 
    11081104     * Allows the application to close and decide if it can exit 
    1109      * @param code the code reason to exit 
    1110      * @param force if true the application must expect to be closed even against it's will 
    1111      * @return false to refuse to exit 
     1105     * Params: 
     1106     *  code = the code reason to exit 
     1107     *  force = if true the application must expect to be closed even against it's will 
     1108     * Returns: false to refuse to exit 
    11121109     */ 
    11131110    protected bool exit(int code, bool force) 
     
    12121209     * You can register your own stock icon names, see 
    12131210     * gtk_icon_factory_add_default() and gtk_icon_factory_add(). 
    1214      * stock_id: 
    1215      *  a stock icon name 
    1216      * size: 
    1217      *  a stock icon size 
     1211     * Params: 
     1212     *  StockID = a stock icon name 
     1213     *  size = a stock icon size 
    12181214     * Returns: 
    12191215     *  a new GtkImage displaying the stock icon 
     
    12291225     * If the icon name isn't known, a "broken image" icon will be 
    12301226     * displayed instead. If the current icon theme is changed, the icon 
    1231      * will be updated appropriately. 
    1232      * icon_name: 
    1233      *  an icon name 
    1234      * size: 
    1235      *  a stock icon size 
     1227     * will be updated appropriately. Since 2.6 
     1228     * Params: 
     1229     *  iconName = an icon name 
     1230     *  size = a stock icon size 
    12361231     * Returns: 
    12371