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. If
156 	 * the #GtkSourceBuffer:implicit-trailing-newline property is %TRUE, a line
157 	 * break is also drawn at the end of the buffer.
158 	 */
159 	NEWLINE = 4,
160 	/**
161 	 * whether the non-breaking whitespaces should be drawn.
162 	 */
163 	NBSP = 8,
164 	/**
165 	 * whether leading whitespaces should be drawn.
166 	 */
167 	LEADING = 16,
168 	/**
169 	 * whether whitespaces inside text should be drawn.
170 	 */
171 	TEXT = 32,
172 	/**
173 	 * whether trailing whitespaces should be drawn.
174 	 */
175 	TRAILING = 64,
176 	/**
177 	 * wheter all kind of spaces should be drawn.
178 	 */
179 	ALL = 127,
180 }
181 alias GtkSourceDrawSpacesFlags DrawSpacesFlags;
182 
183 /**
184  * An error code used with the %GTK_SOURCE_FILE_LOADER_ERROR domain.
185  */
186 public enum GtkSourceFileLoaderError
187 {
188 	/**
189 	 * The file is too big.
190 	 */
191 	TOO_BIG = 0,
192 	/**
193 	 * It is not
194 	 * possible to detect the encoding automatically.
195 	 */
196 	ENCODING_AUTO_DETECTION_FAILED = 1,
197 	/**
198 	 * There was an encoding
199 	 * conversion error and it was needed to use a fallback character.
200 	 */
201 	CONVERSION_FALLBACK = 2,
202 }
203 alias GtkSourceFileLoaderError FileLoaderError;
204 
205 /**
206  * An error code used with the %GTK_SOURCE_FILE_SAVER_ERROR domain.
207  *
208  * Since: 3.14
209  */
210 public enum GtkSourceFileSaverError
211 {
212 	/**
213 	 * The buffer contains invalid
214 	 * characters.
215 	 */
216 	INVALID_CHARS = 0,
217 	/**
218 	 * The file is externally
219 	 * modified.
220 	 */
221 	EXTERNALLY_MODIFIED = 1,
222 }
223 alias GtkSourceFileSaverError FileSaverError;
224 
225 /**
226  * Flags to define the behavior of a #GtkSourceFileSaver.
227  *
228  * Since: 3.14
229  */
230 public enum GtkSourceFileSaverFlags
231 {
232 	/**
233 	 * No flags.
234 	 */
235 	NONE = 0,
236 	/**
237 	 * Ignore invalid characters.
238 	 */
239 	IGNORE_INVALID_CHARS = 1,
240 	/**
241 	 * Save file despite external modifications.
242 	 */
243 	IGNORE_MODIFICATION_TIME = 2,
244 	/**
245 	 * Create a backup before saving the file.
246 	 */
247 	CREATE_BACKUP = 4,
248 }
249 alias GtkSourceFileSaverFlags FileSaverFlags;
250 
251 /**
252  * The alignment mode of the renderer, when a cell spans multiple lines (due to
253  * text wrapping).
254  */
255 public enum GtkSourceGutterRendererAlignmentMode
256 {
257 	/**
258 	 * The full cell.
259 	 */
260 	CELL = 0,
261 	/**
262 	 * The first line.
263 	 */
264 	FIRST = 1,
265 	/**
266 	 * The last line.
267 	 */
268 	LAST = 2,
269 }
270 alias GtkSourceGutterRendererAlignmentMode GutterRendererAlignmentMode;
271 
272 public enum GtkSourceGutterRendererState
273 {
274 	/**
275 	 * normal state
276 	 */
277 	NORMAL = 0,
278 	/**
279 	 * area in the renderer represents the
280 	 * line on which the insert cursor is currently positioned
281 	 */
282 	CURSOR = 1,
283 	/**
284 	 * the mouse pointer is currently
285 	 * over the activatable area of the renderer
286 	 */
287 	PRELIT = 2,
288 	/**
289 	 * area in the renderer represents
290 	 * a line in the buffer which contains part of the selection
291 	 */
292 	SELECTED = 4,
293 }
294 alias GtkSourceGutterRendererState GutterRendererState;
295 
296 public enum GtkSourceNewlineType
297 {
298 	/**
299 	 * line feed, used on UNIX.
300 	 */
301 	LF = 0,
302 	/**
303 	 * carriage return, used on Mac.
304 	 */
305 	CR = 1,
306 	/**
307 	 * carriage return followed by a line feed, used
308 	 * on Windows.
309 	 */
310 	CR_LF = 2,
311 }
312 alias GtkSourceNewlineType NewlineType;
313 
314 public enum GtkSourceSmartHomeEndType
315 {
316 	/**
317 	 * smart-home-end disabled.
318 	 */
319 	DISABLED = 0,
320 	/**
321 	 * move to the first/last
322 	 * non-whitespace character on the first press of the HOME/END keys and
323 	 * to the beginning/end of the line on the second press.
324 	 */
325 	BEFORE = 1,
326 	/**
327 	 * move to the beginning/end of the
328 	 * line on the first press of the HOME/END keys and to the first/last
329 	 * non-whitespace character on the second press.
330 	 */
331 	AFTER = 2,
332 	/**
333 	 * always move to the first/last
334 	 * non-whitespace character when the HOME/END keys are pressed.
335 	 */
336 	ALWAYS = 3,
337 }
338 alias GtkSourceSmartHomeEndType SmartHomeEndType;
339 
340 public enum GtkSourceSortFlags
341 {
342 	/**
343 	 * no flags specified
344 	 */
345 	NONE = 0,
346 	/**
347 	 * case sensitive sort
348 	 */
349 	CASE_SENSITIVE = 1,
350 	/**
351 	 * sort in reverse order
352 	 */
353 	REVERSE_ORDER = 2,
354 	/**
355 	 * remove duplicates
356 	 */
357 	REMOVE_DUPLICATES = 4,
358 }
359 alias GtkSourceSortFlags SortFlags;
360 
361 public enum GtkSourceViewGutterPosition
362 {
363 	/**
364 	 * the gutter position of the lines
365 	 * renderer
366 	 */
367 	LINES = -30,
368 	/**
369 	 * the gutter position of the marks
370 	 * renderer
371 	 */
372 	MARKS = -20,
373 }
374 alias GtkSourceViewGutterPosition ViewGutterPosition;
375 
376 struct GtkSourceBuffer
377 {
378 	GtkTextBuffer parentInstance;
379 	GtkSourceBufferPrivate* priv;
380 }
381 
382 struct GtkSourceBufferClass
383 {
384 	GtkTextBufferClass parentClass;
385 	/** */
386 	extern(C) void function(GtkSourceBuffer* buffer) undo;
387 	/** */
388 	extern(C) void function(GtkSourceBuffer* buffer) redo;
389 	/** */
390 	extern(C) void function(GtkSourceBuffer* buffer, GtkTextIter* iter, GtkSourceBracketMatchType state) bracketMatched;
391 	/** */
392 	extern(C) void function() GtkSourceReserved1;
393 	/** */
394 	extern(C) void function() GtkSourceReserved2;
395 	/** */
396 	extern(C) void function() GtkSourceReserved3;
397 }
398 
399 struct GtkSourceBufferPrivate;
400 
401 struct GtkSourceCompletion
402 {
403 	GObject parentInstance;
404 	GtkSourceCompletionPrivate* priv;
405 }
406 
407 struct GtkSourceCompletionClass
408 {
409 	GObjectClass parentClass;
410 	/** */
411 	extern(C) int function(GtkSourceCompletion* completion, GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) proposalActivated;
412 	/** */
413 	extern(C) void function(GtkSourceCompletion* completion) show;
414 	/** */
415 	extern(C) void function(GtkSourceCompletion* completion) hide;
416 	/** */
417 	extern(C) void function(GtkSourceCompletion* completion, GtkSourceCompletionContext* context) populateContext;
418 	/** */
419 	extern(C) void function(GtkSourceCompletion* completion, GtkScrollStep step, int num) moveCursor;
420 	/** */
421 	extern(C) void function(GtkSourceCompletion* completion, GtkScrollStep step, int num) movePage;
422 	/** */
423 	extern(C) void function(GtkSourceCompletion* completion) activateProposal;
424 }
425 
426 struct GtkSourceCompletionContext
427 {
428 	GObject parent;
429 	GtkSourceCompletionContextPrivate* priv;
430 }
431 
432 struct GtkSourceCompletionContextClass
433 {
434 	GObjectClass parentClass;
435 	/** */
436 	extern(C) void function(GtkSourceCompletionContext* context) cancelled;
437 	/** */
438 	extern(C) void function() GtkSourceReserved1;
439 	/** */
440 	extern(C) void function() GtkSourceReserved2;
441 	/** */
442 	extern(C) void function() GtkSourceReserved3;
443 }
444 
445 struct GtkSourceCompletionContextPrivate;
446 
447 struct GtkSourceCompletionInfo
448 {
449 	GtkWindow parent;
450 	GtkSourceCompletionInfoPrivate* priv;
451 }
452 
453 struct GtkSourceCompletionInfoClass
454 {
455 	GtkWindowClass parentClass;
456 	/** */
457 	extern(C) void function(GtkSourceCompletionInfo* info) beforeShow;
458 }
459 
460 struct GtkSourceCompletionInfoPrivate;
461 
462 struct GtkSourceCompletionItem
463 {
464 	GObject parent;
465 	GtkSourceCompletionItemPrivate* priv;
466 }
467 
468 struct GtkSourceCompletionItemClass
469 {
470 	GObjectClass parentClass;
471 }
472 
473 struct GtkSourceCompletionItemPrivate;
474 
475 struct GtkSourceCompletionPrivate;
476 
477 struct GtkSourceCompletionProposal;
478 
479 /**
480  * The virtual function table for #GtkSourceCompletionProposal.
481  */
482 struct GtkSourceCompletionProposalIface
483 {
484 	/**
485 	 * The parent interface.
486 	 */
487 	GTypeInterface parent;
488 	/**
489 	 *
490 	 * Params:
491 	 *     proposal = a #GtkSourceCompletionProposal.
492 	 * Return: a new string containing the label of @proposal.
493 	 */
494 	extern(C) char* function(GtkSourceCompletionProposal* proposal) getLabel;
495 	/**
496 	 *
497 	 * Params:
498 	 *     proposal = a #GtkSourceCompletionProposal.
499 	 * Return: a new string containing the label of @proposal with markup.
500 	 */
501 	extern(C) char* function(GtkSourceCompletionProposal* proposal) getMarkup;
502 	/**
503 	 *
504 	 * Params:
505 	 *     proposal = a #GtkSourceCompletionProposal.
506 	 * Return: a new string containing the text of @proposal.
507 	 */
508 	extern(C) char* function(GtkSourceCompletionProposal* proposal) getText;
509 	/**
510 	 *
511 	 * Params:
512 	 *     proposal = a #GtkSourceCompletionProposal.
513 	 * Return: A #GdkPixbuf with the icon of @proposal.
514 	 */
515 	extern(C) GdkPixbuf* function(GtkSourceCompletionProposal* proposal) getIcon;
516 	/**
517 	 *
518 	 * Params:
519 	 *     proposal = a #GtkSourceCompletionProposal.
520 	 * Return: The icon name of @proposal.
521 	 */
522 	extern(C) const(char)* function(GtkSourceCompletionProposal* proposal) getIconName;
523 	/**
524 	 *
525 	 * Params:
526 	 *     proposal = a #GtkSourceCompletionProposal.
527 	 * Return: A #GIcon with the icon of @proposal.
528 	 */
529 	extern(C) GIcon* function(GtkSourceCompletionProposal* proposal) getGicon;
530 	/**
531 	 *
532 	 * Params:
533 	 *     proposal = a #GtkSourceCompletionProposal.
534 	 * Return: a newly-allocated string containing
535 	 *     extra information of @proposal or %NULL if no extra information is associated
536 	 *     to @proposal.
537 	 */
538 	extern(C) char* function(GtkSourceCompletionProposal* proposal) getInfo;
539 	/**
540 	 *
541 	 * Params:
542 	 *     proposal = a #GtkSourceCompletionProposal.
543 	 * Return: The hash value of @proposal.
544 	 */
545 	extern(C) uint function(GtkSourceCompletionProposal* proposal) hash;
546 	/**
547 	 *
548 	 * Params:
549 	 *     proposal = a #GtkSourceCompletionProposal.
550 	 *     other = a #GtkSourceCompletionProposal.
551 	 * Return: %TRUE if @proposal and @object are the same proposal
552 	 */
553 	extern(C) int function(GtkSourceCompletionProposal* proposal, GtkSourceCompletionProposal* other) equal;
554 	/** */
555 	extern(C) void function(GtkSourceCompletionProposal* proposal) changed;
556 }
557 
558 struct GtkSourceCompletionProvider;
559 
560 /**
561  * The virtual function table for #GtkSourceCompletionProvider.
562  */
563 struct GtkSourceCompletionProviderIface
564 {
565 	/**
566 	 * The parent interface.
567 	 */
568 	GTypeInterface gIface;
569 	/**
570 	 *
571 	 * Params:
572 	 *     provider = a #GtkSourceCompletionProvider.
573 	 * Return: a new string containing the name of the provider.
574 	 */
575 	extern(C) char* function(GtkSourceCompletionProvider* provider) getName;
576 	/**
577 	 *
578 	 * Params:
579 	 *     provider = The #GtkSourceCompletionProvider
580 	 * Return: The icon to be used for the provider,
581 	 *     or %NULL if the provider does not have a special icon.
582 	 */
583 	extern(C) GdkPixbuf* function(GtkSourceCompletionProvider* provider) getIcon;
584 	/**
585 	 *
586 	 * Params:
587 	 *     provider = The #GtkSourceCompletionProvider
588 	 * Return: The icon name to be used for the provider,
589 	 *     or %NULL if the provider does not have a special icon.
590 	 */
591 	extern(C) const(char)* function(GtkSourceCompletionProvider* provider) getIconName;
592 	/**
593 	 *
594 	 * Params:
595 	 *     provider = The #GtkSourceCompletionProvider
596 	 * Return: The icon to be used for the provider,
597 	 *     or %NULL if the provider does not have a special icon.
598 	 */
599 	extern(C) GIcon* function(GtkSourceCompletionProvider* provider) getGicon;
600 	/** */
601 	extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) populate;
602 	/**
603 	 *
604 	 * Params:
605 	 *     provider = a #GtkSourceCompletionProvider.
606 	 *     context = a #GtkSourceCompletionContext.
607 	 * Return: %TRUE if @provider matches the completion context, %FALSE otherwise.
608 	 */
609 	extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) match;
610 	/**
611 	 *
612 	 * Params:
613 	 *     provider = a #GtkSourceCompletionProvider.
614 	 * Return: a combination of #GtkSourceCompletionActivation.
615 	 */
616 	extern(C) GtkSourceCompletionActivation function(GtkSourceCompletionProvider* provider) getActivation;
617 	/**
618 	 *
619 	 * Params:
620 	 *     provider = a #GtkSourceCompletionProvider.
621 	 *     proposal = a currently selected #GtkSourceCompletionProposal.
622 	 * Return: a custom #GtkWidget to show extra
623 	 *     information about @proposal, or %NULL if the provider does not have a special
624 	 *     info widget.
625 	 */
626 	extern(C) GtkWidget* function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) getInfoWidget;
627 	/** */
628 	extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkSourceCompletionInfo* info) updateInfo;
629 	/**
630 	 *
631 	 * Params:
632 	 *     provider = a #GtkSourceCompletionProvider.
633 	 *     context = a #GtkSourceCompletionContext.
634 	 *     proposal = a #GtkSourceCompletionProposal.
635 	 *     iter = a #GtkTextIter.
636 	 * Return: %TRUE if @iter was set for @proposal, %FALSE otherwise.
637 	 */
638 	extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) getStartIter;
639 	/**
640 	 *
641 	 * Params:
642 	 *     provider = a #GtkSourceCompletionProvider.
643 	 *     proposal = a #GtkSourceCompletionProposal.
644 	 *     iter = a #GtkTextIter.
645 	 * Return: %TRUE to indicate that the proposal activation has been handled,
646 	 *     %FALSE otherwise.
647 	 */
648 	extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) activateProposal;
649 	/**
650 	 *
651 	 * Params:
652 	 *     provider = a #GtkSourceCompletionProvider.
653 	 * Return: the interactive delay in milliseconds.
654 	 */
655 	extern(C) int function(GtkSourceCompletionProvider* provider) getInteractiveDelay;
656 	/**
657 	 *
658 	 * Params:
659 	 *     provider = a #GtkSourceCompletionProvider.
660 	 * Return: the provider priority.
661 	 */
662 	extern(C) int function(GtkSourceCompletionProvider* provider) getPriority;
663 }
664 
665 struct GtkSourceCompletionWords
666 {
667 	GObject parent;
668 	GtkSourceCompletionWordsPrivate* priv;
669 }
670 
671 struct GtkSourceCompletionWordsClass
672 {
673 	GObjectClass parentClass;
674 }
675 
676 struct GtkSourceCompletionWordsPrivate;
677 
678 struct GtkSourceEncoding;
679 
680 struct GtkSourceFile
681 {
682 	GObject parent;
683 	GtkSourceFilePrivate* priv;
684 }
685 
686 struct GtkSourceFileClass
687 {
688 	GObjectClass parentClass;
689 	void*[10] padding;
690 }
691 
692 struct GtkSourceFileLoader
693 {
694 	GObject parent;
695 	GtkSourceFileLoaderPrivate* priv;
696 }
697 
698 struct GtkSourceFileLoaderClass
699 {
700 	GObjectClass parentClass;
701 	void*[10] padding;
702 }
703 
704 struct GtkSourceFileLoaderPrivate;
705 
706 struct GtkSourceFilePrivate;
707 
708 struct GtkSourceFileSaver
709 {
710 	GObject object;
711 	GtkSourceFileSaverPrivate* priv;
712 }
713 
714 struct GtkSourceFileSaverClass
715 {
716 	GObjectClass parentClass;
717 	void*[10] padding;
718 }
719 
720 struct GtkSourceFileSaverPrivate;
721 
722 struct GtkSourceGutter
723 {
724 	GObject parent;
725 	GtkSourceGutterPrivate* priv;
726 }
727 
728 struct GtkSourceGutterClass
729 {
730 	GObjectClass parentClass;
731 }
732 
733 struct GtkSourceGutterPrivate;
734 
735 struct GtkSourceGutterRenderer
736 {
737 	GObject parent;
738 	GtkSourceGutterRendererPrivate* priv;
739 }
740 
741 struct GtkSourceGutterRendererClass
742 {
743 	GObjectClass parentClass;
744 	/** */
745 	extern(C) void function(GtkSourceGutterRenderer* renderer, cairo_t* cr, GdkRectangle* backgroundArea, GdkRectangle* cellArea, GtkTextIter* start, GtkTextIter* end) begin;
746 	/** */
747 	extern(C) void function(GtkSourceGutterRenderer* renderer, cairo_t* cr, GdkRectangle* backgroundArea, GdkRectangle* cellArea, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state) draw;
748 	/** */
749 	extern(C) void function(GtkSourceGutterRenderer* renderer) end;
750 	/** */
751 	extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextView* oldView) changeView;
752 	/** */
753 	extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextBuffer* oldBuffer) changeBuffer;
754 	/**
755 	 *
756 	 * Params:
757 	 *     renderer = a #GtkSourceGutterRenderer
758 	 *     iter = a #GtkTextIter at the start of the line to be activated
759 	 *     area = a #GdkRectangle of the cell area to be activated
760 	 *     event = the event that triggered the query
761 	 * Return: %TRUE if the renderer can be activated, %FALSE otherwise
762 	 */
763 	extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event) queryActivatable;
764 	/** */
765 	extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, GdkEvent* event) activate;
766 	/** */
767 	extern(C) void function(GtkSourceGutterRenderer* renderer) queueDraw;
768 	/**
769 	 *
770 	 * Params:
771 	 *     renderer = a #GtkSourceGutterRenderer.
772 	 *     iter = a #GtkTextIter.
773 	 *     area = a #GdkRectangle.
774 	 *     x = The x position of the tooltip.
775 	 *     y = The y position of the tooltip.
776 	 *     tooltip = a #GtkTooltip.
777 	 * Return: %TRUE if the tooltip has been set, %FALSE otherwise
778 	 */
779 	extern(C) int function(GtkSourceGutterRenderer* renderer, GtkTextIter* iter, GdkRectangle* area, int x, int y, GtkTooltip* tooltip) queryTooltip;
780 	/** */
781 	extern(C) void function(GtkSourceGutterRenderer* renderer, GtkTextIter* start, GtkTextIter* end, GtkSourceGutterRendererState state) queryData;
782 }
783 
784 struct GtkSourceGutterRendererPixbuf
785 {
786 	GtkSourceGutterRenderer parent;
787 	GtkSourceGutterRendererPixbufPrivate* priv;
788 }
789 
790 struct GtkSourceGutterRendererPixbufClass
791 {
792 	GtkSourceGutterRendererClass parentClass;
793 }
794 
795 struct GtkSourceGutterRendererPixbufPrivate;
796 
797 struct GtkSourceGutterRendererPrivate;
798 
799 struct GtkSourceGutterRendererText
800 {
801 	GtkSourceGutterRenderer parent;
802 	GtkSourceGutterRendererTextPrivate* priv;
803 }
804 
805 struct GtkSourceGutterRendererTextClass
806 {
807 	GtkSourceGutterRendererClass parentClass;
808 }
809 
810 struct GtkSourceGutterRendererTextPrivate;
811 
812 struct GtkSourceLanguage
813 {
814 	GObject parentInstance;
815 	GtkSourceLanguagePrivate* priv;
816 }
817 
818 struct GtkSourceLanguageClass
819 {
820 	GObjectClass parentClass;
821 	/** */
822 	extern(C) void function() GtkSourceReserved1;
823 	/** */
824 	extern(C) void function() GtkSourceReserved2;
825 }
826 
827 struct GtkSourceLanguageManager
828 {
829 	GObject parentInstance;
830 	GtkSourceLanguageManagerPrivate* priv;
831 }
832 
833 struct GtkSourceLanguageManagerClass
834 {
835 	GObjectClass parentClass;
836 	/** */
837 	extern(C) void function() GtkSourceReserved1;
838 	/** */
839 	extern(C) void function() GtkSourceReserved2;
840 	/** */
841 	extern(C) void function() GtkSourceReserved3;
842 	/** */
843 	extern(C) void function() GtkSourceReserved4;
844 }
845 
846 struct GtkSourceLanguageManagerPrivate;
847 
848 struct GtkSourceLanguagePrivate;
849 
850 struct GtkSourceMap
851 {
852 	GtkSourceView parentInstance;
853 }
854 
855 struct GtkSourceMapClass
856 {
857 	GtkSourceViewClass parentClass;
858 	void*[10] padding;
859 }
860 
861 struct GtkSourceMark
862 {
863 	GtkTextMark parentInstance;
864 	GtkSourceMarkPrivate* priv;
865 }
866 
867 struct GtkSourceMarkAttributes
868 {
869 	GObject parent;
870 	GtkSourceMarkAttributesPrivate* priv;
871 }
872 
873 struct GtkSourceMarkAttributesClass
874 {
875 	GObjectClass parentClass;
876 }
877 
878 struct GtkSourceMarkAttributesPrivate;
879 
880 struct GtkSourceMarkClass
881 {
882 	GtkTextMarkClass parentClass;
883 	/** */
884 	extern(C) void function() GtkSourceReserved1;
885 	/** */
886 	extern(C) void function() GtkSourceReserved2;
887 }
888 
889 struct GtkSourceMarkPrivate;
890 
891 struct GtkSourcePrintCompositor
892 {
893 	GObject parentInstance;
894 	GtkSourcePrintCompositorPrivate* priv;
895 }
896 
897 struct GtkSourcePrintCompositorClass
898 {
899 	GObjectClass parentClass;
900 	/** */
901 	extern(C) void function() GtkSourceReserved1;
902 	/** */
903 	extern(C) void function() GtkSourceReserved2;
904 }
905 
906 struct GtkSourcePrintCompositorPrivate;
907 
908 struct GtkSourceRegion
909 {
910 	GObject parentInstance;
911 }
912 
913 struct GtkSourceRegionClass
914 {
915 	GObjectClass parentClass;
916 	void*[8] padding;
917 }
918 
919 struct GtkSourceRegionIter
920 {
921 	void* dummy1;
922 	uint dummy2;
923 	void* dummy3;
924 }
925 
926 struct GtkSourceSearchContext
927 {
928 	GObject parent;
929 	GtkSourceSearchContextPrivate* priv;
930 }
931 
932 struct GtkSourceSearchContextClass
933 {
934 	GObjectClass parentClass;
935 	void*[10] padding;
936 }
937 
938 struct GtkSourceSearchContextPrivate;
939 
940 struct GtkSourceSearchSettings
941 {
942 	GObject parent;
943 	GtkSourceSearchSettingsPrivate* priv;
944 }
945 
946 struct GtkSourceSearchSettingsClass
947 {
948 	GObjectClass parentClass;
949 	void*[10] padding;
950 }
951 
952 struct GtkSourceSearchSettingsPrivate;
953 
954 struct GtkSourceStyle;
955 
956 struct GtkSourceStyleClass;
957 
958 struct GtkSourceStyleScheme
959 {
960 	GObject base;
961 	GtkSourceStyleSchemePrivate* priv;
962 }
963 
964 struct GtkSourceStyleSchemeChooser;
965 
966 struct GtkSourceStyleSchemeChooserButton
967 {
968 	GtkButton parent;
969 }
970 
971 struct GtkSourceStyleSchemeChooserButtonClass
972 {
973 	GtkButtonClass parent;
974 }
975 
976 struct GtkSourceStyleSchemeChooserInterface
977 {
978 	GTypeInterface baseInterface;
979 	/**
980 	 *
981 	 * Params:
982 	 *     chooser = a #GtkSourceStyleSchemeChooser
983 	 * Return: the currently-selected scheme.
984 	 */
985 	extern(C) GtkSourceStyleScheme* function(GtkSourceStyleSchemeChooser* chooser) getStyleScheme;
986 	/** */
987 	extern(C) void function(GtkSourceStyleSchemeChooser* chooser, GtkSourceStyleScheme* scheme) setStyleScheme;
988 	void*[12] padding;
989 }
990 
991 struct GtkSourceStyleSchemeChooserWidget
992 {
993 	GtkBin parent;
994 }
995 
996 struct GtkSourceStyleSchemeChooserWidgetClass
997 {
998 	GtkBinClass parent;
999 }
1000 
1001 struct GtkSourceStyleSchemeClass
1002 {
1003 	GObjectClass baseClass;
1004 	/** */
1005 	extern(C) void function() GtkSourceReserved1;
1006 	/** */
1007 	extern(C) void function() GtkSourceReserved2;
1008 }
1009 
1010 struct GtkSourceStyleSchemeManager
1011 {
1012 	GObject parent;
1013 	GtkSourceStyleSchemeManagerPrivate* priv;
1014 }
1015 
1016 struct GtkSourceStyleSchemeManagerClass
1017 {
1018 	GObjectClass parentClass;
1019 	/** */
1020 	extern(C) void function() GtkSourceReserved1;
1021 	/** */
1022 	extern(C) void function() GtkSourceReserved2;
1023 	/** */
1024 	extern(C) void function() GtkSourceReserved3;
1025 	/** */
1026 	extern(C) void function() GtkSourceReserved4;
1027 }
1028 
1029 struct GtkSourceStyleSchemeManagerPrivate;
1030 
1031 struct GtkSourceStyleSchemePrivate;
1032 
1033 struct GtkSourceTag
1034 {
1035 	GtkTextTag parentInstance;
1036 }
1037 
1038 struct GtkSourceTagClass
1039 {
1040 	GtkTextTagClass parentClass;
1041 	void*[10] padding;
1042 }
1043 
1044 struct GtkSourceUndoManager;
1045 
1046 struct GtkSourceUndoManagerIface
1047 {
1048 	GTypeInterface parent;
1049 	/**
1050 	 *
1051 	 * Params:
1052 	 *     manager = a #GtkSourceUndoManager.
1053 	 * Return: %TRUE if there are undo operations available, %FALSE otherwise
1054 	 */
1055 	extern(C) int function(GtkSourceUndoManager* manager) canUndo;
1056 	/**
1057 	 *
1058 	 * Params:
1059 	 *     manager = a #GtkSourceUndoManager.
1060 	 * Return: %TRUE if there are redo operations available, %FALSE otherwise
1061 	 */
1062 	extern(C) int function(GtkSourceUndoManager* manager) canRedo;
1063 	/** */
1064 	extern(C) void function(GtkSourceUndoManager* manager) undo;
1065 	/** */
1066 	extern(C) void function(GtkSourceUndoManager* manager) redo;
1067 	/** */
1068 	extern(C) void function(GtkSourceUndoManager* manager) beginNotUndoableAction;
1069 	/** */
1070 	extern(C) void function(GtkSourceUndoManager* manager) endNotUndoableAction;
1071 	/** */
1072 	extern(C) void function(GtkSourceUndoManager* manager) canUndoChanged;
1073 	/** */
1074 	extern(C) void function(GtkSourceUndoManager* manager) canRedoChanged;
1075 }
1076 
1077 struct GtkSourceView
1078 {
1079 	GtkTextView parent;
1080 	GtkSourceViewPrivate* priv;
1081 }
1082 
1083 struct GtkSourceViewClass
1084 {
1085 	GtkTextViewClass parentClass;
1086 	/** */
1087 	extern(C) void function(GtkSourceView* view) undo;
1088 	/** */
1089 	extern(C) void function(GtkSourceView* view) redo;
1090 	/** */
1091 	extern(C) void function(GtkSourceView* view, GtkTextIter* iter, GdkEvent* event) lineMarkActivated;
1092 	/** */
1093 	extern(C) void function(GtkSourceView* view) showCompletion;
1094 	/** */
1095 	extern(C) void function(GtkSourceView* view, int copy, int step) moveLines;
1096 	/** */
1097 	extern(C) void function(GtkSourceView* view, int step) moveWords;
1098 }
1099 
1100 struct GtkSourceViewPrivate;
1101 
1102 /**
1103  * Type definition for a function that will be called to create a
1104  * #GMountOperation. This is useful for creating a #GtkMountOperation.
1105  *
1106  * Params:
1107  *     file = a #GtkSourceFile.
1108  *     userdata = user data
1109  *
1110  * Since: 3.14
1111  */
1112 public alias extern(C) GMountOperation* function(GtkSourceFile* file, void* userdata) GtkSourceMountOperationFactory;