1 /* 2 * This file is part of gtkD. 3 * 4 * gtkD is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License 6 * as published by the Free Software Foundation; either version 3 7 * of the License, or (at your option) any later version, with 8 * some exceptions, please read the COPYING file. 9 * 10 * gtkD is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with gtkD; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA 18 */ 19 20 // generated automatically - do not change 21 // find conversion definition on APILookup.txt 22 // implement new conversion functionalities on the wrap.utils pakage 23 24 25 module gsvc.gsvtypes; 26 27 public import gtkc.gtktypes; 28 29 public enum GtkSourceBackgroundPatternType 30 { 31 /** 32 * no pattern 33 */ 34 NONE = 0, 35 /** 36 * grid pattern 37 */ 38 GRID = 1, 39 } 40 alias GtkSourceBackgroundPatternType BackgroundPatternType; 41 42 public enum GtkSourceBracketMatchType 43 { 44 /** 45 * there is no bracket to match. 46 */ 47 NONE = 0, 48 /** 49 * matching a bracket 50 * failed because the maximum range was reached. 51 */ 52 OUT_OF_RANGE = 1, 53 /** 54 * a matching bracket was not found. 55 */ 56 NOT_FOUND = 2, 57 /** 58 * a matching bracket was found. 59 */ 60 FOUND = 3, 61 } 62 alias GtkSourceBracketMatchType BracketMatchType; 63 64 public enum GtkSourceChangeCaseType 65 { 66 /** 67 * change case to lowercase. 68 */ 69 LOWER = 0, 70 /** 71 * change case to uppercase. 72 */ 73 UPPER = 1, 74 /** 75 * toggle case of each character. 76 */ 77 TOGGLE = 2, 78 /** 79 * capitalize each word. 80 */ 81 TITLE = 3, 82 } 83 alias GtkSourceChangeCaseType ChangeCaseType; 84 85 public enum GtkSourceCompletionActivation 86 { 87 /** 88 * None. 89 */ 90 NONE = 0, 91 /** 92 * Interactive activation. By 93 * default, it occurs on each insertion in the #GtkTextBuffer. This can be 94 * blocked temporarily with gtk_source_completion_block_interactive(). 95 */ 96 INTERACTIVE = 1, 97 /** 98 * User requested activation. 99 * By default, it occurs when the user presses 100 * <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>. 101 */ 102 USER_REQUESTED = 2, 103 } 104 alias GtkSourceCompletionActivation CompletionActivation; 105 106 /** 107 * An error code used with %GTK_SOURCE_COMPLETION_ERROR in a #GError returned 108 * from a completion-related function. 109 */ 110 public enum GtkSourceCompletionError 111 { 112 /** 113 * The #GtkSourceCompletionProvider 114 * is already bound to the #GtkSourceCompletion object. 115 */ 116 ALREADY_BOUND = 0, 117 /** 118 * The #GtkSourceCompletionProvider is 119 * not bound to the #GtkSourceCompletion object. 120 */ 121 NOT_BOUND = 1, 122 } 123 alias GtkSourceCompletionError CompletionError; 124 125 public enum GtkSourceCompressionType 126 { 127 /** 128 * plain text. 129 */ 130 NONE = 0, 131 /** 132 * gzip compression. 133 */ 134 GZIP = 1, 135 } 136 alias GtkSourceCompressionType CompressionType; 137 138 /** 139 * GtkSourceDrawSpacesFlags determine what kind of spaces whould be drawn. If none 140 * of GTK_SOURCE_DRAW_SPACES_LEADING, GTK_SOURCE_DRAW_SPACES_TEXT or 141 * GTK_SOURCE_DRAW_SPACES_TRAILING is specified, whitespaces at any position in 142 * the line will be drawn (i.e. it has the same effect as specifying all of them). 143 */ 144 public enum GtkSourceDrawSpacesFlags 145 { 146 /** 147 * whether the space character should be drawn. 148 */ 149 SPACE = 1, 150 /** 151 * whether the tab character should be drawn. 152 */ 153 TAB = 2, 154 /** 155 * whether the line breaks should be drawn. 156 */ 157 NEWLINE = 4, 158 /** 159 * whether the non-breaking whitespaces should be drawn. 160 */ 161 NBSP = 8, 162 /** 163 * whether leading whitespaces should be drawn. 164 */ 165 LEADING = 16, 166 /** 167 * whether whitespaces inside text should be drawn. 168 */ 169 TEXT = 32, 170 /** 171 * whether trailing whitespaces should be drawn. 172 */ 173 TRAILING = 64, 174 /** 175 * wheter all kind of spaces should be drawn. 176 */ 177 ALL = 127, 178 } 179 alias GtkSourceDrawSpacesFlags DrawSpacesFlags; 180 181 /** 182 * An error code used with the %GTK_SOURCE_FILE_LOADER_ERROR domain. 183 */ 184 public enum GtkSourceFileLoaderError 185 { 186 /** 187 * The file is too big. 188 */ 189 TOO_BIG = 0, 190 /** 191 * It is not 192 * possible to detect the encoding automatically. 193 */ 194 ENCODING_AUTO_DETECTION_FAILED = 1, 195 /** 196 * There was an encoding 197 * conversion error and it was needed to use a fallback character. 198 */ 199 CONVERSION_FALLBACK = 2, 200 } 201 alias GtkSourceFileLoaderError FileLoaderError; 202 203 /** 204 * An error code used with the %GTK_SOURCE_FILE_SAVER_ERROR domain. 205 * 206 * Since: 3.14 207 */ 208 public enum GtkSourceFileSaverError 209 { 210 /** 211 * The buffer contains invalid 212 * characters. 213 */ 214 INVALID_CHARS = 0, 215 /** 216 * The file is externally 217 * modified. 218 */ 219 EXTERNALLY_MODIFIED = 1, 220 } 221 alias GtkSourceFileSaverError FileSaverError; 222 223 /** 224 * Flags to define the behavior of a #GtkSourceFileSaver. 225 * 226 * Since: 3.14 227 */ 228 public enum GtkSourceFileSaverFlags 229 { 230 /** 231 * No flags. 232 */ 233 NONE = 0, 234 /** 235 * Ignore invalid characters. 236 */ 237 IGNORE_INVALID_CHARS = 1, 238 /** 239 * Save file despite external modifications. 240 */ 241 IGNORE_MODIFICATION_TIME = 2, 242 /** 243 * Create a backup before saving the file. 244 */ 245 CREATE_BACKUP = 4, 246 } 247 alias GtkSourceFileSaverFlags FileSaverFlags; 248 249 /** 250 * The alignment mode of the renderer, when a cell spans multiple lines (due to 251 * text wrapping). 252 */ 253 public enum GtkSourceGutterRendererAlignmentMode 254 { 255 /** 256 * The full cell. 257 */ 258 CELL = 0, 259 /** 260 * The first line. 261 */ 262 FIRST = 1, 263 /** 264 * The last line. 265 */ 266 LAST = 2, 267 } 268 alias GtkSourceGutterRendererAlignmentMode GutterRendererAlignmentMode; 269 270 public enum GtkSourceGutterRendererState 271 { 272 /** 273 * normal state 274 */ 275 NORMAL = 0, 276 /** 277 * area in the renderer represents the 278 * line on which the insert cursor is currently positioned 279 */ 280 CURSOR = 1, 281 /** 282 * the mouse pointer is currently 283 * over the activatable area of the renderer 284 */ 285 PRELIT = 2, 286 /** 287 * area in the renderer represents 288 * a line in the buffer which contains part of the selection 289 */ 290 SELECTED = 4, 291 } 292 alias GtkSourceGutterRendererState GutterRendererState; 293 294 public enum GtkSourceNewlineType 295 { 296 /** 297 * line feed, used on UNIX. 298 */ 299 LF = 0, 300 /** 301 * carriage return, used on Mac. 302 */ 303 CR = 1, 304 /** 305 * carriage return followed by a line feed, used 306 * on Windows. 307 */ 308 CR_LF = 2, 309 } 310 alias GtkSourceNewlineType NewlineType; 311 312 public enum GtkSourceSmartHomeEndType 313 { 314 /** 315 * smart-home-end disabled. 316 */ 317 DISABLED = 0, 318 /** 319 * move to the first/last 320 * non-whitespace character on the first press of the HOME/END keys and 321 * to the beginning/end of the line on the second press. 322 */ 323 BEFORE = 1, 324 /** 325 * move to the beginning/end of the 326 * line on the first press of the HOME/END keys and to the first/last 327 * non-whitespace character on the second press. 328 */ 329 AFTER = 2, 330 /** 331 * always move to the first/last 332 * non-whitespace character when the HOME/END keys are pressed. 333 */ 334 ALWAYS = 3, 335 } 336 alias GtkSourceSmartHomeEndType SmartHomeEndType; 337 338 public enum GtkSourceSortFlags 339 { 340 /** 341 * no flags specified 342 */ 343 NONE = 0, 344 /** 345 * case sensitive sort 346 */ 347 CASE_SENSITIVE = 1, 348 /** 349 * sort in reverse order 350 */ 351 REVERSE_ORDER = 2, 352 /** 353 * remove duplicates 354 */ 355 REMOVE_DUPLICATES = 4, 356 } 357 alias GtkSourceSortFlags SortFlags; 358 359 public enum GtkSourceViewGutterPosition 360 { 361 /** 362 * the gutter position of the lines 363 * renderer 364 */ 365 LINES = -30, 366 /** 367 * the gutter position of the marks 368 * renderer 369 */ 370 MARKS = -20, 371 } 372 alias GtkSourceViewGutterPosition ViewGutterPosition; 373 374 struct GtkSourceBuffer 375 { 376 GtkTextBuffer parentInstance; 377 GtkSourceBufferPrivate* priv; 378 } 379 380 struct GtkSourceBufferClass 381 { 382 GtkTextBufferClass parentClass; 383 extern(C) void function(GtkSourceBuffer* buffer) undo; 384 extern(C) void function(GtkSourceBuffer* buffer) redo; 385 extern(C) void function(GtkSourceBuffer* buffer, GtkTextIter* iter, GtkSourceBracketMatchType state) bracketMatched; 386 extern(C) void function() GtkSourceReserved1; 387 extern(C) void function() GtkSourceReserved2; 388 extern(C) void function() GtkSourceReserved3; 389 } 390 391 struct GtkSourceBufferPrivate; 392 393 struct GtkSourceCompletion 394 { 395 GObject parentInstance; 396 GtkSourceCompletionPrivate* priv; 397 } 398 399 struct GtkSourceCompletionClass 400 { 401 GObjectClass parentClass; 402 extern(C) int function(GtkSourceCompletion* completion, GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) proposalActivated; 403 extern(C) void function(GtkSourceCompletion* completion) show; 404 extern(C) void function(GtkSourceCompletion* completion) hide; 405 extern(C) void function(GtkSourceCompletion* completion, GtkSourceCompletionContext* context) populateContext; 406 extern(C) void function(GtkSourceCompletion* completion, GtkScrollStep step, int num) moveCursor; 407 extern(C) void function(GtkSourceCompletion* completion, GtkScrollStep step, int num) movePage; 408 extern(C) void function(GtkSourceCompletion* completion) activateProposal; 409 } 410 411 struct GtkSourceCompletionContext 412 { 413 GObject parent; 414 GtkSourceCompletionContextPrivate* priv; 415 } 416 417 struct GtkSourceCompletionContextClass 418 { 419 GObjectClass parentClass; 420 extern(C) void function(GtkSourceCompletionContext* context) cancelled; 421 extern(C) void function() GtkSourceReserved1; 422 extern(C) void function() GtkSourceReserved2; 423 extern(C) void function() GtkSourceReserved3; 424 } 425 426 struct GtkSourceCompletionContextPrivate; 427 428 struct GtkSourceCompletionInfo 429 { 430 GtkWindow parent; 431 GtkSourceCompletionInfoPrivate* priv; 432 } 433 434 struct GtkSourceCompletionInfoClass 435 { 436 GtkWindowClass parentClass; 437 extern(C) void function(GtkSourceCompletionInfo* info) beforeShow; 438 } 439 440 struct GtkSourceCompletionInfoPrivate; 441 442 struct GtkSourceCompletionItem 443 { 444 GObject parent; 445 GtkSourceCompletionItemPrivate* priv; 446 } 447 448 struct GtkSourceCompletionItemClass 449 { 450 GObjectClass parentClass; 451 } 452 453 struct GtkSourceCompletionItemPrivate; 454 455 struct GtkSourceCompletionPrivate; 456 457 struct GtkSourceCompletionProposal; 458 459 /** 460 * The virtual function table for #GtkSourceCompletionProposal. 461 */ 462 struct GtkSourceCompletionProposalIface 463 { 464 /** 465 * The parent interface. 466 */ 467 GTypeInterface parent; 468 /** 469 * 470 * Params: 471 * proposal = a #GtkSourceCompletionProposal. 472 * Return: a new string containing the label of @proposal. 473 */ 474 extern(C) char* function(GtkSourceCompletionProposal* proposal) getLabel; 475 /** 476 * 477 * Params: 478 * proposal = a #GtkSourceCompletionProposal. 479 * Return: a new string containing the label of @proposal with markup. 480 */ 481 extern(C) char* function(GtkSourceCompletionProposal* proposal) getMarkup; 482 /** 483 * 484 * Params: 485 * proposal = a #GtkSourceCompletionProposal. 486 * Return: a new string containing the text of @proposal. 487 */ 488 extern(C) char* function(GtkSourceCompletionProposal* proposal) getText; 489 /** 490 * 491 * Params: 492 * proposal = a #GtkSourceCompletionProposal. 493 * Return: A #GdkPixbuf with the icon of @proposal. 494 */ 495 extern(C) GdkPixbuf* function(GtkSourceCompletionProposal* proposal) getIcon; 496 /** 497 * 498 * Params: 499 * proposal = a #GtkSourceCompletionProposal. 500 * Return: The icon name of @proposal. 501 */ 502 extern(C) const(char)* function(GtkSourceCompletionProposal* proposal) getIconName; 503 /** 504 * 505 * Params: 506 * proposal = a #GtkSourceCompletionProposal. 507 * Return: A #GIcon with the icon of @proposal. 508 */ 509 extern(C) GIcon* function(GtkSourceCompletionProposal* proposal) getGicon; 510 /** 511 * 512 * Params: 513 * proposal = a #GtkSourceCompletionProposal. 514 * Return: a newly-allocated string containing 515 * extra information of @proposal or %NULL if no extra information is associated 516 * to @proposal. 517 */ 518 extern(C) char* function(GtkSourceCompletionProposal* proposal) getInfo; 519 /** 520 * 521 * Params: 522 * proposal = a #GtkSourceCompletionProposal. 523 * Return: The hash value of @proposal. 524 */ 525 extern(C) uint function(GtkSourceCompletionProposal* proposal) hash; 526 /** 527 * 528 * Params: 529 * proposal = a #GtkSourceCompletionProposal. 530 * other = a #GtkSourceCompletionProposal. 531 * Return: %TRUE if @proposal and @object are the same proposal 532 */ 533 extern(C) int function(GtkSourceCompletionProposal* proposal, GtkSourceCompletionProposal* other) equal; 534 extern(C) void function(GtkSourceCompletionProposal* proposal) changed; 535 } 536 537 struct GtkSourceCompletionProvider; 538 539 /** 540 * The virtual function table for #GtkSourceCompletionProvider. 541 */ 542 struct GtkSourceCompletionProviderIface 543 { 544 /** 545 * The parent interface. 546 */ 547 GTypeInterface gIface; 548 /** 549 * 550 * Params: 551 * provider = a #GtkSourceCompletionProvider. 552 * Return: a new string containing the name of the provider. 553 */ 554 extern(C) char* function(GtkSourceCompletionProvider* provider) getName; 555 /** 556 * 557 * Params: 558 * provider = The #GtkSourceCompletionProvider 559 * Return: The icon to be used for the provider, 560 * or %NULL if the provider does not have a special icon. 561 */ 562 extern(C) GdkPixbuf* function(GtkSourceCompletionProvider* provider) getIcon; 563 /** 564 * 565 * Params: 566 * provider = The #GtkSourceCompletionProvider 567 * Return: The icon name to be used for the provider, 568 * or %NULL if the provider does not have a special icon. 569 */ 570 extern(C) const(char)* function(GtkSourceCompletionProvider* provider) getIconName; 571 /** 572 * 573 * Params: 574 * provider = The #GtkSourceCompletionProvider 575 * Return: The icon to be used for the provider, 576 * or %NULL if the provider does not have a special icon. 577 */ 578 extern(C) GIcon* function(GtkSourceCompletionProvider* provider) getGicon; 579 extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) populate; 580 /** 581 * 582 * Params: 583 * provider = a #GtkSourceCompletionProvider. 584 * context = a #GtkSourceCompletionContext. 585 * Return: %TRUE if @provider matches the completion context, %FALSE otherwise. 586 */ 587 extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) match; 588 /** 589 * 590 * Params: 591 * provider = a #GtkSourceCompletionProvider. 592 * Return: a combination of #GtkSourceCompletionActivation. 593 */ 594 extern(C) GtkSourceCompletionActivation function(GtkSourceCompletionProvider* provider) getActivation; 595 /** 596 * 597 * Params: 598 * provider = a #GtkSourceCompletionProvider. 599 * proposal = a currently selected #GtkSourceCompletionProposal. 600 * Return: a custom #GtkWidget to show extra 601 * information about @proposal, or %NULL if the provider does not have a special 602 * info widget. 603 */ 604 extern(C) GtkWidget* function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) getInfoWidget; 605 extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkSourceCompletionInfo* info) updateInfo; 606 /** 607 * 608 * Params: 609 * provider = a #GtkSourceCompletionProvider. 610 * context = a #GtkSourceCompletionContext. 611 * proposal = a #GtkSourceCompletionProposal. 612 * iter = a #GtkTextIter. 613 * Return: %TRUE if @iter was set for @proposal, %FALSE otherwise. 614 */ 615 extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) getStartIter; 616 /** 617 * 618 * Params: 619 * provider = a #GtkSourceCompletionProvider. 620 * proposal = a #GtkSourceCompletionProposal. 621 * iter = a #GtkTextIter. 622 * Return: %TRUE to indicate that the proposal activation has been handled, 623 * %FALSE otherwise. 624 */ 625 extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) activateProposal; 626 /** 627 * 628 * Params: 629 * provider = a #GtkSourceCompletionProvider. 630 * Return: the interactive delay in milliseconds. 631 */ 632 extern(C) int function(GtkSourceCompletionProvider* provider) getInteractiveDelay; 633 /** 634 * 635 * Params: 636 * provider = a #GtkSourceCompletionProvider. 637 * Return: the provider priority. 638 */ 639 extern(C) int function(GtkSourceCompletionProvider* provider) getPriority; 640 } 641 642 struct GtkSourceCompletionWords 643 { 644 GObject parent; 645 GtkSourceCompletionWordsPrivate* priv; 646 } 647 648 struct GtkSourceCompletionWordsClass 649 { 650 GObjectClass parentClass; 651 } 652 653 struct GtkSourceCompletionWordsPrivate; 654 655 struct GtkSourceEncoding; 656 657 struct GtkSourceFile 658 { 659 GObject parent; 660 GtkSourceFilePrivate* priv; 661 } 662 663 struct GtkSourceFileClass 664 { 665 GObjectClass parentClass; 666 void*[10] padding; 667 } 668 669 struct GtkSourceFileLoader 670 { 671 GObject parent; 672 GtkSourceFileLoaderPrivate* priv; 673 } 674 675 struct GtkSourceFileLoaderClass 676 { 677 GObjectClass parentClass; 678 void*[10] padding; 679 } 680 681 struct GtkSourceFileLoaderPrivate; 682 683 struct GtkSourceFilePrivate; 684 685 struct GtkSourceFileSaver 686 { 687 GObject object; 688 GtkSourceFileSaverPrivate* priv; 689 } 690 691 struct GtkSourceFileSaverClass 692 { 693 GObjectClass parentClass; 694 void*[10] padding; 695 } 696 697 struct GtkSourceFileSaverPrivate; 698 699 struct GtkSourceGutter 700 { 701 GObject parent; 702 GtkSourceGutterPrivate* priv; 703 } 704 705 struct GtkSourceGutterClass 706 { 707 GObjectClass parentClass; 708 } 709 710 struct GtkSourceGutterPrivate; 711 712 struct GtkSourceGutterRenderer 713 { 714 GObject parent; 715 GtkSourceGutterRendererPrivate* priv; 716 } 717 718 struct GtkSourceGutterRendererClass 719 { 720 GObjectClass parentClass; 721 extern(C) void function(GtkSourceGutterRenderer* renderer, cairo_t* cr, GdkRectangle* backgroundArea, GdkRectangle* cellArea, GtkTextIter* start, GtkTextIter* end) begin; 722 extern(C) void function(GtkSourceGutterRenderer* renderer, cairo_t* cr, GdkRectangle* backgroundArea, GdkRectangle* cellArea, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state) draw; 723 extern(C) void function(GtkSourceGutterRenderer* renderer) end; 724 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextView* oldView) changeView; 725 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextBuffer* oldBuffer) changeBuffer; 726 /** 727 * 728 * Params: 729 * renderer = a #GtkSourceGutterRenderer 730 * iter = a #GtkTextIter at the start of the line to be activated 731 * area = a #GdkRectangle of the cell area to be activated 732 * event = the event that triggered the query 733 * Return: %TRUE if the renderer can be activated, %FALSE otherwise 734 */ 735 extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event) queryActivatable; 736 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event) activate; 737 extern(C) void function(GtkSourceGutterRenderer* renderer) queueDraw; 738 /** 739 * 740 * Params: 741 * renderer = a #GtkSourceGutterRenderer. 742 * iter = a #GtkTextIter. 743 * area = a #GdkRectangle. 744 * x = The x position of the tooltip. 745 * y = The y position of the tooltip. 746 * tooltip = a #GtkTooltip. 747 * Return: %TRUE if the tooltip has been set, %FALSE otherwise 748 */ 749 extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, int x, int y, GtkTooltip* tooltip) queryTooltip; 750 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state) queryData; 751 } 752 753 struct GtkSourceGutterRendererPixbuf 754 { 755 GtkSourceGutterRenderer parent; 756 GtkSourceGutterRendererPixbufPrivate* priv; 757 } 758 759 struct GtkSourceGutterRendererPixbufClass 760 { 761 GtkSourceGutterRendererClass parentClass; 762 } 763 764 struct GtkSourceGutterRendererPixbufPrivate; 765 766 struct GtkSourceGutterRendererPrivate; 767 768 struct GtkSourceGutterRendererText 769 { 770 GtkSourceGutterRenderer parent; 771 GtkSourceGutterRendererTextPrivate* priv; 772 } 773 774 struct GtkSourceGutterRendererTextClass 775 { 776 GtkSourceGutterRendererClass parentClass; 777 } 778 779 struct GtkSourceGutterRendererTextPrivate; 780 781 struct GtkSourceLanguage 782 { 783 GObject parentInstance; 784 GtkSourceLanguagePrivate* priv; 785 } 786 787 struct GtkSourceLanguageClass 788 { 789 GObjectClass parentClass; 790 extern(C) void function() GtkSourceReserved1; 791 extern(C) void function() GtkSourceReserved2; 792 } 793 794 struct GtkSourceLanguageManager 795 { 796 GObject parentInstance; 797 GtkSourceLanguageManagerPrivate* priv; 798 } 799 800 struct GtkSourceLanguageManagerClass 801 { 802 GObjectClass parentClass; 803 extern(C) void function() GtkSourceReserved1; 804 extern(C) void function() GtkSourceReserved2; 805 extern(C) void function() GtkSourceReserved3; 806 extern(C) void function() GtkSourceReserved4; 807 } 808 809 struct GtkSourceLanguageManagerPrivate; 810 811 struct GtkSourceLanguagePrivate; 812 813 struct GtkSourceMap 814 { 815 GtkSourceView parentInstance; 816 } 817 818 struct GtkSourceMapClass 819 { 820 GtkSourceViewClass parentClass; 821 void*[10] padding; 822 } 823 824 struct GtkSourceMark 825 { 826 GtkTextMark parentInstance; 827 GtkSourceMarkPrivate* priv; 828 } 829 830 struct GtkSourceMarkAttributes 831 { 832 GObject parent; 833 GtkSourceMarkAttributesPrivate* priv; 834 } 835 836 struct GtkSourceMarkAttributesClass 837 { 838 GObjectClass parentClass; 839 } 840 841 struct GtkSourceMarkAttributesPrivate; 842 843 struct GtkSourceMarkClass 844 { 845 GtkTextMarkClass parentClass; 846 extern(C) void function() GtkSourceReserved1; 847 extern(C) void function() GtkSourceReserved2; 848 } 849 850 struct GtkSourceMarkPrivate; 851 852 struct GtkSourcePrintCompositor 853 { 854 GObject parentInstance; 855 GtkSourcePrintCompositorPrivate* priv; 856 } 857 858 struct GtkSourcePrintCompositorClass 859 { 860 GObjectClass parentClass; 861 extern(C) void function() GtkSourceReserved1; 862 extern(C) void function() GtkSourceReserved2; 863 } 864 865 struct GtkSourcePrintCompositorPrivate; 866 867 struct GtkSourceSearchContext 868 { 869 GObject parent; 870 GtkSourceSearchContextPrivate* priv; 871 } 872 873 struct GtkSourceSearchContextClass 874 { 875 GObjectClass parentClass; 876 void*[10] padding; 877 } 878 879 struct GtkSourceSearchContextPrivate; 880 881 struct GtkSourceSearchSettings 882 { 883 GObject parent; 884 GtkSourceSearchSettingsPrivate* priv; 885 } 886 887 struct GtkSourceSearchSettingsClass 888 { 889 GObjectClass parentClass; 890 void*[10] padding; 891 } 892 893 struct GtkSourceSearchSettingsPrivate; 894 895 struct GtkSourceStyle; 896 897 struct GtkSourceStyleClass; 898 899 struct GtkSourceStyleScheme 900 { 901 GObject base; 902 GtkSourceStyleSchemePrivate* priv; 903 } 904 905 struct GtkSourceStyleSchemeChooser; 906 907 struct GtkSourceStyleSchemeChooserButton 908 { 909 GtkButton parent; 910 } 911 912 struct GtkSourceStyleSchemeChooserButtonClass 913 { 914 GtkButtonClass parent; 915 } 916 917 struct GtkSourceStyleSchemeChooserInterface 918 { 919 GTypeInterface baseInterface; 920 /** 921 * 922 * Params: 923 * chooser = a #GtkSourceStyleSchemeChooser 924 * Return: the currently-selected scheme. 925 */ 926 extern(C) GtkSourceStyleScheme* function(GtkSourceStyleSchemeChooser* chooser) getStyleScheme; 927 extern(C) void function(GtkSourceStyleSchemeChooser* chooser, GtkSourceStyleScheme* scheme) setStyleScheme; 928 void*[12] padding; 929 } 930 931 struct GtkSourceStyleSchemeChooserWidget 932 { 933 GtkBin parent; 934 } 935 936 struct GtkSourceStyleSchemeChooserWidgetClass 937 { 938 GtkBinClass parent; 939 } 940 941 struct GtkSourceStyleSchemeClass 942 { 943 GObjectClass baseClass; 944 extern(C) void function() GtkSourceReserved1; 945 extern(C) void function() GtkSourceReserved2; 946 } 947 948 struct GtkSourceStyleSchemeManager 949 { 950 GObject parent; 951 GtkSourceStyleSchemeManagerPrivate* priv; 952 } 953 954 struct GtkSourceStyleSchemeManagerClass 955 { 956 GObjectClass parentClass; 957 extern(C) void function() GtkSourceReserved1; 958 extern(C) void function() GtkSourceReserved2; 959 extern(C) void function() GtkSourceReserved3; 960 extern(C) void function() GtkSourceReserved4; 961 } 962 963 struct GtkSourceStyleSchemeManagerPrivate; 964 965 struct GtkSourceStyleSchemePrivate; 966 967 struct GtkSourceUndoManager; 968 969 struct GtkSourceUndoManagerIface 970 { 971 GTypeInterface parent; 972 /** 973 * 974 * Params: 975 * manager = a #GtkSourceUndoManager. 976 * Return: %TRUE if there are undo operations available, %FALSE otherwise 977 */ 978 extern(C) int function(GtkSourceUndoManager* manager) canUndo; 979 /** 980 * 981 * Params: 982 * manager = a #GtkSourceUndoManager. 983 * Return: %TRUE if there are redo operations available, %FALSE otherwise 984 */ 985 extern(C) int function(GtkSourceUndoManager* manager) canRedo; 986 extern(C) void function(GtkSourceUndoManager* manager) undo; 987 extern(C) void function(GtkSourceUndoManager* manager) redo; 988 extern(C) void function(GtkSourceUndoManager* manager) beginNotUndoableAction; 989 extern(C) void function(GtkSourceUndoManager* manager) endNotUndoableAction; 990 extern(C) void function(GtkSourceUndoManager* manager) canUndoChanged; 991 extern(C) void function(GtkSourceUndoManager* manager) canRedoChanged; 992 } 993 994 struct GtkSourceView 995 { 996 GtkTextView parent; 997 GtkSourceViewPrivate* priv; 998 } 999 1000 struct GtkSourceViewClass 1001 { 1002 GtkTextViewClass parentClass; 1003 extern(C) void function(GtkSourceView* view) undo; 1004 extern(C) void function(GtkSourceView* view) redo; 1005 extern(C) void function(GtkSourceView* view, GtkTextIter* iter, GdkEvent* event) lineMarkActivated; 1006 extern(C) void function(GtkSourceView* view) showCompletion; 1007 extern(C) void function(GtkSourceView* view, int copy, int step) moveLines; 1008 extern(C) void function(GtkSourceView* view, int step) moveWords; 1009 } 1010 1011 struct GtkSourceViewPrivate; 1012 1013 /** 1014 * Type definition for a function that will be called to create a 1015 * #GMountOperation. This is useful for creating a #GtkMountOperation. 1016 * 1017 * Params: 1018 * file = a #GtkSourceFile. 1019 * userdata = user data 1020 * 1021 * Since: 3.14 1022 */ 1023 public alias extern(C) GMountOperation* function(GtkSourceFile* file, void* userdata) GtkSourceMountOperationFactory;