2 * This file is part of gtkD.
4 * gtkD is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * gtkD is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with gtkD; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
24 * Conversion parameters:
25 * inFile = gtksourceview-GtkSourceMarker.html
27 * outFile = SourceMarker
28 * strct = GtkSourceMarker
39 * - gtk_source_marker_
50 module gsv
.SourceMarker
;
56 import tango
.io
.Stdout
; // use the tango loging?
60 private import gsvc
.gsvtypes
;
62 private import gsvc
.gsv
;
65 private import glib
.Str
;
73 public class SourceMarker
76 /** the main Gtk struct */
77 protected GtkSourceMarker
* gtkSourceMarker
;
80 public GtkSourceMarker
* getSourceMarkerStruct()
82 return gtkSourceMarker
;
86 /** the main Gtk struct as a void* */
87 protected void* getStruct()
89 return cast(void*)gtkSourceMarker
;
93 * Sets our main struct and passes it to the parent class
95 public this (GtkSourceMarker
* gtkSourceMarker
)
99 if ( gtkSourceMarker
is null )
104 Stdout("struct gtkSourceMarker is null on constructor").newline
;
108 printf("struct gtkSourceMarker is null on constructor");
115 assert(gtkSourceMarker
!is null, "struct gtkSourceMarker is null on constructor");
117 this.gtkSourceMarker
= gtkSourceMarker
;
128 public void setMarkerType(char[] type
)
130 // void gtk_source_marker_set_marker_type (GtkSourceMarker *marker, const gchar *type);
131 gtk_source_marker_set_marker_type(gtkSourceMarker
, Str
.toStringz(type
));
135 * Gets the marker type of this marker.
141 public char[] getMarkerType()
143 // gchar* gtk_source_marker_get_marker_type (GtkSourceMarker *marker);
144 return Str
.toString(gtk_source_marker_get_marker_type(gtkSourceMarker
) );
148 * Gets the line number of this marker.
156 // gint gtk_source_marker_get_line (GtkSourceMarker *marker);
157 return gtk_source_marker_get_line(gtkSourceMarker
);
161 * Gets the name of this marker.
167 public char[] getName()
169 // const gchar* gtk_source_marker_get_name (GtkSourceMarker *marker);
170 return Str
.toString(gtk_source_marker_get_name(gtkSourceMarker
) );
174 * Gets the buffer associated with this marker.
178 * the GtkSourceBuffer.
180 public GtkSourceBuffer
* getBuffer()
182 // GtkSourceBuffer* gtk_source_marker_get_buffer (GtkSourceMarker *marker);
183 return gtk_source_marker_get_buffer(gtkSourceMarker
);
187 * Gets the next marker after marker.
193 public GtkSourceMarker
* next()
195 // GtkSourceMarker* gtk_source_marker_next (GtkSourceMarker *marker);
196 return gtk_source_marker_next(gtkSourceMarker
);
200 * Gets the previous marker before marker.
206 public GtkSourceMarker
* prev()
208 // GtkSourceMarker* gtk_source_marker_prev (GtkSourceMarker *marker);
209 return gtk_source_marker_prev(gtkSourceMarker
);