alternative to assert
[gtkD.git] / gtkD / src / gtk / IMMulticontext.d
blobca5acc6ddfa31ab37e648b1c192c64d9f1249ef6
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 = GtkIMMulticontext.html
26 * outPack = gtk
27 * outFile = IMMulticontext
28 * strct = GtkIMMulticontext
29 * realStrct=
30 * ctorStrct=
31 * clss = IMMulticontext
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_im_multicontext_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * - gtk.IMContext
46 * - gtk.MenuShell
47 * structWrap:
48 * - GtkIMContext* -> IMContext
49 * - GtkMenuShell* -> MenuShell
50 * module aliases:
51 * local aliases:
54 module gtk.IMMulticontext;
56 version(noAssert)
58 version(Tango)
60 import tango.io.Stdout; // use the tango loging?
64 private import gtkc.gtktypes;
66 private import gtkc.gtk;
69 private import gtk.IMContext;
70 private import gtk.MenuShell;
75 /**
76 * Description
78 private import gtk.IMContext;
79 public class IMMulticontext : IMContext
82 /** the main Gtk struct */
83 protected GtkIMMulticontext* gtkIMMulticontext;
86 public GtkIMMulticontext* getIMMulticontextStruct()
88 return gtkIMMulticontext;
92 /** the main Gtk struct as a void* */
93 protected void* getStruct()
95 return cast(void*)gtkIMMulticontext;
98 /**
99 * Sets our main struct and passes it to the parent class
101 public this (GtkIMMulticontext* gtkIMMulticontext)
103 version(noAssert)
105 if ( gtkIMMulticontext is null )
107 int zero = 0;
108 version(Tango)
110 Stdout("struct gtkIMMulticontext is null on constructor").newline;
112 else
114 printf("struct gtkIMMulticontext is null on constructor");
116 zero = zero / zero;
119 else
121 assert(gtkIMMulticontext !is null, "struct gtkIMMulticontext is null on constructor");
123 super(cast(GtkIMContext*)gtkIMMulticontext);
124 this.gtkIMMulticontext = gtkIMMulticontext;
132 * Creates a new GtkIMMulticontext.
133 * Returns:
134 * a new GtkIMMulticontext.
136 public static IMContext newIMMulticontext()
138 // GtkIMContext* gtk_im_multicontext_new (void);
139 return new IMContext( gtk_im_multicontext_new() );
143 * Add menuitems for various available input methods to a menu;
144 * the menuitems, when selected, will switch the input method
145 * for the context and the global default input method.
146 * context:
147 * a GtkIMMultiContext
148 * menushell:
149 * a GtkMenuShell
151 public void appendMenuitems(MenuShell menushell)
153 // void gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context, GtkMenuShell *menushell);
154 gtk_im_multicontext_append_menuitems(gtkIMMulticontext, (menushell is null) ? null : menushell.getMenuShellStruct());