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 module gsvc.gsvtypes;
25 
26 
27 public import gtkc.gtktypes;
28 
29 /**
30  * GTK_SOURCE_BRACKET_MATCH_NONE
31  * there is no bracket to match.
32  * GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE
33  * matching a bracket
34  *  failed because the maximum range was reached.
35  * GTK_SOURCE_BRACKET_MATCH_NOT_FOUND
36  * a matching bracket was not found.
37  * GTK_SOURCE_BRACKET_MATCH_FOUND
38  * a matching bracket was found.
39  */
40 public enum GtkSourceBracketMatchType
41 {
42 	NONE,
43 	OUT_OF_RANGE,
44 	NOT_FOUND,
45 	FOUND
46 }
47 alias GtkSourceBracketMatchType SourceBracketMatchType;
48 
49 /**
50  * An error code used with GTK_SOURCE_COMPLETION_ERROR in a GError returned
51  * from a completion-related function.
52  * GTK_SOURCE_COMPLETION_ERROR_ALREADY_BOUND
53  * The GtkSourceCompletionProvider
54  * is already bound to the GtkSourceCompletion object.
55  * GTK_SOURCE_COMPLETION_ERROR_NOT_BOUND
56  * The GtkSourceCompletionProvider is
57  * not bound to the GtkSourceCompletion object.
58  */
59 public enum GtkSourceCompletionError
60 {
61 	ALREADY_BOUND = 0,
62 	NOT_BOUND
63 }
64 alias GtkSourceCompletionError SourceCompletionError;
65 
66 /**
67  * GTK_SOURCE_COMPLETION_ACTIVATION_NONE
68  * None.
69  * GTK_SOURCE_COMPLETION_ACTIVATION_INTERACTIVE
70  * Interactive activation. By
71  * default, it occurs on each insertion in the GtkTextBuffer. This can be
72  * blocked temporarily with gtk_source_completion_block_interactive().
73  * GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED
74  * User requested activation.
75  * By default, it occurs when the user presses
76  * Control+space.
77  */
78 public enum GtkSourceCompletionActivation
79 {
80 	NONE = 0,
81 	INTERACTIVE = 1 << 0,
82 	USER_REQUESTED = 1 << 1
83 }
84 alias GtkSourceCompletionActivation SourceCompletionActivation;
85 
86 /**
87  * GTK_SOURCE_GUTTER_RENDERER_STATE_NORMAL
88  * normal state
89  * GTK_SOURCE_GUTTER_RENDERER_STATE_CURSOR
90  * area in the renderer represents the
91  * line on which the insert cursor is currently positioned
92  * GTK_SOURCE_GUTTER_RENDERER_STATE_PRELIT
93  * the mouse pointer is currently
94  * over the activatable area of the renderer
95  * GTK_SOURCE_GUTTER_RENDERER_STATE_SELECTED
96  * area in the renderer represents
97  * a line in the buffer which contains part of the selection
98  */
99 public enum GtkSourceGutterRendererState
100 {
101 	NORMAL = 0,
102 	CURSOR = 1 << 0,
103 	PRELIT = 1 << 1,
104 	SELECTED = 1 << 2
105 }
106 alias GtkSourceGutterRendererState SourceGutterRendererState;
107 
108 /**
109  * The alignment mode of the renderer, when a cell spans multiple lines (due to
110  * text wrapping).
111  * GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL
112  * The full cell.
113  * GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_FIRST
114  * The first line.
115  * GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_LAST
116  * The last line.
117  */
118 public enum GtkSourceGutterRendererAlignmentMode
119 {
120 	MODE_CELL,
121 	MODE_FIRST,
122 	MODE_LAST
123 }
124 alias GtkSourceGutterRendererAlignmentMode SourceGutterRendererAlignmentMode;
125 
126 /**
127  * GTK_SOURCE_SMART_HOME_END_DISABLED
128  * smart-home-end disabled.
129  * GTK_SOURCE_SMART_HOME_END_BEFORE
130  * move to the first/last
131  * non-whitespace character on the first press of the HOME/END keys and
132  * to the beginning/end of the line on the second press.
133  * GTK_SOURCE_SMART_HOME_END_AFTER
134  * move to the beginning/end of the
135  * line on the first press of the HOME/END keys and to the first/last
136  * non-whitespace character on the second press.
137  * GTK_SOURCE_SMART_HOME_END_ALWAYS
138  * always move to the first/last
139  * non-whitespace character when the HOME/END keys are pressed.
140  */
141 public enum GtkSourceSmartHomeEndType
142 {
143 	DISABLED,
144 	BEFORE,
145 	AFTER,
146 	ALWAYS
147 }
148 alias GtkSourceSmartHomeEndType SourceSmartHomeEndType;
149 
150 /**
151  * GtkSourceDrawSpacesFlags determine what kind of spaces whould be drawn. If none
152  * of GTK_SOURCE_DRAW_SPACES_LEADING, GTK_SOURCE_DRAW_SPACES_TEXT or
153  * GTK_SOURCE_DRAW_SPACES_TRAILING is specified, whitespaces at any position in
154  * the line will be drawn (i.e. it has the same effect as specifying all of them).
155  * GTK_SOURCE_DRAW_SPACES_SPACE
156  * whether the space character should be drawn.
157  * GTK_SOURCE_DRAW_SPACES_TAB
158  * whether the tab character should be drawn.
159  * GTK_SOURCE_DRAW_SPACES_NEWLINE
160  * whether the line breaks should be drawn.
161  * GTK_SOURCE_DRAW_SPACES_NBSP
162  * whether the non-breaking whitespaces should be drawn.
163  * GTK_SOURCE_DRAW_SPACES_LEADING
164  * whether leading whitespaces should be drawn.
165  * GTK_SOURCE_DRAW_SPACES_TEXT
166  * whether whitespaces inside text should be drawn.
167  * GTK_SOURCE_DRAW_SPACES_TRAILING
168  * whether trailing whitespaces should be drawn.
169  * GTK_SOURCE_DRAW_SPACES_ALL
170  * wheter all kind of spaces should be drawn.
171  */
172 public enum GtkSourceDrawSpacesFlags
173 {
174 	SPACE = 1 << 0,
175 	TAB = 1 << 1,
176 	NEWLINE = 1 << 2,
177 	NBSP = 1 << 3,
178 	LEADING = 1 << 4,
179 	TEXT = 1 << 5,
180 	TRAILING = 1 << 6,
181 	ALL = 0x7f
182 }
183 alias GtkSourceDrawSpacesFlags SourceDrawSpacesFlags;
184 
185 /**
186  * GTK_SOURCE_VIEW_GUTTER_POSITION_LINES
187  * the gutter position of the lines
188  * renderer
189  * GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS
190  * the gutter position of the marks
191  * renderer
192  */
193 public enum GtkSourceViewGutterPosition
194 {
195 	LINES = -30,
196 	MARKS = -20
197 }
198 alias GtkSourceViewGutterPosition SourceViewGutterPosition;
199 
200 public struct GtkTextViewClass{}
201 
202 public struct GtkTextBufferClass{}
203 
204 /**
205  * Main Gtk struct.
206  */
207 public struct GtkSourceBuffer{}
208 
209 
210 /**
211  * Main Gtk struct.
212  */
213 public struct GtkSourceCompletion{}
214 
215 
216 /**
217  * Main Gtk struct.
218  */
219 public struct GtkSourceCompletionContext{}
220 
221 
222 /**
223  * Main Gtk struct.
224  */
225 public struct GtkSourceCompletionInfo{}
226 
227 
228 /**
229  * Main Gtk struct.
230  */
231 public struct GtkSourceCompletionItem{}
232 
233 
234 /**
235  * Main Gtk struct.
236  */
237 public struct GtkSourceCompletionProposal{}
238 
239 
240 /**
241  * The virtual function table for GtkSourceCompletionProposal.
242  * GTypeInterface parent;
243  * The parent interface.
244  * get_label ()
245  * The virtual function pointer for gtk_source_completion_proposal_get_label().
246  * By default, NULL is returned.
247  * get_markup ()
248  * The virtual function pointer for gtk_source_completion_proposal_get_markup().
249  * By default, NULL is returned.
250  * get_text ()
251  * The virtual function pointer for gtk_source_completion_proposal_get_text().
252  * By default, NULL is returned.
253  * get_icon ()
254  * The virtual function pointer for gtk_source_completion_proposal_get_icon().
255  * By default, NULL is returned.
256  * get_info ()
257  * The virtual function pointer for gtk_source_completion_proposal_get_info().
258  * By default, NULL is returned.
259  * hash ()
260  * The virtual function pointer for gtk_source_completion_proposal_hash().
261  * By default, it uses a direct hash (g_direct_hash()).
262  * equal ()
263  * The virtual function pointer for gtk_source_completion_proposal_equal().
264  * By default, it uses direct equality (g_direct_equal()).
265  * changed ()
266  * The function pointer for the "changed" signal.
267  */
268 public struct GtkSourceCompletionProposalIface
269 {
270 	GTypeInterface parent;
271 	/+* Interface functions +/
272 	extern(C) char * function(GtkSourceCompletionProposal* proposal) getLabel;
273 	extern(C) char * function(GtkSourceCompletionProposal* proposal) getMarkup;
274 	extern(C) char * function(GtkSourceCompletionProposal* proposal) getText;
275 	extern(C) GdkPixbuf * function(GtkSourceCompletionProposal* proposal) getIcon;
276 	extern(C) char * function(GtkSourceCompletionProposal* proposal) getInfo;
277 	extern(C) uint function(GtkSourceCompletionProposal* proposal) hash;
278 	extern(C) int function(GtkSourceCompletionProposal* proposal, GtkSourceCompletionProposal* other) equal;
279 	/+* Signals +/
280 	extern(C) void function(GtkSourceCompletionProposal* proposal) changed;
281 }
282 
283 
284 /**
285  * Main Gtk struct.
286  */
287 public struct GtkSourceCompletionProvider{}
288 
289 
290 /**
291  * The virtual function table for GtkSourceCompletionProvider.
292  * GTypeInterface g_iface;
293  * The parent interface.
294  * get_name ()
295  * The virtual function pointer for gtk_source_completion_provider_get_name().
296  * Must be implemented.
297  * get_icon ()
298  * The virtual function pointer for gtk_source_completion_provider_get_icon().
299  * By default, NULL is returned.
300  * populate ()
301  * The virtual function pointer for gtk_source_completion_provider_populate().
302  * Add no proposals by default.
303  * match ()
304  * The virtual function pointer for gtk_source_completion_provider_match().
305  * By default, TRUE is returned.
306  * get_activation ()
307  * The virtual function pointer for gtk_source_completion_provider_get_activation().
308  * The combination of all GtkSourceCompletionActivation is returned by default.
309  * get_info_widget ()
310  * The virtual function pointer for gtk_source_completion_provider_get_info_widget().
311  * By default, NULL is returned.
312  * update_info ()
313  * The virtual function pointer for gtk_source_completion_provider_update_info().
314  * Does nothing by default.
315  * get_start_iter ()
316  * The virtual function pointer for gtk_source_completion_provider_get_start_iter().
317  * By default, FALSE is returned.
318  * activate_proposal ()
319  * The virtual function pointer for gtk_source_completion_provider_activate_proposal().
320  * By default, FALSE is returned.
321  * get_interactive_delay ()
322  * The virtual function pointer for gtk_source_completion_provider_get_interactive_delay().
323  * By default, -1 is returned.
324  * get_priority ()
325  * The virtual function pointer for gtk_source_completion_provider_get_priority().
326  * By default, 0 is returned.
327  */
328 public struct GtkSourceCompletionProviderIface
329 {
330 	GTypeInterface gIface;
331 	extern(C) char * function(GtkSourceCompletionProvider* provider) getName;
332 	extern(C) GdkPixbuf * function(GtkSourceCompletionProvider* provider) getIcon;
333 	extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) populate;
334 	extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context) match;
335 	extern(C) GtkSourceCompletionActivation function(GtkSourceCompletionProvider* provider) getActivation;
336 	extern(C) GtkWidget * function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal) getInfoWidget;
337 	extern(C) void function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkSourceCompletionInfo* info) updateInfo;
338 	extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionContext* context, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) getStartIter;
339 	extern(C) int function(GtkSourceCompletionProvider* provider, GtkSourceCompletionProposal* proposal, GtkTextIter* iter) activateProposal;
340 	extern(C) int function(GtkSourceCompletionProvider* provider) getInteractiveDelay;
341 	extern(C) int function(GtkSourceCompletionProvider* provider) getPriority;
342 }
343 
344 
345 /**
346  * Main Gtk struct.
347  */
348 public struct GtkSourceCompletionWords{}
349 
350 
351 /**
352  * Main Gtk struct.
353  */
354 public struct GtkSourceGutter{}
355 
356 
357 /**
358  * Main Gtk struct.
359  */
360 public struct GtkSourceGutterRenderer{}
361 
362 
363 /**
364  * Main Gtk struct.
365  */
366 public struct GtkSourceGutterRendererPixbuf{}
367 
368 
369 /**
370  * Main Gtk struct.
371  */
372 public struct GtkSourceGutterRendererText{}
373 
374 
375 /**
376  * Main Gtk struct.
377  */
378 public struct GtkSourceLanguage{}
379 
380 
381 /**
382  * Main Gtk struct.
383  */
384 public struct GtkSourceLanguageManager{}
385 
386 
387 /**
388  * Main Gtk struct.
389  */
390 public struct GtkSourceMark{}
391 
392 
393 /**
394  * Main Gtk struct.
395  */
396 public struct GtkSourceMarkAttributes{}
397 
398 
399 /**
400  * Main Gtk struct.
401  */
402 public struct GtkSourcePrintCompositor{}
403 
404 
405 /**
406  * Main Gtk struct.
407  */
408 public struct GtkSourceSearchContext{}
409 
410 
411 /**
412  * Main Gtk struct.
413  */
414 public struct GtkSourceSearchSettings{}
415 
416 
417 /**
418  * Main Gtk struct.
419  */
420 public struct GtkSourceStyle{}
421 
422 
423 /**
424  * Main Gtk struct.
425  */
426 public struct GtkSourceStyleScheme{}
427 
428 
429 /**
430  * Main Gtk struct.
431  */
432 public struct GtkSourceStyleSchemeManager{}
433 
434 
435 /**
436  * Main Gtk struct.
437  */
438 public struct GtkSourceUndoManager{}
439 
440 
441 /**
442  * Main Gtk struct.
443  */
444 public struct GtkSourceView{}
445