Ardour  9.0-pre0-582-g084a23a80d
textmark.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TEXTMARK_H
4 #define _GTKMM_TEXTMARK_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: textmark.hg,v 1.3 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* textmark.h
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 
32 #include <gtkmm/object.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkTextMark GtkTextMark;
37 typedef struct _GtkTextMarkClass GtkTextMarkClass;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 namespace Gtk
43 { class TextMark_Class; } // namespace Gtk
44 #endif //DOXYGEN_SHOULD_SKIP_THIS
45 
46 namespace Gtk
47 {
48 
49 class TextBuffer;
50 class TextIter;
51 
80 class TextMark : public Glib::Object
81 {
82 
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 
85 public:
86  typedef TextMark CppObjectType;
87  typedef TextMark_Class CppClassType;
88  typedef GtkTextMark BaseObjectType;
89  typedef GtkTextMarkClass BaseClassType;
90 
91 private: friend class TextMark_Class;
92  static CppClassType textmark_class_;
93 
94 private:
95  // noncopyable
96  TextMark(const TextMark&);
97  TextMark& operator=(const TextMark&);
98 
99 protected:
100  explicit TextMark(const Glib::ConstructParams& construct_params);
101  explicit TextMark(GtkTextMark* castitem);
102 
103 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
104 
105 public:
106  virtual ~TextMark();
107 
110  static GType get_type() G_GNUC_CONST;
111 
112 #ifndef DOXYGEN_SHOULD_SKIP_THIS
113 
114 
115  static GType get_base_type() G_GNUC_CONST;
116 #endif
117 
119  GtkTextMark* gobj() { return reinterpret_cast<GtkTextMark*>(gobject_); }
120 
122  const GtkTextMark* gobj() const { return reinterpret_cast<GtkTextMark*>(gobject_); }
123 
126 
127 private:
128 
129 protected:
130 
142  explicit TextMark(bool left_gravity = true);
143 
156  explicit TextMark(const Glib::ustring& name, bool left_gravity = true);
157 
158 
159 public:
160 
174  static Glib::RefPtr<TextMark> create(bool left_gravity = true);
175 
176 
191  static Glib::RefPtr<TextMark> create(const Glib::ustring& name, bool left_gravity = true);
192 
193 
202  void set_visible(bool setting = true);
203 
209  bool get_visible() const;
210 
215  Glib::ustring get_name() const;
216 
223  bool get_deleted() const;
224 
230  Glib::RefPtr<TextBuffer> get_buffer();
231 
237  Glib::RefPtr<const TextBuffer> get_buffer() const;
238 
243  bool get_left_gravity() const;
244 
245  //TODO: Add a const overload, if we have a ConstTextIter.
247 
253  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name() const;
254 
255 
261  Glib::PropertyProxy_ReadOnly< bool > property_left_gravity() const;
262 
263 
264 public:
265 
266 public:
267  //C++ methods used to invoke GTK+ virtual functions:
268 
269 protected:
270  //GTK+ Virtual Functions (override these to change behaviour):
271 
272  //Default Signal Handlers::
273 
274 
275 };
276 
277 } /* namespace Gtk */
278 
279 
280 namespace Glib
281 {
290  Glib::RefPtr<Gtk::TextMark> wrap(GtkTextMark* object, bool take_copy = false);
291 }
292 
293 
294 #endif /* _GTKMM_TEXTMARK_H */
295 
bool get_deleted() const
const GtkTextMark * gobj() const
Provides access to the underlying C GObject.
Definition: textmark.h:122
TextIter get_iter()
GtkTextMark * gobj()
Provides access to the underlying C GObject.
Definition: textmark.h:119
bool get_left_gravity() const
Glib::RefPtr< TextBuffer > get_buffer()
Glib::PropertyProxy_ReadOnly< bool > property_left_gravity() const
Glib::RefPtr< Gtk::TextMark > wrap(GtkTextMark *object, bool take_copy=false)
static Glib::RefPtr< TextMark > create(bool left_gravity=true)
virtual ~TextMark()
Glib::RefPtr< const TextBuffer > get_buffer() const
Glib::ustring get_name() const
void set_visible(bool setting=true)
bool get_visible() const
TextMark(const Glib::ustring &name, bool left_gravity=true)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_name() const
static Glib::RefPtr< TextMark > create(const Glib::ustring &name, bool left_gravity=true)
GtkTextMark * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
TextMark(bool left_gravity=true)
static GType get_type() G_GNUC_CONST
GtkImageIconNameData name
Definition: gtkimage.h:6
typedefG_BEGIN_DECLS struct _GtkTextMark GtkTextMark
Definition: gtktextmark.h:61
Definition: ardour_ui.h:188