Ardour  9.0-pre0-384-ga76afae0e9
tk/ytkmm/ytkmm/gtkmm/tooltips.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TOOLTIPS_H
4 #define _GTKMM_TOOLTIPS_H
5 
6 #include <gtkmmconfig.h>
7 
8 #ifndef GTKMM_DISABLE_DEPRECATED
9 
10 
11 #include <glibmm/ustring.h>
12 #include <sigc++/sigc++.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  // 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 <gdkmm/color.h>
36 #include <gtkmm/object.h>
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 extern "C" { typedef struct _GtkTooltipsData GtkTooltipsData; }
41 #endif
42 
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
44 typedef struct _GtkTooltips GtkTooltips;
45 typedef struct _GtkTooltipsClass GtkTooltipsClass;
46 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
47 
48 
49 namespace Gtk
50 { class Tooltips_Class; } // namespace Gtk
51 namespace Gtk
52 {
53 
54 class Widget;
55 
67 class Tooltips : public Object
68 {
69  public:
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71  typedef Tooltips CppObjectType;
72  typedef Tooltips_Class CppClassType;
73  typedef GtkTooltips BaseObjectType;
74  typedef GtkTooltipsClass BaseClassType;
75 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
76 
77  virtual ~Tooltips();
78 
79 #ifndef DOXYGEN_SHOULD_SKIP_THIS
80 
81 private:
82  friend class Tooltips_Class;
83  static CppClassType tooltips_class_;
84 
85  // noncopyable
86  Tooltips(const Tooltips&);
87  Tooltips& operator=(const Tooltips&);
88 
89 protected:
90  explicit Tooltips(const Glib::ConstructParams& construct_params);
91  explicit Tooltips(GtkTooltips* castitem);
92 
93 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
94 
95 public:
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS
97  static GType get_type() G_GNUC_CONST;
98 
99 
100  static GType get_base_type() G_GNUC_CONST;
101 #endif
102 
104  GtkTooltips* gobj() { return reinterpret_cast<GtkTooltips*>(gobject_); }
105 
107  const GtkTooltips* gobj() const { return reinterpret_cast<GtkTooltips*>(gobject_); }
108 
109 
110 public:
111  //C++ methods used to invoke GTK+ virtual functions:
112 
113 protected:
114  //GTK+ Virtual Functions (override these to change behaviour):
115 
116  //Default Signal Handlers::
117 
118 
119 private:
120 
121 
122 public:
124 
125 
126  void enable();
127 
128  void disable();
129 
130 
138  void set_tip(Widget& widget, const Glib::ustring& tip_text, const Glib::ustring& tip_private);
139  void set_tip(Widget& widget, const Glib::ustring& tip_text);
140  void unset_tip(Widget& widget);
141 
142 protected:
143 
144  static GtkTooltipsData* data_get(Widget& widget);
145 
146 public:
147 
148  void force_window();
149 
150 
151 };
152 
153 } //namespace Gtk
154 
155 
156 namespace Glib
157 {
166  Gtk::Tooltips* wrap(GtkTooltips* object, bool take_copy = false);
167 } //namespace Glib
168 
169 
170 #endif // GTKMM_DISABLE_DEPRECATED
171 
172 
173 #endif /* _GTKMM_TOOLTIPS_H */
174 
void set_tip(Widget &widget, const Glib::ustring &tip_text, const Glib::ustring &tip_private)
Gtk::Tooltips * wrap(GtkTooltips *object, bool take_copy=false)
GtkTooltips * gobj()
Provides access to the underlying C GtkObject.
const GtkTooltips * gobj() const
Provides access to the underlying C GtkObject.
void set_tip(Widget &widget, const Glib::ustring &tip_text)
void unset_tip(Widget &widget)
void force_window()
static GtkTooltipsData * data_get(Widget &widget)
virtual ~Tooltips()
Definition: ardour_ui.h:187