2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_INVISIBLE_H
4 #define _GTKMM_INVISIBLE_H
12 * Copyright (C) 1998-2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <gtkmm/widget.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkInvisible GtkInvisible;
34 typedef struct _GtkInvisibleClass GtkInvisibleClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 { class Invisible_Class; } // namespace Gtk
43 /** This widget is used internally in GTK+, and is probably not useful for application developers.
44 * It is used for reliable pointer grabs and selection handling in the code for drag-and-drop.
48 class Invisible : public Widget
51 #ifndef DOXYGEN_SHOULD_SKIP_THIS
52 typedef Invisible CppObjectType;
53 typedef Invisible_Class CppClassType;
54 typedef GtkInvisible BaseObjectType;
55 typedef GtkInvisibleClass BaseClassType;
56 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 friend class Invisible_Class;
64 static CppClassType invisible_class_;
67 Invisible(const Invisible&);
68 Invisible& operator=(const Invisible&);
71 explicit Invisible(const Glib::ConstructParams& construct_params);
72 explicit Invisible(GtkInvisible* castitem);
74 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
77 #ifndef DOXYGEN_SHOULD_SKIP_THIS
78 static GType get_type() G_GNUC_CONST;
79 static GType get_base_type() G_GNUC_CONST;
82 ///Provides access to the underlying C GtkObject.
83 GtkInvisible* gobj() { return reinterpret_cast<GtkInvisible*>(gobject_); }
85 ///Provides access to the underlying C GtkObject.
86 const GtkInvisible* gobj() const { return reinterpret_cast<GtkInvisible*>(gobject_); }
90 //C++ methods used to invoke GTK+ virtual functions:
93 //GTK+ Virtual Functions (override these to change behaviour):
95 //Default Signal Handlers::
102 explicit Invisible(const Glib::RefPtr<Gdk::Screen>& screen);
105 /** Returns the Gdk::Screen object associated with @a invisible
106 * @return The associated Gdk::Screen.
110 Glib::RefPtr<Gdk::Screen> get_screen();
112 /** Returns the Gdk::Screen object associated with @a invisible
113 * @return The associated Gdk::Screen.
117 Glib::RefPtr<const Gdk::Screen> get_screen() const;
119 /** Sets the Gdk::Screen where the Gtk::Invisible object will be displayed.
122 * @param screen A Gdk::Screen.
124 void set_screen(const Glib::RefPtr<Gdk::Screen>& screen);
129 } /* namespace Gtk */
134 /** @relates Gtk::Invisible
135 * @param object The C instance
136 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
137 * @result A C++ instance that wraps this C instance.
139 Gtk::Invisible* wrap(GtkInvisible* object, bool take_copy = false);
141 #endif /* _GTKMM_INVISIBLE_H */