Ardour  8.7-14-g57a6773833
entrybuffer.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ENTRYBUFFER_H
4 #define _GTKMM_ENTRYBUFFER_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /* $Id: entrybuffer.hg,v 1.20 2006/11/20 09:19:49 murrayc Exp $ */
13 
14 /* Copyright(C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or(at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 // This is for including the config header before any code (such as
32 // the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
33 
34 
35 #include <gtkmm/object.h>
36 #include <gtkmmconfig.h>
37 #include <utility>
38 
39 
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 typedef struct _GtkEntryBuffer GtkEntryBuffer;
43 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
44 
45 
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 namespace Gtk
48 { class EntryBuffer_Class; } // namespace Gtk
49 #endif //DOXYGEN_SHOULD_SKIP_THIS
50 
51 namespace Gtk
52 {
53 
68 class EntryBuffer : public Glib::Object
69 {
70 
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
72 
73 public:
74  typedef EntryBuffer CppObjectType;
75  typedef EntryBuffer_Class CppClassType;
76  typedef GtkEntryBuffer BaseObjectType;
77  typedef GtkEntryBufferClass BaseClassType;
78 
79 private: friend class EntryBuffer_Class;
80  static CppClassType entrybuffer_class_;
81 
82 private:
83  // noncopyable
84  EntryBuffer(const EntryBuffer&);
85  EntryBuffer& operator=(const EntryBuffer&);
86 
87 protected:
88  explicit EntryBuffer(const Glib::ConstructParams& construct_params);
89  explicit EntryBuffer(GtkEntryBuffer* castitem);
90 
91 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
92 
93 public:
94  virtual ~EntryBuffer();
95 
98  static GType get_type() G_GNUC_CONST;
99 
100 #ifndef DOXYGEN_SHOULD_SKIP_THIS
101 
102 
103  static GType get_base_type() G_GNUC_CONST;
104 #endif
105 
107  GtkEntryBuffer* gobj() { return reinterpret_cast<GtkEntryBuffer*>(gobject_); }
108 
110  const GtkEntryBuffer* gobj() const { return reinterpret_cast<GtkEntryBuffer*>(gobject_); }
111 
114 
115 private:
116 
117 protected:
118 
122 
127  explicit EntryBuffer(const Glib::ustring& text);
128 
129 public:
133  static Glib::RefPtr<EntryBuffer> create();
134 
135 
141  static Glib::RefPtr<EntryBuffer> create(const Glib::ustring& text);
142 
143 
149  gsize get_bytes() const;
150 
155  guint get_length() const;
156 
167  Glib::ustring get_text() const;
168 
174  void set_text(const Glib::ustring& text);
175 
176 
185  void set_max_length(int max_length);
186 
193  int get_max_length() const;
194 
201  guint insert_text(guint position, const Glib::ustring& text);
202 
203 
217  guint delete_text(guint position, int n_chars);
218 
223  void emit_inserted_text(guint position, const Glib::ustring& text);
224 
225 
231  void emit_deleted_text(guint position, guint n_chars);
232 
233 
240  Glib::SignalProxy3< void,guint,const gchar*,guint > signal_inserted_text();
241 
242 
249  Glib::SignalProxy2< void,guint,guint > signal_deleted_text();
250 
251 
257  Glib::PropertyProxy< Glib::ustring > property_text() ;
258 
264  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text() const;
265 
271  Glib::PropertyProxy_ReadOnly< guint > property_length() const;
272 
273 
279  Glib::PropertyProxy< int > property_max_length() ;
280 
286  Glib::PropertyProxy_ReadOnly< int > property_max_length() const;
287 
288 
289 public:
290 
291 public:
292  //C++ methods used to invoke GTK+ virtual functions:
293 
294 protected:
295  //GTK+ Virtual Functions (override these to change behaviour):
296 
297  //Default Signal Handlers::
299  virtual void on_inserted_text(guint position, const gchar* chars, guint n_chars);
301  virtual void on_deleted_text(guint position, guint n_chars);
302 
303 
304 };
305 
306 } // namespace Gtk
307 
308 
309 namespace Glib
310 {
319  Glib::RefPtr<Gtk::EntryBuffer> wrap(GtkEntryBuffer* object, bool take_copy = false);
320 }
321 
322 
323 #endif /* _GTKMM_ENTRYBUFFER_H */
324 
guint insert_text(guint position, const Glib::ustring &text)
void emit_inserted_text(guint position, const Glib::ustring &text)
EntryBuffer(const Glib::ustring &text)
Glib::PropertyProxy< int > property_max_length()
guint delete_text(guint position, int n_chars)
Glib::ustring get_text() const
guint get_length() const
void set_text(const Glib::ustring &text)
void emit_deleted_text(guint position, guint n_chars)
Glib::PropertyProxy< Glib::ustring > property_text()
void set_max_length(int max_length)
virtual void on_deleted_text(guint position, guint n_chars)
This is a default handler for the signal signal_deleted_text().
Glib::SignalProxy3< void, guint, const gchar *, guint > signal_inserted_text()
gsize get_bytes() const
const GtkEntryBuffer * gobj() const
Provides access to the underlying C GObject.
Definition: entrybuffer.h:110
static Glib::RefPtr< EntryBuffer > create(const Glib::ustring &text)
Glib::PropertyProxy_ReadOnly< guint > property_length() const
Glib::PropertyProxy_ReadOnly< int > property_max_length() const
virtual void on_inserted_text(guint position, const gchar *chars, guint n_chars)
This is a default handler for the signal signal_inserted_text().
Glib::RefPtr< Gtk::EntryBuffer > wrap(GtkEntryBuffer *object, bool take_copy=false)
static Glib::RefPtr< EntryBuffer > create()
int get_max_length() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_text() const
static GType get_type() G_GNUC_CONST
GtkEntryBuffer * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
GtkEntryBuffer * gobj()
Provides access to the underlying C GObject.
Definition: entrybuffer.h:107
virtual ~EntryBuffer()
Glib::SignalProxy2< void, guint, guint > signal_deleted_text()
Definition: ardour_ui.h:188