Changeset 331
- Timestamp:
- 12/28/07 13:37:21 (1 year ago)
- Files:
-
- trunk/wrap/APILookup.txt (modified) (1 diff)
- trunk/wrap/APILookupCairo.txt (modified) (6 diffs)
- trunk/wrap/APILookupGLd.txt (modified) (1 diff)
- trunk/wrap/APILookupGLib.txt (modified) (11 diffs)
- trunk/wrap/APILookupGda.txt (modified) (7 diffs)
- trunk/wrap/APILookupGdk.txt (modified) (22 diffs)
- trunk/wrap/APILookupGdkPixbuf.txt (modified) (1 diff)
- trunk/wrap/APILookupGlade.txt (modified) (5 diffs)
- trunk/wrap/APILookupGtk.txt (modified) (170 diffs)
- trunk/wrap/utils/GtkDClass.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wrap/APILookup.txt
r322 r331 133 133 package: gthread gthread 134 134 package: gobject gobject 135 package: cairo cairo Lib135 package: cairo cairo 136 136 package: pango pango 137 137 package: atk atk trunk/wrap/APILookupCairo.txt
r322 r331 79 79 file: cairo-cairo-t.html 80 80 struct: cairo_t 81 class: C airo81 class: Context 82 82 prefix: cairo_ 83 83 structWrap: cairo_surface_t* Surface 84 structWrap: cairo_t* C airo85 import: cairo Lib.Surface84 structWrap: cairo_t* Context 85 import: cairo.Surface 86 86 import: glib.Str 87 87 import: gdk.Region … … 98 98 /** 99 99 * Creates a Cairo context for drawing to drawable. 100 * drawable: 101 * a GdkDrawable 100 * Since 2.8 101 * Params: 102 * drawable = a GdkDrawable 102 103 * Returns: 103 104 * A newly created Cairo context. Free with 104 105 * cairo_destroy() when you are done drawing. 105 * Since 2.8106 106 */ 107 107 this (Drawable drawable) … … 113 113 /** 114 114 * 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 120 118 */ 121 119 public void setSourceColor(Color color) 122 120 { 123 121 // void gdk_cairo_set_source_color (cairo_t *cr, GdkColor *color); 124 gdk_cairo_set_source_color(getC airoStruct(), color.getColorStruct());122 gdk_cairo_set_source_color(getContextStruct(), color.getColorStruct()); 125 123 } 126 124 … … 128 126 * Sets the given pixbuf as the source pattern for the Cairo context. 129 127 * 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 140 134 */ 141 135 public void setSourcePixbuf(Pixbuf pixbuf, double pixbufX, double pixbufY) 142 136 { 143 137 // void gdk_cairo_set_source_pixbuf (cairo_t *cr, GdkPixbuf *pixbuf, double pixbuf_x, double pixbuf_y); 144 gdk_cairo_set_source_pixbuf(getC airoStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY);138 gdk_cairo_set_source_pixbuf(getContextStruct(), pixbuf.getPixbufStruct(), pixbufX, pixbufY); 145 139 } 146 140 … … 148 142 * Sets the given pixmap as the source pattern for the Cairo context. 149 143 * 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 159 145 * 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 160 150 */ 161 151 public void setSourcePixmap(Pixmap pixmap, double pixmapX, double pixmapY) 162 152 { 163 153 // void gdk_cairo_set_source_pixmap (cairo_t *cr, GdkPixmap *pixmap, double pixmap_x, double pixmap_y); 164 gdk_cairo_set_source_pixmap( getC airoStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY);154 gdk_cairo_set_source_pixmap( getContextStruct(), pixmap.getPixmapStruct(), pixmapX, pixmapY); 165 155 } 166 156 167 157 /** 168 158 * 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 174 162 */ 175 163 public void rectangle(Rectangle rectangle) 176 164 { 177 165 // void gdk_cairo_rectangle (cairo_t *cr, GdkRectangle *rectangle); 178 gdk_cairo_rectangle( getC airoStruct(), rectangle.getRectangleStruct());166 gdk_cairo_rectangle( getContextStruct(), rectangle.getRectangleStruct()); 179 167 } 180 168 181 169 /** 182 170 * 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) 190 176 { 191 177 // void gdk_cairo_region (cairo_t *cr, GdkRegion *region); 192 gdk_cairo_region(getC airoStruct(), region.getRegionStruct());178 gdk_cairo_region(getContextStruct(), region.getRegionStruct()); 193 179 } 194 180 … … 196 182 code: end 197 183 198 openFile: C airo184 openFile: Context 199 185 200 186 file: cairo-Paths.html 201 mergeFile: C airo187 mergeFile: Context 202 188 203 189 file: cairo-Transformations.html 204 mergeFile: C airo190 mergeFile: Context 205 191 206 192 file: cairo-Text.html 207 closeFile: C airo193 closeFile: Context 208 194 209 195 trunk/wrap/APILookupGLd.txt
r322 r331 97 97 * Creates a mew OpenGL frame buffer configuration that match the specified display mode, 98 98 * 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. 100 102 */ 101 103 this(GLConfigMode mode, GLConfigMode fallback) trunk/wrap/APILookupGLib.txt
r322 r331 160 160 /** 161 161 * Increases the reference count on a GMainLoop object by one. 162 * loop:163 * a GMainLoop162 * Params: 163 * loop = a GMainLoop 164 164 * Returns: 165 165 * loop … … 462 462 } 463 463 464 /** */ 464 465 public static char** toStringzArray(char[][] args) 465 466 { … … 479 480 } 480 481 482 /** */ 481 483 public static char[][] toStringArray(char** args) 482 484 { … … 499 501 } 500 502 503 /** */ 501 504 public static char[] toString(bool b) 502 505 { … … 504 507 } 505 508 509 /** */ 506 510 public static char[] toString(char c) 507 511 { … … 512 516 } 513 517 518 /** */ 514 519 public static char[] toString(ubyte ub) { return toString(cast(uint) ub); } /// ditto 520 /** */ 515 521 public static char[] toString(ushort us) { return toString(cast(uint) us); } /// ditto 516 522 523 /** */ 517 524 public static char[] toString(uint u) 518 525 { char[uint.sizeof * 3] buffer = void; … … 540 547 } 541 548 549 /** */ 542 550 public static char[] toString(ulong u) 543 551 { char[ulong.sizeof * 3] buffer; … … 561 569 } 562 570 571 /** */ 563 572 public static char[] toString(byte b) { return toString(cast(int) b); } /// ditto 573 /** */ 564 574 public static char[] toString(short s) { return toString(cast(int) s); } /// ditto 565 575 576 /** */ 566 577 public static char[] toString(int i) 567 578 { char[1 + int.sizeof * 3] buffer; … … 753 764 * Adds a delegate to be notified on the end of the child process. 754 765 * Params: 755 * delegate(int =756 766 * dlg = 757 767 */ … … 1137 1147 1138 1148 code: start 1139 1149 /** */ 1140 1150 void* data() 1141 1151 { … … 1143 1153 return cast(void *)(*pt); 1144 1154 } 1145 1146 1147 1148 1155 code: end 1149 1156 trunk/wrap/APILookupGda.txt
r322 r331 115 115 /** 116 116 * 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(). 123 121 */ 124 122 public static void init(char[] appId, char[] versio, char[][] args) … … 178 176 * the options parameter. 179 177 * 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). 190 183 * Returns : 191 184 * the opened connection if successful, NULL if there is 192 * an error.185 * an error. 193 186 */ 194 187 public Connection openConnection(char[] dsn, char[] username, char[] password, GdaConnectionOptions options) … … 251 244 import: std.string 252 245 code: start 246 /** */ 253 247 this (ListG glist) { 254 248 this.gdaDataSourceInfo = cast(GdaDataSourceInfo *) glist.data; 255 249 } 250 /** */ 256 251 char[] name() { return std.string.toString(this.gdaDataSourceInfo.name); } 252 /** */ 257 253 char[] provider() { return std.string.toString(this.gdaDataSourceInfo.provider); } 254 /** */ 258 255 char[] cncString() { return std.string.toString(this.gdaDataSourceInfo.cncString); } 256 /** */ 259 257 char[] description() { return std.string.toString(this.gdaDataSourceInfo.description); } 258 /** */ 260 259 char[] username() { return std.string.toString(this.gdaDataSourceInfo.username); } 260 /** */ 261 261 char[] password() { return std.string.toString(this.gdaDataSourceInfo.password); } 262 262 … … 278 278 import: std.string 279 279 code: start 280 /** */ 280 281 this (ListG glist) { 281 282 this.gdaProviderInfo = cast(GdaProviderInfo *) glist.data; 282 283 } 284 /** */ 283 285 char[] id() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).id); } 286 /** */ 284 287 char[] location() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).location); } 288 /** */ 285 289 char[] description() { return std.string.toString((cast(_GdaProviderInfo*)this.gdaProviderInfo).description); } 290 /** */ 286 291 ListG gda_params() { return new ListG((cast(_GdaProviderInfo*)this.gdaProviderInfo).gda_params); } 287 288 289 292 code: end 290 293 … … 343 346 344 347 code: start 348 /** */ 345 349 this (ListG glist) { 346 350 this.gdaDataModel = cast(GdaDataModel *) glist.data; 347 351 } 348 349 352 code: end 350 353 outFile: DataModel … … 359 362 360 363 code: start 364 /** */ 361 365 this (ListG glist) { 362 366 this.gdaError = cast(GdaError *) glist.data; 363 367 } 364 365 368 code: end 366 369 outFile: Error … … 524 527 525 528 code: start 529 /** */ 526 530 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 } 531 535 code: end 532 536 533 537 534 538 outFile: Value 535 trunk/wrap/APILookupGdk.txt
r322 r331 129 129 class: Screen 130 130 prefix: gdk_screen_ 131 import: gtkc.cairo Libtypes131 import: gtkc.cairotypes 132 132 import: glib.Str 133 133 import: gdk.Screen … … 278 278 /** 279 279 * 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 286 283 * automatically, connecting the last point to the first point if 287 284 * necessary. 288 * points: 289 * an array of GdkPoint structures specifying the points making 285 * points = an array of GdkPoint structures specifying the points making 290 286 * up the polygon. 291 287 */ … … 295 291 gdk_draw_polygon(gdkDrawable, gc.getGCStruct(), filled, points.ptr, points.length); 296 292 } 297 293 294 /** */ 298 295 public void drawPixbuf(Pixbuf pixbuf, int destX, int destY) 299 296 { 300 297 drawPixbuf(null, pixbuf, destX, destY); 301 298 } 299 300 /** */ 302 301 public void drawPixbuf(GC gc, Pixbuf pixbuf, int destX, int destY) 303 302 { … … 311 310 0, 0); 312 311 } 313 314 315 316 317 312 code: end 318 313 … … 455 450 * converts the resulting image to a GdkPixbuf, so the 456 451 * 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. 475 461 * Returns: 476 462 * 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 error463 * pixbuf with a reference count of 1 if no destination pixbuf was specified, or NULL on error 478 464 */ 479 465 public Pixbuf getFromDrawable(Drawable src, Colormap cmap, int srcX, int srcY, int destX, int destY, int width, int height) … … 588 574 } 589 575 576 /** */ 590 577 this(ubyte red, ubyte green, ubyte blue) 591 578 { … … 596 583 /** 597 584 * Creates a new Color with RGB values 598 * @param red 599 * @param green 600 * @param blue 585 * Params: 586 * red = 587 * green = 588 * blue = 601 589 */ 602 590 this(guint16 red, guint16 green, guint16 blue) … … 607 595 } 608 596 597 /** */ 609 598 this(uint rgb) 610 599 { … … 614 603 } 615 604 605 /** */ 616 606 this(int rgb) 617 607 { … … 621 611 } 622 612 613 /** */ 623 614 static Color black() 624 615 { … … 629 620 return _black; 630 621 } 622 623 /** */ 631 624 static Color white() 632 625 { … … 640 633 /** 641 634 * Sets the Color with RGB values 642 * @param red 643 * @param green 644 * @param blue 635 * Params: 636 * red = 637 * green = 638 * blue = 645 639 */ 646 640 void set(guint16 red, guint16 green, guint16 blue) … … 656 650 } 657 651 652 /** */ 658 653 void set8(ubyte red, ubyte green, ubyte blue) 659 654 { … … 667 662 } 668 663 664 /** */ 669 665 uint getValue() 670 666 { … … 672 668 } 673 669 670 /** */ 674 671 int getValue24() 675 672 { … … 677 674 } 678 675 676 /** */ 679 677 uint getPixelValue() 680 678 { … … 795 793 796 794 code: start 795 /** */ 797 796 public static bool isDoubleClick(GdkEventButton* eventButton, int buttonNumber=1) 798 797 { … … 801 800 } 802 801 802 /** */ 803 803 public static bool isTrippleClick(GdkEventButton* eventButton, int buttonNumber=1) 804 804 { … … 806 806 && eventButton.type == EventType.TRIPPLE_BUTTON_PRESS; 807 807 } 808 809 808 code: end 810 809 … … 969 968 970 969 prefix: gdk_cairo_ 971 import: cairo Lib.Cairo972 structWrap: cairo_t* C airo970 import: cairo.Context 971 structWrap: cairo_t* Context 973 972 structWrap: GdkDrawable* Drawable 974 973 structWrap: GdkColor* Color … … 991 990 * 992 991 * It is here just to tell you to look at 993 * cairo Lib.Cairoclass for the methods that where here..992 * cairo.Context class for the methods that where here.. 994 993 */ 995 994 … … 997 996 code: end 998 997 outFile: GdkCairo 999 1000 1001 trunk/wrap/APILookupGdkPixbuf.txt
r322 r331 183 183 * that can't be reliably identified by looking at the data, or if 184 184 * 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 189 188 * Returns: 190 189 * A newly-created pixbuf loader. trunk/wrap/APILookupGlade.txt
r322 r331 105 105 106 106 code: start 107 /**107 /** 108 108 * This function is used to get a pointer to the GtkWidget corresponding to 109 109 * name in the interface description. You would use this if you have to do 110 110 * 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. 115 113 * Returns: 116 114 * the widget matching name, or NULL if none exists. … … 134 132 * window it is embedded in. Note also that the XML parse tree is cached 135 133 * 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) 144 138 */ 145 139 public this (char[] fname, char[] root = null, char[] domain=null) … … 152 146 153 147 /** 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); 169 162 Widget[] ret; 170 163 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 { 172 166 ret ~= newFromWidget( cast(void *)widgets.nthData(i) ); 173 167 } 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 182 172 private import gobject.Type; 183 173 private import gtk.Container; … … 296 286 private import gtk.Progress; 297 287 private import gtk.ProgressBar; 298 288 289 /** 290 * Utilitiy method to create objects that are castable. 291 * 292 */ 299 293 Widget newFromWidget(void * ptr) 300 294 { … … 431 425 } 432 426 433 434 435 436 437 438 439 427 440 428 code: end trunk/wrap/APILookupGtk.txt
r322 r331 187 187 * delegate() = the delegate to be executed 188 188 * fireNow = When true the delegate will be executed emmidiatly 189 * Returns:190 189 */ 191 190 this(uint interval, bool delegate() dlg, bool fireNow=false) … … 202 201 } 203 202 203 /** */ 204 204 public void stop() 205 205 { … … 213 213 /** 214 214 * Removes the timeout from gtk 215 * Returns:216 215 */ 217 216 ~this() … … 223 222 * Adds a new delegate to this timeout cycle 224 223 * Params: 225 * d elegate()=224 * dlg = 226 225 * fireNow = 227 226 */ … … 288 287 * Creates a new idle cycle. 289 288 * 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 294 292 */ 295 293 this(bool delegate() dlg, bool fireNow=false) … … 306 304 } 307 305 306 /** */ 308 307 public void stop() 309 308 { … … 317 316 /** 318 317 * Removes the idle from gtk 319 * Returns:320 318 */ 321 319 ~this() … … 327 325 * Adds a new delegate to this idle cycle 328 326 * Params: 329 * d elegate()=327 * dlg = 330 328 * fireNow = 331 329 */ … … 723 721 724 722 code: start 725 723 /** */ 726 724 public Widget addButton(StockID stockID, int responseId) 727 725 { … … 729 727 } 730 728 731 729 /** */ 732 730 public void addButtons(char[][] buttonsText, ResponseType[] responses) 733 731 { … … 738 736 } 739 737 738 /** */ 740 739 public void addButtons(StockID[] stockIDs, ResponseType[] responses) 741 740 { … … 777 776 * signal is emitted with response IDs from GtkResponseType. See 778 777 * 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 791 785 * arguments for message_format 792 786 * Returns: … … 814 808 * as the format (it might contain '%' characters) or as a string 815 809 * argument. 810 * Since 2.4 811 * Examples: 812 * -------------------- 816 813 * GtkWidget *dialog; 817 814 * dialog = gtk_message_dialog_new (main_application_window, … … 822 819 * gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog), 823 820 * 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 841 829 */ 842 830 public this (Window parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, bool markup, char[] messageFormat, char[] message=null ) … … 886 874 /** 887 875 * 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 890 879 */ 891 880 public static void information(char[] message, char[] title) … … 896 885 /** 897 886 * 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 901 891 */ 902 892 public static void information(Window parent, char[] message, char[] title) … … 915 905 /** 916 906 * 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 919 910 */ 920 911 public static void error(char[] message, char[] title) … … 925 916 /** 926 917 * 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 930 922 */ 931 923 public static void error(Window parent, char[] message, char[] title) … … 945 937 /** 946 938 * 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 949 942 */ 950 943 public static bool yesNo(char[] message, char[] title) … … 955 948 /** 956 949 * 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 960 954 */ 961 955 public static bool yesNo(Window parent, char[] message, char[] title) … … 977 971 /** 978 972 * 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 981 976 */ 982 977 public static ResponseType yesNoCancel(char[] message, char[] title) … … 987 982 /** 988 983 * 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 992 988 */ 993 989 public static ResponseType yesNoCancel(Window parent, char[] message, char[] title) … … 1037 1033 * Creates a top level window with a title 1038 1034 * Params: 1039 * title :The Window title1035 * title = The Window title 1040 1036 */ 1041 1037 public this(char[] title) … … 1091 1087 /** 1092 1088 * Executed when the user tries to close the window 1093 * @returntrue to refuse to close the window1089 * Returns: true to refuse to close the window 1094 1090 */ 1095 1091 protected int windowDelete(Event event, Widget widget) … … 1107 1103 /** 1108 1104 * 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 1112 1109 */ 1113 1110 protected bool exit(int code, bool force) … … 1212 1209 * You can register your own stock icon names, see 1213 1210 * 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 1218 1214 * Returns: 1219 1215 * a new GtkImage displaying the stock icon … … 1229 1225 * If the icon name isn't known, a "broken image" icon will be 1230 1226 * 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 1236 1231 * Returns: 1237 1
