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 = GtkSourceStyleScheme.html
27 * outFile = SourceStyleScheme
28 * strct = GtkSourceStyleScheme
31 * clss = SourceStyleScheme
39 * - gtk_source_style_scheme_
50 module gsv
.SourceStyleScheme
;
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 SourceStyleScheme
76 /** the main Gtk struct */
77 protected GtkSourceStyleScheme
* gtkSourceStyleScheme
;
80 public GtkSourceStyleScheme
* getSourceStyleSchemeStruct()
82 return gtkSourceStyleScheme
;
86 /** the main Gtk struct as a void* */
87 protected void* getStruct()
89 return cast(void*)gtkSourceStyleScheme
;
93 * Sets our main struct and passes it to the parent class
95 public this (GtkSourceStyleScheme
* gtkSourceStyleScheme
)
99 if ( gtkSourceStyleScheme
is null )
104 Stdout("struct gtkSourceStyleScheme is null on constructor").newline
;
108 printf("struct gtkSourceStyleScheme is null on constructor");
115 assert(gtkSourceStyleScheme
!is null, "struct gtkSourceStyleScheme is null on constructor");
117 this.gtkSourceStyleScheme
= gtkSourceStyleScheme
;
126 * Gets the tag associated with the given style_name in the style scheme.
128 * a GtkSourceStyleScheme.
130 * the name of a style.
132 * a GtkSourceTagStyle.
134 public GtkSourceTagStyle
* getTagStyle(char[] styleName
)
136 // GtkSourceTagStyle* gtk_source_style_scheme_get_tag_style (GtkSourceStyleScheme *scheme, const gchar *style_name);
137 return gtk_source_style_scheme_get_tag_style(gtkSourceStyleScheme
, Str
.toStringz(styleName
));
141 * Gets the name of the given style scheme.
143 * a GtkSourceStyleScheme.
145 * the name of the style scheme.
147 public char[] getName()
149 // const gchar* gtk_source_style_scheme_get_name (GtkSourceStyleScheme *scheme);
150 return Str
.toString(gtk_source_style_scheme_get_name(gtkSourceStyleScheme
) );
154 * Gets the default style scheme.
156 * a GtkSourceStyleScheme.
158 public static GtkSourceStyleScheme
* getDefault()
160 // GtkSourceStyleScheme* gtk_source_style_scheme_get_default (void);
161 return gtk_source_style_scheme_get_default();