2 // Generated by gtkmmproc -- DO NOT MODIFY!
11 /* Copyright (C) 1998-2002 The gtkmm Development Team
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include <gtkmm/window.h>
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 typedef struct _GtkPlug GtkPlug;
33 typedef struct _GtkPlugClass GtkPlugClass;
34 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 { class Plug_Class; } // namespace Gtk
43 class Plug : public Window
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 typedef Plug CppObjectType;
48 typedef Plug_Class CppClassType;
49 typedef GtkPlug BaseObjectType;
50 typedef GtkPlugClass BaseClassType;
51 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58 friend class Plug_Class;
59 static CppClassType plug_class_;
63 Plug& operator=(const Plug&);
66 explicit Plug(const Glib::ConstructParams& construct_params);
67 explicit Plug(GtkPlug* castitem);
69 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS
73 static GType get_type() G_GNUC_CONST;
74 static GType get_base_type() G_GNUC_CONST;
77 ///Provides access to the underlying C GtkObject.
78 GtkPlug* gobj() { return reinterpret_cast<GtkPlug*>(gobject_); }
80 ///Provides access to the underlying C GtkObject.
81 const GtkPlug* gobj() const { return reinterpret_cast<GtkPlug*>(gobject_); }
85 //C++ methods used to invoke GTK+ virtual functions:
86 #ifdef GLIBMM_VFUNCS_ENABLED
87 #endif //GLIBMM_VFUNCS_ENABLED
90 //GTK+ Virtual Functions (override these to change behaviour):
91 #ifdef GLIBMM_VFUNCS_ENABLED
92 #endif //GLIBMM_VFUNCS_ENABLED
94 //Default Signal Handlers::
95 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
96 virtual void on_embedded();
97 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
103 //This is not available in on Win32.
104 //This source file will not be compiled,
105 //and the class will not be registered in wrap_init.h or wrap_init.cc
109 explicit Plug(GdkNativeWindow socket_id);
110 explicit Plug(const Glib::RefPtr<Gdk::Display>& display, GdkNativeWindow socket_id);
113 /** Gets the window ID of a Gtk::Plug widget, which can then
114 * be used to embed this window inside another window, for
115 * instance with Gtk::Socket::add_id().
116 * @return The window ID for the plug.
118 GdkNativeWindow get_id() const;
123 * <tt>void on_my_%embedded()</tt>
126 Glib::SignalProxy0< void > signal_embedded();
131 } /* namespace Gtk */
136 /** A Glib::wrap() method for this object.
138 * @param object The C instance.
139 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
140 * @result A C++ instance that wraps this C instance.
144 Gtk::Plug* wrap(GtkPlug* object, bool take_copy = false);
148 #endif /* _GTKMM_PLUG_H */