Ardour  9.0-pre0-582-g084a23a80d
socket.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_SOCKET_H
4 #define _GTKMM_SOCKET_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: socket.hg,v 1.2 2004/02/10 17:35:13 mxpxpod 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/container.h>
30 #include <gdkmm/types.h>
31 
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkSocket GtkSocket;
35 typedef struct _GtkSocketClass GtkSocketClass;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 
38 
39 namespace Gtk
40 { class Socket_Class; } // namespace Gtk
41 namespace Gtk
42 {
43 
91 class Socket : public Container
92 {
93  public:
94 #ifndef DOXYGEN_SHOULD_SKIP_THIS
95  typedef Socket CppObjectType;
96  typedef Socket_Class CppClassType;
97  typedef GtkSocket BaseObjectType;
98  typedef GtkSocketClass BaseClassType;
99 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
100 
101  virtual ~Socket();
102 
103 #ifndef DOXYGEN_SHOULD_SKIP_THIS
104 
105 private:
106  friend class Socket_Class;
107  static CppClassType socket_class_;
108 
109  // noncopyable
110  Socket(const Socket&);
111  Socket& operator=(const Socket&);
112 
113 protected:
114  explicit Socket(const Glib::ConstructParams& construct_params);
115  explicit Socket(GtkSocket* castitem);
116 
117 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
118 
119 public:
120 #ifndef DOXYGEN_SHOULD_SKIP_THIS
121  static GType get_type() G_GNUC_CONST;
122 
123 
124  static GType get_base_type() G_GNUC_CONST;
125 #endif
126 
128  GtkSocket* gobj() { return reinterpret_cast<GtkSocket*>(gobject_); }
129 
131  const GtkSocket* gobj() const { return reinterpret_cast<GtkSocket*>(gobject_); }
132 
133 
134 public:
135  //C++ methods used to invoke GTK+ virtual functions:
136 
137 protected:
138  //GTK+ Virtual Functions (override these to change behaviour):
139 
140  //Default Signal Handlers::
142  virtual void on_plug_added();
144  virtual bool on_plug_removed();
145 
146 
147 private:
148 
149 
150  //This is not available on Win32.
151 //This source file will not be compiled on Win32,
152 //and no class defined in it will be registered by wrap_init().
153 
154 public:
156 
157 
173  void add_id(Gdk::NativeWindow window_id);
174 
185 
186 
192  Glib::RefPtr<Gdk::Window> get_plug_window();
193 
199  Glib::RefPtr<const Gdk::Window> get_plug_window() const;
200 
201 
208  Glib::SignalProxy0< void > signal_plug_added();
209 
210 
217  Glib::SignalProxy0< bool > signal_plug_removed();
218 
219 
220 };
221 
222 } // namespace Gtk
223 
224 
225 namespace Glib
226 {
235  Gtk::Socket* wrap(GtkSocket* object, bool take_copy = false);
236 } //namespace Glib
237 
238 
239 #endif /* _GTKMM_SOCKET_H */
240 
Glib::RefPtr< Gdk::Window > get_plug_window()
Gdk::NativeWindow get_id() const
Glib::RefPtr< const Gdk::Window > get_plug_window() const
void add_id(Gdk::NativeWindow window_id)
GtkSocket * gobj()
Provides access to the underlying C GtkObject.
Definition: socket.h:128
Glib::SignalProxy0< void > signal_plug_added()
Gtk::Socket * wrap(GtkSocket *object, bool take_copy=false)
const GtkSocket * gobj() const
Provides access to the underlying C GtkObject.
Definition: socket.h:131
Glib::SignalProxy0< bool > signal_plug_removed()
virtual bool on_plug_removed()
This is a default handler for the signal signal_plug_removed().
virtual ~Socket()
virtual void on_plug_added()
This is a default handler for the signal signal_plug_added().
GdkNativeWindow NativeWindow
Definition: ardour_ui.h:188