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