Ticket #1: ddoc-atk-gda-gdk-pixbuf-gld-glib.diff
| File ddoc-atk-gda-gdk-pixbuf-gld-glib.diff, 12.2 kB (added by Mike Wey, 1 year ago) |
|---|
-
gtkD/wrap/APILookupGda.txt
old new 114 114 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) 125 123 { … … 177 175 * specify GDA_CONNECTION_OPTIONS_DONT_SHARE as one of the flags in 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) 195 188 { … … 250 243 import: glib.ListG 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 263 263 code: end … … 277 277 import: glib.ListG 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 291 294 outFile: ProviderInfo … … 342 345 import: gda.Value 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 351 354 … … 358 361 import: glib.ListG 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 367 370 … … 523 526 nocode: gda_value_new_uinteger 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 -
gtkD/wrap/APILookupGdkPixbuf.txt
old new 182 182 * the image isn't the expected type, for loading image formats 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. 191 190 */ -
gtkD/wrap/APILookupGdk.txt
old new 277 277 code: start 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 */ 292 288 public void drawPolygon(GC gc, int filled, GdkPoint[] points) … … 294 290 // void gdk_draw_polygon (GdkDrawable *drawable, GdkGC *gc, gboolean filled, GdkPoint *points, gint npoints); 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 { 304 303 if ( pixbuf is null ) return; … … 310 309 GdkRgbDither.NORMAL, 311 310 0, 0); 312 311 } 313 314 315 316 317 312 code: end 318 313 319 314 outFile: Drawable … … 454 449 * This function calls gdk_drawable_get_image() internally and 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) 480 466 { … … 587 573 this(new GdkColor); 588 574 } 589 575 576 /** */ 590 577 this(ubyte red, ubyte green, ubyte blue) 591 578 { 592 579 this(); … … 595 582 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) 603 591 { … … 606 594 set(red,green,blue); 607 595 } 608 596 597 /** */ 609 598 this(uint rgb) 610 599 { 611 600 this(); … … 613 602 set( ((rgb&0xFFFF)),((rgb&0xFFFF00000000)>>32),(rgb&0xFFFF0000)>>16); 614 603 } 615 604 605 /** */ 616 606 this(int rgb) 617 607 { 618 608 this(); … … 620 610 set8( cast(byte)((rgb&0xFF0000)>>16),cast(byte)((rgb&0x00FF00)>>8),cast(byte)(rgb&0xFF)); 621 611 } 622 612 613 /** */ 623 614 static Color black() 624 615 { 625 616 if ( !_black ) … … 628 619 } 629 620 return _black; 630 621 } 622 623 /** */ 631 624 static Color white() 632 625 { 633 626 if ( !_white ) … … 639 632 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) 647 641 { … … 655 649 //printf("set pixel = %X\n", gdkColor.pixel); 656 650 } 657 651 652 /** */ 658 653 void set8(ubyte red, ubyte green, ubyte blue) 659 654 { 660 655 //printf("Color.set %X %X %X\n",red,green,blue); … … 666 661 //printf("set8 pixel = %X\n", gdkColor.pixel); 667 662 } 668 663 664 /** */ 669 665 uint getValue() 670 666 { 671 667 return (gdkColor.red <<32) | (gdkColor.green << 16) | (gdkColor.blue); 672 668 } 673 669 670 /** */ 674 671 int getValue24() 675 672 { 676 673 return ((gdkColor.red&0xFF00)<<8 ) | ((gdkColor.green&0xFF00)) | ((gdkColor.blue&0xFF00) >>8); 677 674 } 678 675 676 /** */ 679 677 uint getPixelValue() 680 678 { 681 679 return gdkColor.pixel; … … 794 792 structWrap: GValue* Value 795 793 796 794 code: start 795 /** */ 797 796 public static bool isDoubleClick(GdkEventButton* eventButton, int buttonNumber=1) 798 797 { 799 798 return eventButton.button==buttonNumber 800 799 && eventButton.type == EventType.DOUBLE_BUTTON_PRESS; 801 800 } 802 801 802 /** */ 803 803 public static bool isTrippleClick(GdkEventButton* eventButton, int buttonNumber=1) 804 804 { 805 805 return eventButton.button==buttonNumber 806 806 && eventButton.type == EventType.TRIPPLE_BUTTON_PRESS; 807 807 } 808 809 808 code: end 810 809 811 810 outFile: Event … … 996 995 997 996 code: end 998 997 outFile: GdkCairo 999 1000 1001 -
gtkD/wrap/APILookupGLd.txt
old new 96 96 /** 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) 102 104 { -
gtkD/wrap/APILookupGLib.txt
old new 159 159 code: start 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 166 166 */ … … 461 461 return copy.ptr; 462 462 } 463 463 464 /** */ 464 465 public static char** toStringzArray(char[][] args) 465 466 { 466 467 if ( args is null ) … … 478 479 return argv; 479 480 } 480 481 482 /** */ 481 483 public static char[][] toStringArray(char** args) 482 484 { 483 485 if ( args is null ) … … 498 500 return argv; 499 501 } 500 502 503 /** */ 501 504 public static char[] toString(bool b) 502 505 { 503 506 return b ? "true" : "false"; 504 507 } 505 508 509 /** */ 506 510 public static char[] toString(char c) 507 511 { 508 512 char[] result = new char[2]; … … 511 515 return result[0 .. 1]; 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; 519 526 int ndigits; … … 539 546 return result; 540 547 } 541 548 549 /** */ 542 550 public static char[] toString(ulong u) 543 551 { char[ulong.sizeof * 3] buffer; 544 552 int ndigits; … … 560 568 return result; 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; 568 579 char c; … … 752 763 /** 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 */ 758 768 public void addChildWatch(ChildWatch dlg) … … 1136 1146 structWrap: GList* ListG 1137 1147 1138 1148 code: start 1139 1149 /** */ 1140 1150 void* data() 1141 1151 { 1142 1152 int* pt =cast(int*)getStruct(); 1143 1153 return cast(void *)(*pt); 1144 1154 } 1145 1146 1147 1148 1155 code: end 1149 1156 1150 1157 outFile: ListG
