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_SMART_HOME_END_DISABLED
31  * smart-home-end disabled.
32  * GTK_SOURCE_SMART_HOME_END_BEFORE
33  * move to the first/last
34  * non-whitespace character on the first press of the HOME/END keys and
35  * to the beginning/end of the line on the second press.
36  * GTK_SOURCE_SMART_HOME_END_AFTER
37  * move to the beginning/end of the
38  * line on the first press of the HOME/END keys and to the first/last
39  * non-whitespace character on the second press.
40  * GTK_SOURCE_SMART_HOME_END_ALWAYS
41  * always move to the first/last
42  * non-whitespace character when the HOME/END keys are pressed.
43  */
44 public enum GtkSourceSmartHomeEndType
45 {
46 	DISABLED,
47 	BEFORE,
48 	AFTER,
49 	ALWAYS
50 }
51 alias GtkSourceSmartHomeEndType SourceSmartHomeEndType;
52 
53 /**
54  * GtkSourceDrawSpacesFlags determine what kind of spaces whould be drawn.
55  * GTK_SOURCE_DRAW_SPACES_SPACE
56  * whether the space character should be drawn.
57  * GTK_SOURCE_DRAW_SPACES_TAB
58  * whether the tab character should be drawn.
59  * GTK_SOURCE_DRAW_SPACES_NEWLINE
60  * whether the line breaks should be drawn.
61  * GTK_SOURCE_DRAW_SPACES_NBSP
62  * whether the non-breaking whitespaces should be drawn.
63  * GTK_SOURCE_DRAW_SPACES_LEADING
64  * GTK_SOURCE_DRAW_SPACES_TEXT
65  * GTK_SOURCE_DRAW_SPACES_TRAILING
66  * GTK_SOURCE_DRAW_SPACES_ALL
67  * wheter all kind of spaces should be drawn.
68  */
69 public enum GtkSourceDrawSpacesFlags
70 {
71 	SPACE = 1 << 0,
72 	TAB = 1 << 1,
73 	NEWLINE = 1 << 2,
74 	NBSP = 1 << 3,
75 	LEADING = 1 << 4,
76 	TEXT = 1 << 5,
77 	TRAILING = 1 << 6,
78 	ALL = (SPACE |
79 	TAB |
80 	NEWLINE |
81 	NBSP |
82 	LEADING |
83 	TEXT |
84 	TRAILING)
85 }
86 alias GtkSourceDrawSpacesFlags SourceDrawSpacesFlags;
87 
88 /**
89  * GTK_SOURCE_VIEW_GUTTER_POSITION_LINES
90  * the gutter position of the lines
91  * renderer
92  * GTK_SOURCE_VIEW_GUTTER_POSITION_MARKS
93  * the gutter position of the marks
94  * renderer
95  */
96 public enum GtkSourceViewGutterPosition
97 {
98 	LINES = -30,
99 	MARKS = -20
100 }
101 alias GtkSourceViewGutterPosition SourceViewGutterPosition;
102 
103 public enum GtkSourceCompletionActivation
104 {
105 	NONE = 0,
106 	INTERACTIVE = 1 << 0,
107 	USER_REQUESTED = 1 << 1
108 }
109 alias GtkSourceCompletionActivation SourceCompletionActivation;
110 
111 public enum GtkSourceSearchFlags
112 {
113 	VISIBLE_ONLY = 1 << 0,
114 	TEXT_ONLY = 1 << 1,
115 	CASE_INSENSITIVE = 1 << 2
116 	/+* Possible future plans: SEARCH_REGEXP +/
117 }
118 alias GtkSourceSearchFlags SourceSearchFlags;
119 
120 public struct GtkTextViewClass{}
121 
122 public struct GtkTextBufferClass{}
123 
124 /**
125  * Main Gtk struct.
126  */
127 public struct GtkSourceView{}
128 
129 
130 public struct GtkSourceViewClass
131 {
132 	GtkTextViewClass parentClass;
133 	extern(C) void function(GtkSourceView* view) undo;
134 	extern(C) void function(GtkSourceView* view) redo;
135 	extern(C) void function(GtkSourceView* view, GtkTextIter* iter, GdkEvent* event) lineMarkActivated;
136 	extern(C) void function(GtkSourceView* view) showCompletion;
137 	extern(C) void function(GtkSourceView* view, int copy, int step) moveLines;
138 	/+* Padding for future expansion +/
139 	extern(C) void function() _GtkSourceReserved1;
140 }
141 
142 
143 /**
144  * Main Gtk struct.
145  */
146 public struct GtkSourceBuffer{}
147 
148 
149 public struct GtkSourceBufferClass
150 {
151 	GtkTextBufferClass parentClass;
152 	/+* Signals +/
153 	extern(C) void function(GtkSourceBuffer* buffer) undo;
154 	extern(C) void function(GtkSourceBuffer* buffer) redo;
155 	/+* Padding for future expansion +/
156 	extern(C) void function() _GtkSourceReserved1;
157 	extern(C) void function() _GtkSourceReserved2;
158 	extern(C) void function() _GtkSourceReserved3;
159 	extern(C) void function() _GtkSourceReserved4;
160 }
161 
162 
163 /**
164  * Main Gtk struct.
165  */
166 public struct GtkSourceCompletion{}
167 
168 
169 /**
170  * Main Gtk struct.
171  */
172 public struct GtkSourceCompletionContext{}
173 
174 
175 /**
176  * Main Gtk struct.
177  */
178 public struct GtkSourceCompletionInfo{}
179 
180 
181 /**
182  * Main Gtk struct.
183  */
184 public struct GtkSourceCompletionItem{}
185 
186 
187 /**
188  * Main Gtk struct.
189  */
190 public struct GtkSourceCompletionProposal{}
191 
192 
193 /**
194  * Main Gtk struct.
195  */
196 public struct GtkSourceCompletionProvider{}
197 
198 
199 /**
200  * Main Gtk struct.
201  */
202 public struct GtkSourceGutter{}
203 
204 
205 /**
206  * Main Gtk struct.
207  */
208 public struct GtkSourceMark{}
209 
210 
211 /**
212  * Main Gtk struct.
213  */
214 public struct GtkSourceLanguage{}
215 
216 
217 /**
218  * Main Gtk struct.
219  */
220 public struct GtkSourceLanguageManager{}
221 
222 
223 /**
224  * Main Gtk struct.
225  */
226 public struct GtkSourcePrintCompositor{}
227 
228 
229 /**
230  * Main Gtk struct.
231  */
232 public struct GtkSourceStyle{}
233 
234 
235 /**
236  * Main Gtk struct.
237  */
238 public struct GtkSourceStyleScheme{}
239 
240 
241 /**
242  * Main Gtk struct.
243  */
244 public struct GtkSourceStyleSchemeManager{}
245 
246 
247 /*
248  * Function type for setting up a tooltip for GtkSourceMark.
249  * mark :
250  * the GtkSourceMark
251  * user_data :
252  * user data pointer which was passed to gtk_source_view_set_mark_category_tooltip_func()
253  * Returns :
254  *  a newly-allocated string that is going to be shown as tooltip text.
255  */
256 // gchar * (*GtkSourceViewMarkTooltipFunc) (GtkSourceMark *mark,  gpointer user_data);
257 public alias extern(C) char * function(GtkSourceMark* mark, void* userData) GtkSourceViewMarkTooltipFunc;
258 
259 /*
260  */
261 // void (*GtkSourceGutterDataFunc) (GtkSourceGutter *gutter,  GtkCellRenderer *cell,  gint line_number,  gboolean current_line,  gpointer data);
262 public alias extern(C) void function(GtkSourceGutter* gutter, GtkCellRenderer* cell, int lineNumber, int currentLine, void* data) GtkSourceGutterDataFunc;
263 
264 /*
265  */
266 // void (*GtkSourceGutterSizeFunc) (GtkSourceGutter *gutter,  GtkCellRenderer *cell,  gpointer data);
267 public alias extern(C) void function(GtkSourceGutter* gutter, GtkCellRenderer* cell, void* data) GtkSourceGutterSizeFunc;