2 // Generated by gtkmmproc -- DO NOT MODIFY!
10 /* Copyright (C) 1998-2002 The gtkmm Development Team
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <gtkmm/window.h>
30 #ifndef DOXYGEN_SHOULD_SKIP_THIS
31 typedef struct _GtkPlug GtkPlug;
32 typedef struct _GtkPlugClass GtkPlugClass;
33 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 { class Plug_Class; } // namespace Gtk
42 class Plug : public Window
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46 typedef Plug CppObjectType;
47 typedef Plug_Class CppClassType;
48 typedef GtkPlug BaseObjectType;
49 typedef GtkPlugClass BaseClassType;
50 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 friend class Plug_Class;
58 static CppClassType plug_class_;
62 Plug& operator=(const Plug&);
65 explicit Plug(const Glib::ConstructParams& construct_params);
66 explicit Plug(GtkPlug* castitem);
68 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 static GType get_type() G_GNUC_CONST;
73 static GType get_base_type() G_GNUC_CONST;
76 ///Provides access to the underlying C GtkObject.
77 GtkPlug* gobj() { return reinterpret_cast<GtkPlug*>(gobject_); }
79 ///Provides access to the underlying C GtkObject.
80 const GtkPlug* gobj() const { return reinterpret_cast<GtkPlug*>(gobject_); }
84 //C++ methods used to invoke GTK+ virtual functions:
87 //GTK+ Virtual Functions (override these to change behaviour):
89 //Default Signal Handlers::
90 virtual void on_embedded();
96 //This is not available in on Win32.
97 //This source file will not be compiled,
98 //and the class will not be registered in wrap_init.h or wrap_init.cc
102 explicit Plug(GdkNativeWindow socket_id);
103 explicit Plug(const Glib::RefPtr<Gdk::Display>& display, GdkNativeWindow socket_id);
106 /** Gets the window ID of a Gtk::Plug widget, which can then
107 * be used to embed this window inside another window, for
108 * instance with Gtk::Socket::add_id().
109 * @return The window ID for the plug.
111 GdkNativeWindow get_id() const;
114 Glib::SignalProxy0< void > signal_embedded();
119 } /* namespace Gtk */
124 /** @relates Gtk::Plug
125 * @param object The C instance
126 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
127 * @result A C++ instance that wraps this C instance.
129 Gtk::Plug* wrap(GtkPlug* object, bool take_copy = false);
131 #endif /* _GTKMM_PLUG_H */