Ardour  9.0-pre0-427-gd2a3450e2f
iconinfo.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ICONINFO_H
4 #define _GTKMM_ICONINFO_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* Copyright (C) 2003 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 <gdkmm/pixbuf.h>
28 #include <gdkmm/rectangle.h>
29 #include <gdkmm/types.h>
30 
31 //#include <gtk/gtkicontheme.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 extern "C" { typedef struct _GtkIconInfo GtkIconInfo; }
36 #endif
37 
38 namespace Gtk
39 {
40 
41 class IconTheme;
42 
43 class IconInfo
44 {
45  public:
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47  typedef IconInfo CppObjectType;
48  typedef GtkIconInfo BaseObjectType;
49 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
50 
53  static GType get_type() G_GNUC_CONST;
54 
56 
57  explicit IconInfo(GtkIconInfo* gobject, bool make_a_copy = true);
58 
59  IconInfo(const IconInfo& other);
60  IconInfo& operator=(const IconInfo& other);
61 
63 
64  void swap(IconInfo& other);
65 
67  GtkIconInfo* gobj() { return gobject_; }
68 
70  const GtkIconInfo* gobj() const { return gobject_; }
71 
74 
75 protected:
77 
78 private:
79 
80 
81 public:
82 
83  IconInfo(const Glib::RefPtr<IconTheme>& icon_theme, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
84 
85 
86  #ifndef GTKMM_DISABLE_DEPRECATED
87 
89  operator bool();
90  #endif // GTKMM_DISABLE_DEPRECATED
91 
92 
94  operator bool() const;
95 
96 
109  int get_base_size() const;
110 
121  Glib::ustring get_filename() const;
122 
131  Glib::RefPtr<Gdk::Pixbuf> get_builtin_pixbuf();
132 
141  Glib::RefPtr<const Gdk::Pixbuf> get_builtin_pixbuf() const;
142 
160  Glib::RefPtr<Gdk::Pixbuf> load_icon() const;
161 
181  void set_raw_coordinates(bool raw_coordinates = true);
182 
195  bool get_attach_points(Glib::ArrayHandle<Gdk::Point>& points) const;
196 
205  Glib::ustring get_display_name() const;
206 
207 
208 };
209 
210 } // namespace Gtk
211 
212 
213 namespace Gtk
214 {
215 
220 inline void swap(IconInfo& lhs, IconInfo& rhs)
221  { lhs.swap(rhs); }
222 
223 } // namespace Gtk
224 
225 namespace Glib
226 {
227 
236 Gtk::IconInfo wrap(GtkIconInfo* object, bool take_copy = false);
237 
238 #ifndef DOXYGEN_SHOULD_SKIP_THIS
239 template <>
240 class Value<Gtk::IconInfo> : public Glib::Value_Boxed<Gtk::IconInfo>
241 {};
242 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
243 
244 } // namespace Glib
245 
246 
247 #endif /* _GTKMM_ICONINFO_H */
248 
GtkIconInfo * gobj()
Provides access to the underlying C instance.
Definition: iconinfo.h:67
void swap(IconInfo &lhs, IconInfo &rhs)
Definition: iconinfo.h:220
bool get_attach_points(Glib::ArrayHandle< Gdk::Point > &points) const
Glib::RefPtr< const Gdk::Pixbuf > get_builtin_pixbuf() const
Glib::ustring get_filename() const
int get_base_size() const
void set_raw_coordinates(bool raw_coordinates=true)
Glib::RefPtr< Gdk::Pixbuf > load_icon() const
static GType get_type() G_GNUC_CONST
bool get_embedded_rect(Gdk::Rectangle &rectangle) const
void swap(IconInfo &other)
Glib::RefPtr< Gdk::Pixbuf > get_builtin_pixbuf()
Gtk::IconInfo wrap(GtkIconInfo *object, bool take_copy=false)
const GtkIconInfo * gobj() const
Provides access to the underlying C instance.
Definition: iconinfo.h:70
GtkIconInfo * gobject_
Definition: iconinfo.h:76
IconInfo(const Glib::RefPtr< IconTheme > &icon_theme, const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
GtkIconInfo * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it....
Glib::ustring get_display_name() const
struct _GtkIconInfo GtkIconInfo
Definition: gtkicontheme.h:41
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
Definition: ardour_ui.h:188
void rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)
Definition: lobject.h:100