alternative to assert
[gtkD.git] / gtkD / srcsv / gsv / SourceStyleScheme.d
blob854548d229408a4c44ff4ba13f773a97a0d439d3
1 /*
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
26 * outPack = gsv
27 * outFile = SourceStyleScheme
28 * strct = GtkSourceStyleScheme
29 * realStrct=
30 * ctorStrct=
31 * clss = SourceStyleScheme
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_source_style_scheme_
40 * omit structs:
41 * omit prefixes:
42 * omit code:
43 * imports:
44 * - glib.Str
45 * structWrap:
46 * module aliases:
47 * local aliases:
50 module gsv.SourceStyleScheme;
52 version(noAssert)
54 version(Tango)
56 import tango.io.Stdout; // use the tango loging?
60 private import gsvc.gsvtypes;
62 private import gsvc.gsv;
65 private import glib.Str;
70 /**
71 * Description
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;
92 /**
93 * Sets our main struct and passes it to the parent class
95 public this (GtkSourceStyleScheme* gtkSourceStyleScheme)
97 version(noAssert)
99 if ( gtkSourceStyleScheme is null )
101 int zero = 0;
102 version(Tango)
104 Stdout("struct gtkSourceStyleScheme is null on constructor").newline;
106 else
108 printf("struct gtkSourceStyleScheme is null on constructor");
110 zero = zero / zero;
113 else
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.
127 * scheme:
128 * a GtkSourceStyleScheme.
129 * style_name:
130 * the name of a style.
131 * Returns:
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.
142 * scheme:
143 * a GtkSourceStyleScheme.
144 * Returns:
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.
155 * Returns:
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();