Ardour  9.0-pre0-582-g084a23a80d
targetlist.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TARGETLIST_H
4 #define _GTKMM_TARGETLIST_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* Copyright(C) 2002 The gtkmm Development Team
11  *
12  * This library is free software, ) you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation, ) either
15  * version 2.1 of the License, or(at your option) any later version.
16  *
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  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser 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.
25  */
26 
27 
28 #include <gtkmm/enums.h>
29 #include <gtkmm/targetentry.h>
30 #include <gdkmm/types.h>
31 
32 
33 namespace Gtk
34 {
35 
37 {
38  public:
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40  typedef TargetList CppObjectType;
41  typedef GtkTargetList BaseObjectType;
42 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
43 
44 
48  void reference() const;
49 
53  void unreference() const;
54 
57 
59  const GtkTargetList* gobj() const;
60 
63 
64 protected:
65  // Do not derive this. Gtk::TargetList can neither be constructed nor deleted.
67  void operator delete(void*, std::size_t);
68 
69 private:
70  // noncopyable
73 
74 
75 public:
76  static Glib::RefPtr<Gtk::TargetList> create(const ArrayHandle_TargetEntry& targets);
77 
78 
85  void add(const Glib::ustring& target, TargetFlags flags = TargetFlags(0), guint info = 0);
86  void add(const ArrayHandle_TargetEntry& targets);
87 
92  void remove(const Glib::ustring& target);
93 
101  bool find(const Glib::ustring& target, guint* info) const;
102 
103 
104 };
105 
106 } // namespace Gtk
107 
108 
109 namespace Glib
110 {
111 
120  Glib::RefPtr<Gtk::TargetList> wrap(GtkTargetList* object, bool take_copy = false);
121 
122 } // namespace Glib
123 
124 
125 #endif /* _GTKMM_TARGETLIST_H */
126 
GtkTargetList * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void remove(const Glib::ustring &target)
bool find(const Glib::ustring &target, guint *info) const
void reference() const
void unreference() const
void add(const Glib::ustring &target, TargetFlags flags=TargetFlags(0), guint info=0)
TargetList & operator=(const TargetList &)
Glib::RefPtr< Gtk::TargetList > wrap(GtkTargetList *object, bool take_copy=false)
GtkTargetList * gobj()
Provides access to the underlying C instance.
void add(const ArrayHandle_TargetEntry &targets)
TargetList(const TargetList &)
const GtkTargetList * gobj() const
Provides access to the underlying C instance.
static Glib::RefPtr< Gtk::TargetList > create(const ArrayHandle_TargetEntry &targets)
typedefG_BEGIN_DECLS struct _GtkTargetList GtkTargetList
Definition: gtkselection.h:41
Definition: ardour_ui.h:188
Glib::ArrayHandle< TargetEntry, TargetEntry_Traits > ArrayHandle_TargetEntry
Definition: targetentry.h:91
Transmitter info