Ardour  9.0-pre0-582-g084a23a80d
plug.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_PLUG_H
4 #define _GTKMM_PLUG_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: plug.hg,v 1.2 2005/01/25 16:16:33 murrayc Exp $ */
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
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  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser 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.
27  */
28 
29 #include <gtkmm/window.h>
30 
31 
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkPlug GtkPlug;
34 typedef struct _GtkPlugClass GtkPlugClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
36 
37 
38 namespace Gtk
39 { class Plug_Class; } // namespace Gtk
40 namespace Gtk
41 {
42 
43 
44 class Plug : public Window
45 {
46  public:
47 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48  typedef Plug CppObjectType;
49  typedef Plug_Class CppClassType;
50  typedef GtkPlug BaseObjectType;
51  typedef GtkPlugClass BaseClassType;
52 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
53 
54  virtual ~Plug();
55 
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57 
58 private:
59  friend class Plug_Class;
60  static CppClassType plug_class_;
61 
62  // noncopyable
63  Plug(const Plug&);
64  Plug& operator=(const Plug&);
65 
66 protected:
67  explicit Plug(const Glib::ConstructParams& construct_params);
68  explicit Plug(GtkPlug* castitem);
69 
70 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 
72 public:
73 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74  static GType get_type() G_GNUC_CONST;
75 
76 
77  static GType get_base_type() G_GNUC_CONST;
78 #endif
79 
81  GtkPlug* gobj() { return reinterpret_cast<GtkPlug*>(gobject_); }
82 
84  const GtkPlug* gobj() const { return reinterpret_cast<GtkPlug*>(gobject_); }
85 
86 
87 public:
88  //C++ methods used to invoke GTK+ virtual functions:
89 
90 protected:
91  //GTK+ Virtual Functions (override these to change behaviour):
92 
93  //Default Signal Handlers::
95  virtual void on_embedded();
96 
97 
98 private:
99 
100 
101  //gtkmmproc error: _gtk_plug_add_to_socket : ignored method defs lookup failed//gtkmmproc error: _gtk_plug_remove_from_socket : ignored method defs lookup failed
102  //This is not available on Win32.
103 //This source file will not be compiled on Win32,
104 //and no class defined in it will be registered by wrap_init().
105 
106 public:
107  Plug();
108  explicit Plug(GdkNativeWindow socket_id);
109  Plug(const Glib::RefPtr<Gdk::Display>& display, GdkNativeWindow socket_id);
110 
111 
119 
120 
125  bool get_embedded() const;
126 
127 
132  Glib::RefPtr<Gdk::Window> get_socket_window();
133 
138  Glib::RefPtr<const Gdk::Window> get_socket_window() const;
139 
145  Glib::PropertyProxy_ReadOnly< bool > property_embedded() const;
146 
147 
153  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gdk::Window> > property_socket_window() const;
154 
155 
162  Glib::SignalProxy0< void > signal_embedded();
163 
164 
165 };
166 
167 } /* namespace Gtk */
168 
169 
170 namespace Glib
171 {
180  Gtk::Plug* wrap(GtkPlug* object, bool take_copy = false);
181 } //namespace Glib
182 
183 
184 #endif /* _GTKMM_PLUG_H */
185 
Definition: plug.h:45
Glib::RefPtr< Gdk::Window > get_socket_window()
Glib::RefPtr< const Gdk::Window > get_socket_window() const
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gdk::Window > > property_socket_window() const
GdkNativeWindow get_id() const
virtual ~Plug()
const GtkPlug * gobj() const
Provides access to the underlying C GtkObject.
Definition: plug.h:84
Plug(GdkNativeWindow socket_id)
bool get_embedded() const
Glib::SignalProxy0< void > signal_embedded()
Gtk::Plug * wrap(GtkPlug *object, bool take_copy=false)
GtkPlug * gobj()
Provides access to the underlying C GtkObject.
Definition: plug.h:81
Plug(const Glib::RefPtr< Gdk::Display > &display, GdkNativeWindow socket_id)
Glib::PropertyProxy_ReadOnly< bool > property_embedded() const
virtual void on_embedded()
This is a default handler for the signal signal_embedded().
guint32 GdkNativeWindow
Definition: gdktypes.h:97
Definition: ardour_ui.h:188