Wrote the README_GIT file to be a proper tutorial on git, repo.or.cz and gtkD.
[gtkD.git] / gtkD / src / gtk / Invisible.d
blob98185306637ea9c1207a70f448b1dada0b726ec5
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 = GtkInvisible.html
26 * outPack = gtk
27 * outFile = Invisible
28 * strct = GtkInvisible
29 * realStrct=
30 * ctorStrct=
31 * clss = Invisible
32 * interf =
33 * class Code: No
34 * interface Code: No
35 * template for:
36 * extend =
37 * implements:
38 * prefixes:
39 * - gtk_invisible_
40 * - gtk_
41 * omit structs:
42 * omit prefixes:
43 * omit code:
44 * imports:
45 * - gdk.Screen
46 * structWrap:
47 * - GdkScreen* -> Screen
48 * module aliases:
49 * local aliases:
52 module gtk.Invisible;
54 version(noAssert)
56 version(Tango)
58 import tango.io.Stdout; // use the tango loging?
62 private import gtkc.gtktypes;
64 private import gtkc.gtk;
67 private import gdk.Screen;
72 /**
73 * Description
74 * The GtkInvisible widget is used internally in GTK+, and is probably not
75 * very useful for application developers.
76 * It is used for reliable pointer grabs and selection handling in the code
77 * for drag-and-drop.
79 private import gtk.Widget;
80 public class Invisible : Widget
83 /** the main Gtk struct */
84 protected GtkInvisible* gtkInvisible;
87 public GtkInvisible* getInvisibleStruct()
89 return gtkInvisible;
93 /** the main Gtk struct as a void* */
94 protected void* getStruct()
96 return cast(void*)gtkInvisible;
99 /**
100 * Sets our main struct and passes it to the parent class
102 public this (GtkInvisible* gtkInvisible)
104 version(noAssert)
106 if ( gtkInvisible is null )
108 int zero = 0;
109 version(Tango)
111 Stdout("struct gtkInvisible is null on constructor").newline;
113 else
115 printf("struct gtkInvisible is null on constructor");
117 zero = zero / zero;
120 else
122 assert(gtkInvisible !is null, "struct gtkInvisible is null on constructor");
124 super(cast(GtkWidget*)gtkInvisible);
125 this.gtkInvisible = gtkInvisible;
133 * Creates a new GtkInvisible.
134 * Returns:
135 * a new GtkInvisible.
137 public this ()
139 // GtkWidget* gtk_invisible_new (void);
140 this(cast(GtkInvisible*)gtk_invisible_new() );
144 * Creates a new GtkInvisible object for a specified screen
145 * screen:
146 * a GdkScreen which identifies on which
147 * the new GtkInvisible will be created.
148 * Returns:
149 * a newly created GtkInvisible object
150 * Since 2.2
152 public this (Screen screen)
154 // GtkWidget* gtk_invisible_new_for_screen (GdkScreen *screen);
155 this(cast(GtkInvisible*)gtk_invisible_new_for_screen((screen is null) ? null : screen.getScreenStruct()) );
159 * Sets the GdkScreen where the GtkInvisible object will be displayed.
160 * invisible:
161 * a GtkInvisible.
162 * screen:
163 * a GdkScreen.
164 * Since 2.2
166 public void setScreen(Screen screen)
168 // void gtk_invisible_set_screen (GtkInvisible *invisible, GdkScreen *screen);
169 gtk_invisible_set_screen(gtkInvisible, (screen is null) ? null : screen.getScreenStruct());
173 * Returns the GdkScreen object associated with invisible
174 * invisible:
175 * a GtkInvisible.
176 * Returns:
177 * the associated GdkScreen.
178 * Since 2.2
179 * Property Details
180 * The "screen" property
181 * "screen" GdkScreen : Read / Write
182 * The screen where this window will be displayed.
184 public Screen getScreen()
186 // GdkScreen* gtk_invisible_get_screen (GtkInvisible *invisible);
187 return new Screen( gtk_invisible_get_screen(gtkInvisible) );