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 GtkSourceViewGutterPosition 339 { 340 /** 341 * the gutter position of the lines 342 * renderer 343 */ 344 LINES = -30, 345 /** 346 * the gutter position of the marks 347 * renderer 348 */ 349 MARKS = -20, 350 } 351 alias GtkSourceViewGutterPosition ViewGutterPosition; 352 353 struct GtkSourceBuffer 354 { 355 GtkTextBuffer parentInstance; 356 GtkSourceBufferPrivate* priv; 357 } 358 359 struct GtkSourceBufferClass 360 { 361 GtkTextBufferClass parentClass; 362 extern(C) void function(GtkSourceBuffer* buffer) undo; 363 extern(C) void function(GtkSourceBuffer* buffer) redo; 364 extern(C) void function(GtkSourceBuffer* buffer, GtkTextIter* iter, GtkSourceBracketMatchType state) bracketMatched; 365 extern(C) void function() GtkSourceReserved1; 366 extern(C) void function() GtkSourceReserved2; 367 extern(C) void function() GtkSourceReserved3; 368 } 369 370 struct GtkSourceBufferPrivate; 371 372 struct GtkSourceCompletion 373 { 374 GObject parentInstance; 375 GtkSourceCompletionPrivate* priv; 376 } 377 378 struct GtkSourceCompletionClass 379 { 380 GObjectClass parentClass; 381 extern(C) int function(GtkSourceCompletion* completion, GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) proposalActivated; 382 extern(C) void function(GtkSourceCompletion* completion) show; 383 extern(C) void function(GtkSourceCompletion* completion) hide; 384 extern(C) void function(GtkSourceCompletion* completion, GtkSourceCompletionContext* context) populateContext; 385 extern(C) void function(GtkSourceCompletion* completion, GtkScrollStep step, int num) moveCursor; 386 extern(C) void function(GtkSourceCompletion* completion, GtkScrollStep step, int num) movePage; 387 extern(C) void function(GtkSourceCompletion* completion) activateProposal; 388 } 389 390 struct GtkSourceCompletionContext 391 { 392 GObject parent; 393 GtkSourceCompletionContextPrivate* priv; 394 } 395 396 struct GtkSourceCompletionContextClass 397 { 398 GObjectClass parentClass; 399 extern(C) void function(GtkSourceCompletionContext* context) cancelled; 400 extern(C) void function() GtkSourceReserved1; 401 extern(C) void function() GtkSourceReserved2; 402 extern(C) void function() GtkSourceReserved3; 403 } 404 405 struct GtkSourceCompletionContextPrivate; 406 407 struct GtkSourceCompletionInfo 408 { 409 GtkWindow parent; 410 GtkSourceCompletionInfoPrivate* priv; 411 } 412 413 struct GtkSourceCompletionInfoClass 414 { 415 GtkWindowClass parentClass; 416 extern(C) void function(GtkSourceCompletionInfo* info) beforeShow; 417 } 418 419 struct GtkSourceCompletionInfoPrivate; 420 421 struct GtkSourceCompletionItem 422 { 423 GObject parent; 424 GtkSourceCompletionItemPrivate* priv; 425 } 426 427 struct GtkSourceCompletionItemClass 428 { 429 GObjectClass parentClass; 430 } 431 432 struct GtkSourceCompletionItemPrivate; 433 434 struct GtkSourceCompletionPrivate; 435 436 struct GtkSourceCompletionProposal; 437 438 /** 439 * The virtual function table for #GtkSourceCompletionProposal. 440 */ 441 struct GtkSourceCompletionProposalIface 442 { 443 /** 444 * The parent interface. 445 */ 446 GTypeInterface parent; 447 /** 448 * 449 * Params: 450 * proposal = a #GtkSourceCompletionProposal. 451 * Return: a new string containing the label of @proposal. 452 */ 453 extern(C) char* function(GtkSourceCompletionProposal* proposal) getLabel; 454 /** 455 * 456 * Params: 457 * proposal = a #GtkSourceCompletionProposal. 458 * Return: a new string containing the label of @proposal with markup. 459 */ 460 extern(C) char* function(GtkSourceCompletionProposal* proposal) getMarkup; 461 /** 462 * 463 * Params: 464 * proposal = a #GtkSourceCompletionProposal. 465 * Return: a new string containing the text of @proposal. 466 */ 467 extern(C) char* function(GtkSourceCompletionProposal* proposal) getText; 468 /** 469 * 470 * Params: 471 * proposal = a #GtkSourceCompletionProposal. 472 * Return: The icon of @proposal. 473 */ 474 extern(C) GdkPixbuf* function(GtkSourceCompletionProposal* proposal) getIcon; 475 /** 476 * 477 * Params: 478 * proposal = a #GtkSourceCompletionProposal. 479 * Return: a new string containing extra information of @proposal or %NULL if 480 * no extra information is associated to @proposal. 481 */ 482 extern(C) char* function(GtkSourceCompletionProposal* proposal) getInfo; 483 /** 484 * 485 * Params: 486 * proposal = a #GtkSourceCompletionProposal. 487 * Return: The hash value of @proposal. 488 */ 489 extern(C) uint function(GtkSourceCompletionProposal* proposal) hash; 490 /** 491 * 492 * Params: 493 * proposal = a #GtkSourceCompletionProposal. 494 * other = a #GtkSourceCompletionProposal. 495 * Return: %TRUE if @proposal and @object are the same proposal 496 */ 497 extern(C) int function(GtkSourceCompletionProposal* proposal, GtkSourceCompletionProposal* other) equal; 498 extern(C) void function(GtkSourceCompletionProposal* proposal) changed; 499 } 500 501 struct GtkSourceCompletionProvider; 502 503 /** 504 * The virtual function table for #GtkSourceCompletionProvider. 505 */ 506 struct GtkSourceCompletionProviderIface 507 { 508 /** 509 * The parent interface. 510 */ 511 GTypeInterface gIface; 512 /** 513 * 514 * Params: 515 * provider = a #GtkSourceCompletionProvider. 516 * Return: a new string containing the name of the provider. 517 */ 518 extern(C) char* function(GtkSourceCompletionProvider* provider) getName; 519 /** 520 * 521 * Params: 522 * provider = The #GtkSourceCompletionProvider 523 * Return: The icon to be used for the provider, 524 * or %NULL if the provider does not have a special icon. 525 */ 526 extern(C) GdkPixbuf* function(GtkSourceCompletionProvider* provider) getIcon; 527 extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) populate; 528 /** 529 * 530 * Params: 531 * provider = a #GtkSourceCompletionProvider. 532 * context = a #GtkSourceCompletionContext. 533 * Return: %TRUE if @provider matches the completion context, %FALSE otherwise. 534 */ 535 extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) match; 536 /** 537 * 538 * Params: 539 * provider = a #GtkSourceCompletionProvider. 540 * Return: a combination of #GtkSourceCompletionActivation. 541 */ 542 extern(C) GtkSourceCompletionActivation function(GtkSourceCompletionProvider* provider) getActivation; 543 /** 544 * 545 * Params: 546 * provider = a #GtkSourceCompletionProvider. 547 * proposal = a currently selected #GtkSourceCompletionProposal. 548 * Return: a custom #GtkWidget to show extra 549 * information about @proposal, or %NULL if the provider does not have a special 550 * info widget. 551 */ 552 extern(C) GtkWidget* function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) getInfoWidget; 553 extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkSourceCompletionInfo* info) updateInfo; 554 /** 555 * 556 * Params: 557 * provider = a #GtkSourceCompletionProvider. 558 * context = a #GtkSourceCompletionContext. 559 * proposal = a #GtkSourceCompletionProposal. 560 * iter = a #GtkTextIter. 561 * Return: %TRUE if @iter was set for @proposal, %FALSE otherwise. 562 */ 563 extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) getStartIter; 564 /** 565 * 566 * Params: 567 * provider = a #GtkSourceCompletionProvider. 568 * proposal = a #GtkSourceCompletionProposal. 569 * iter = a #GtkTextIter. 570 * Return: %TRUE to indicate that the proposal activation has been handled, 571 * %FALSE otherwise. 572 */ 573 extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) activateProposal; 574 /** 575 * 576 * Params: 577 * provider = a #GtkSourceCompletionProvider. 578 * Return: the interactive delay in milliseconds. 579 */ 580 extern(C) int function(GtkSourceCompletionProvider* provider) getInteractiveDelay; 581 /** 582 * 583 * Params: 584 * provider = a #GtkSourceCompletionProvider. 585 * Return: the provider priority. 586 */ 587 extern(C) int function(GtkSourceCompletionProvider* provider) getPriority; 588 } 589 590 struct GtkSourceCompletionWords 591 { 592 GObject parent; 593 GtkSourceCompletionWordsPrivate* priv; 594 } 595 596 struct GtkSourceCompletionWordsClass 597 { 598 GObjectClass parentClass; 599 } 600 601 struct GtkSourceCompletionWordsPrivate; 602 603 struct GtkSourceEncoding; 604 605 struct GtkSourceFile 606 { 607 GObject parent; 608 GtkSourceFilePrivate* priv; 609 } 610 611 struct GtkSourceFileClass 612 { 613 GObjectClass parentClass; 614 void*[10] padding; 615 } 616 617 struct GtkSourceFileLoader 618 { 619 GObject parent; 620 GtkSourceFileLoaderPrivate* priv; 621 } 622 623 struct GtkSourceFileLoaderClass 624 { 625 GObjectClass parentClass; 626 void*[10] padding; 627 } 628 629 struct GtkSourceFileLoaderPrivate; 630 631 struct GtkSourceFilePrivate; 632 633 struct GtkSourceFileSaver 634 { 635 GObject object; 636 GtkSourceFileSaverPrivate* priv; 637 } 638 639 struct GtkSourceFileSaverClass 640 { 641 GObjectClass parentClass; 642 void*[10] padding; 643 } 644 645 struct GtkSourceFileSaverPrivate; 646 647 struct GtkSourceGutter 648 { 649 GObject parent; 650 GtkSourceGutterPrivate* priv; 651 } 652 653 struct GtkSourceGutterClass 654 { 655 GObjectClass parentClass; 656 } 657 658 struct GtkSourceGutterPrivate; 659 660 struct GtkSourceGutterRenderer 661 { 662 GObject parent; 663 GtkSourceGutterRendererPrivate* priv; 664 } 665 666 struct GtkSourceGutterRendererClass 667 { 668 GObjectClass parentClass; 669 extern(C) void function(GtkSourceGutterRenderer* renderer, cairo_t* cr, GdkRectangle* backgroundArea, GdkRectangle* cellArea, GtkTextIter* start, GtkTextIter* end) begin; 670 extern(C) void function(GtkSourceGutterRenderer* renderer, cairo_t* cr, GdkRectangle* backgroundArea, GdkRectangle* cellArea, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state) draw; 671 extern(C) void function(GtkSourceGutterRenderer* renderer) end; 672 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextView* oldView) changeView; 673 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextBuffer* oldBuffer) changeBuffer; 674 /** 675 * 676 * Params: 677 * renderer = a #GtkSourceGutterRenderer 678 * iter = a #GtkTextIter at the start of the line to be activated 679 * area = a #GdkRectangle of the cell area to be activated 680 * event = the event that triggered the query 681 * Return: %TRUE if the renderer can be activated, %FALSE otherwise 682 */ 683 extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event) queryActivatable; 684 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event) activate; 685 extern(C) void function(GtkSourceGutterRenderer* renderer) queueDraw; 686 /** 687 * 688 * Params: 689 * renderer = a #GtkSourceGutterRenderer. 690 * iter = a #GtkTextIter. 691 * area = a #GdkRectangle. 692 * x = The x position of the tooltip. 693 * y = The y position of the tooltip. 694 * tooltip = a #GtkTooltip. 695 * Return: %TRUE if the tooltip has been set, %FALSE otherwise 696 */ 697 extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, int x, int y, GtkTooltip* tooltip) queryTooltip; 698 extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state) queryData; 699 } 700 701 struct GtkSourceGutterRendererPixbuf 702 { 703 GtkSourceGutterRenderer parent; 704 GtkSourceGutterRendererPixbufPrivate* priv; 705 } 706 707 struct GtkSourceGutterRendererPixbufClass 708 { 709 GtkSourceGutterRendererClass parentClass; 710 } 711 712 struct GtkSourceGutterRendererPixbufPrivate; 713 714 struct GtkSourceGutterRendererPrivate; 715 716 struct GtkSourceGutterRendererText 717 { 718 GtkSourceGutterRenderer parent; 719 GtkSourceGutterRendererTextPrivate* priv; 720 } 721 722 struct GtkSourceGutterRendererTextClass 723 { 724 GtkSourceGutterRendererClass parentClass; 725 } 726 727 struct GtkSourceGutterRendererTextPrivate; 728 729 struct GtkSourceLanguage 730 { 731 GObject parentInstance; 732 GtkSourceLanguagePrivate* priv; 733 } 734 735 struct GtkSourceLanguageClass 736 { 737 GObjectClass parentClass; 738 extern(C) void function() GtkSourceReserved1; 739 extern(C) void function() GtkSourceReserved2; 740 } 741 742 struct GtkSourceLanguageManager 743 { 744 GObject parentInstance; 745 GtkSourceLanguageManagerPrivate* priv; 746 } 747 748 struct GtkSourceLanguageManagerClass 749 { 750 GObjectClass parentClass; 751 extern(C) void function() GtkSourceReserved1; 752 extern(C) void function() GtkSourceReserved2; 753 extern(C) void function() GtkSourceReserved3; 754 extern(C) void function() GtkSourceReserved4; 755 } 756 757 struct GtkSourceLanguageManagerPrivate; 758 759 struct GtkSourceLanguagePrivate; 760 761 struct GtkSourceMark 762 { 763 GtkTextMark parentInstance; 764 GtkSourceMarkPrivate* priv; 765 } 766 767 struct GtkSourceMarkAttributes 768 { 769 GObject parent; 770 GtkSourceMarkAttributesPrivate* priv; 771 } 772 773 struct GtkSourceMarkAttributesClass 774 { 775 GObjectClass parentClass; 776 } 777 778 struct GtkSourceMarkAttributesPrivate; 779 780 struct GtkSourceMarkClass 781 { 782 GtkTextMarkClass parentClass; 783 extern(C) void function() GtkSourceReserved1; 784 extern(C) void function() GtkSourceReserved2; 785 } 786 787 struct GtkSourceMarkPrivate; 788 789 struct GtkSourcePrintCompositor 790 { 791 GObject parentInstance; 792 GtkSourcePrintCompositorPrivate* priv; 793 } 794 795 struct GtkSourcePrintCompositorClass 796 { 797 GObjectClass parentClass; 798 extern(C) void function() GtkSourceReserved1; 799 extern(C) void function() GtkSourceReserved2; 800 } 801 802 struct GtkSourcePrintCompositorPrivate; 803 804 struct GtkSourceSearchContext 805 { 806 GObject parent; 807 GtkSourceSearchContextPrivate* priv; 808 } 809 810 struct GtkSourceSearchContextClass 811 { 812 GObjectClass parentClass; 813 void*[10] padding; 814 } 815 816 struct GtkSourceSearchContextPrivate; 817 818 struct GtkSourceSearchSettings 819 { 820 GObject parent; 821 GtkSourceSearchSettingsPrivate* priv; 822 } 823 824 struct GtkSourceSearchSettingsClass 825 { 826 GObjectClass parentClass; 827 void*[10] padding; 828 } 829 830 struct GtkSourceSearchSettingsPrivate; 831 832 struct GtkSourceStyle; 833 834 struct GtkSourceStyleClass; 835 836 struct GtkSourceStyleScheme 837 { 838 GObject base; 839 GtkSourceStyleSchemePrivate* priv; 840 } 841 842 struct GtkSourceStyleSchemeChooser; 843 844 struct GtkSourceStyleSchemeChooserButton 845 { 846 GtkButton parent; 847 } 848 849 struct GtkSourceStyleSchemeChooserButtonClass 850 { 851 GtkButtonClass parent; 852 } 853 854 struct GtkSourceStyleSchemeChooserInterface 855 { 856 GTypeInterface baseInterface; 857 /** 858 * 859 * Params: 860 * chooser = a #GtkSourceStyleSchemeChooser 861 * Return: the currently-selected scheme. 862 */ 863 extern(C) GtkSourceStyleScheme* function(GtkSourceStyleSchemeChooser* chooser) getStyleScheme; 864 extern(C) void function(GtkSourceStyleSchemeChooser* chooser, GtkSourceStyleScheme* scheme) setStyleScheme; 865 void*[12] padding; 866 } 867 868 struct GtkSourceStyleSchemeChooserWidget 869 { 870 GtkBin parent; 871 } 872 873 struct GtkSourceStyleSchemeChooserWidgetClass 874 { 875 GtkBinClass parent; 876 } 877 878 struct GtkSourceStyleSchemeClass 879 { 880 GObjectClass baseClass; 881 extern(C) void function() GtkSourceReserved1; 882 extern(C) void function() GtkSourceReserved2; 883 } 884 885 struct GtkSourceStyleSchemeManager 886 { 887 GObject parent; 888 GtkSourceStyleSchemeManagerPrivate* priv; 889 } 890 891 struct GtkSourceStyleSchemeManagerClass 892 { 893 GObjectClass parentClass; 894 extern(C) void function() GtkSourceReserved1; 895 extern(C) void function() GtkSourceReserved2; 896 extern(C) void function() GtkSourceReserved3; 897 extern(C) void function() GtkSourceReserved4; 898 } 899 900 struct GtkSourceStyleSchemeManagerPrivate; 901 902 struct GtkSourceStyleSchemePrivate; 903 904 struct GtkSourceUndoManager; 905 906 struct GtkSourceUndoManagerIface 907 { 908 GTypeInterface parent; 909 /** 910 * 911 * Params: 912 * manager = a #GtkSourceUndoManager. 913 * Return: %TRUE if there are undo operations available, %FALSE otherwise 914 */ 915 extern(C) int function(GtkSourceUndoManager* manager) canUndo; 916 /** 917 * 918 * Params: 919 * manager = a #GtkSourceUndoManager. 920 * Return: %TRUE if there are redo operations available, %FALSE otherwise 921 */ 922 extern(C) int function(GtkSourceUndoManager* manager) canRedo; 923 extern(C) void function(GtkSourceUndoManager* manager) undo; 924 extern(C) void function(GtkSourceUndoManager* manager) redo; 925 extern(C) void function(GtkSourceUndoManager* manager) beginNotUndoableAction; 926 extern(C) void function(GtkSourceUndoManager* manager) endNotUndoableAction; 927 extern(C) void function(GtkSourceUndoManager* manager) canUndoChanged; 928 extern(C) void function(GtkSourceUndoManager* manager) canRedoChanged; 929 } 930 931 struct GtkSourceView 932 { 933 GtkTextView parent; 934 GtkSourceViewPrivate* priv; 935 } 936 937 struct GtkSourceViewClass 938 { 939 GtkTextViewClass parentClass; 940 extern(C) void function(GtkSourceView* view) undo; 941 extern(C) void function(GtkSourceView* view) redo; 942 extern(C) void function(GtkSourceView* view, GtkTextIter* iter, GdkEvent* event) lineMarkActivated; 943 extern(C) void function(GtkSourceView* view) showCompletion; 944 extern(C) void function(GtkSourceView* view, int copy, int step) moveLines; 945 extern(C) void function(GtkSourceView* view, int step) moveWords; 946 } 947 948 struct GtkSourceViewPrivate; 949 950 /** 951 * Type definition for a function that will be called to create a 952 * #GMountOperation. This is useful for creating a #GtkMountOperation. 953 * 954 * Params: 955 * file = a #GtkSourceFile. 956 * userdata = user data 957 * 958 * Since: 3.14 959 */ 960 public alias extern(C) GMountOperation* function(GtkSourceFile* file, void* userdata) GtkSourceMountOperationFactory;