Ardour  8.7-14-g57a6773833
tooltip.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TOOLTIP_H
4 #define _GTKMM_TOOLTIP_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* Copyright (C) 2007 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 #include <glibmm/object.h>
28 #include <giomm/icon.h>
29 #include <gdkmm/pixbuf.h>
30 #include <gtkmm/enums.h>
31 #include <gtkmm/widget.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkTooltip GtkTooltip;
36 typedef struct _GtkTooltipClass GtkTooltipClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 namespace Gtk
42 { class Tooltip_Class; } // namespace Gtk
43 #endif //DOXYGEN_SHOULD_SKIP_THIS
44 
45 namespace Gtk
46 {
47 
92 class Tooltip : public Glib::Object
93 {
94 protected:
95 
96 #ifndef DOXYGEN_SHOULD_SKIP_THIS
97 
98 public:
99  typedef Tooltip CppObjectType;
100  typedef Tooltip_Class CppClassType;
101  typedef GtkTooltip BaseObjectType;
102  typedef GtkTooltipClass BaseClassType;
103 
104 private: friend class Tooltip_Class;
105  static CppClassType tooltip_class_;
106 
107 private:
108  // noncopyable
109  Tooltip(const Tooltip&);
110  Tooltip& operator=(const Tooltip&);
111 
112 protected:
113  explicit Tooltip(const Glib::ConstructParams& construct_params);
114  explicit Tooltip(GtkTooltip* castitem);
115 
116 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
117 
118 public:
119  virtual ~Tooltip();
120 
123  static GType get_type() G_GNUC_CONST;
124 
125 #ifndef DOXYGEN_SHOULD_SKIP_THIS
126 
127 
128  static GType get_base_type() G_GNUC_CONST;
129 #endif
130 
132  GtkTooltip* gobj() { return reinterpret_cast<GtkTooltip*>(gobject_); }
133 
135  const GtkTooltip* gobj() const { return reinterpret_cast<GtkTooltip*>(gobject_); }
136 
139 
140 private:
141 
142 
143 public:
144 
151  void set_markup(const Glib::ustring& markup);
152 
158  void set_text(const Glib::ustring& text);
159 
165  void set_icon(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
166 
174  void set_icon(const Glib::RefPtr<Gio::Icon>& icon, IconSize size);
175 
176  //TODO: Remove the _from_*() suffixes?
177 
185  void set_icon_from_stock(const StockID& stock_id, IconSize size);
186 
194  void set_icon_from_icon_name(const Glib::ustring& icon_name, IconSize size);
195 
196 
207  void set_custom(Widget& custom_widget);
208 
220  void set_tip_area(const Gdk::Rectangle& rect);
221 
222 
223  static void trigger_tooltip_query(const Glib::RefPtr<Gdk::Display>& display);
224 
225 
226 public:
227 
228 public:
229  //C++ methods used to invoke GTK+ virtual functions:
230 
231 protected:
232  //GTK+ Virtual Functions (override these to change behaviour):
233 
234  //Default Signal Handlers::
235 
236 
237 };
238 
239 } // namespace Gtk
240 
241 
242 namespace Glib
243 {
252  Glib::RefPtr<Gtk::Tooltip> wrap(GtkTooltip* object, bool take_copy = false);
253 }
254 
255 
256 #endif /* _GTKMM_TOOLTIP_H */
257 
void set_text(const Glib::ustring &text)
void set_icon_from_stock(const StockID &stock_id, IconSize size)
void set_tip_area(const Gdk::Rectangle &rect)
virtual ~Tooltip()
const GtkTooltip * gobj() const
Provides access to the underlying C GObject.
Definition: tooltip.h:135
static GType get_type() G_GNUC_CONST
void set_custom(Widget &custom_widget)
void set_markup(const Glib::ustring &markup)
void set_icon(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
GtkTooltip * gobj()
Provides access to the underlying C GObject.
Definition: tooltip.h:132
void set_icon(const Glib::RefPtr< Gio::Icon > &icon, IconSize size)
Glib::RefPtr< Gtk::Tooltip > wrap(GtkTooltip *object, bool take_copy=false)
GtkTooltip * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
static void trigger_tooltip_query(const Glib::RefPtr< Gdk::Display > &display)
void set_icon_from_icon_name(const Glib::ustring &icon_name, IconSize size)
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
struct _GtkTooltip GtkTooltip
Definition: gtkwidget.h:484
Definition: ardour_ui.h:188