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
28 * strct = GtkInvisible
47 * - GdkScreen* -> Screen
58 import tango
.io
.Stdout
; // use the tango loging?
62 private import gtkc
.gtktypes
;
64 private import gtkc
.gtk
;
67 private import gdk
.Screen
;
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
79 private import gtk
.Widget
;
80 public class Invisible
: Widget
83 /** the main Gtk struct */
84 protected GtkInvisible
* gtkInvisible
;
87 public GtkInvisible
* getInvisibleStruct()
93 /** the main Gtk struct as a void* */
94 protected void* getStruct()
96 return cast(void*)gtkInvisible
;
100 * Sets our main struct and passes it to the parent class
102 public this (GtkInvisible
* gtkInvisible
)
106 if ( gtkInvisible
is null )
111 Stdout("struct gtkInvisible is null on constructor").newline
;
115 printf("struct gtkInvisible is null on constructor");
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.
135 * a new GtkInvisible.
139 // GtkWidget* gtk_invisible_new (void);
140 this(cast(GtkInvisible
*)gtk_invisible_new() );
144 * Creates a new GtkInvisible object for a specified screen
146 * a GdkScreen which identifies on which
147 * the new GtkInvisible will be created.
149 * a newly created GtkInvisible object
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.
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
177 * the associated GdkScreen.
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
) );