Ardour  9.0-pre0-582-g084a23a80d
iconsource.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ICONSOURCE_H
4 #define _GTKMM_ICONSOURCE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: iconsource.hg,v 1.5 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* iconsource.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 #include <gdkmm/pixbuf.h>
32 #include <gtkmm/enums.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 extern "C" { typedef struct _GtkIconSource GtkIconSource; }
37 #endif
38 
39 namespace Gtk
40 {
41 
43 {
44  public:
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46  typedef IconSource CppObjectType;
47  typedef GtkIconSource BaseObjectType;
48 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
49 
52  static GType get_type() G_GNUC_CONST;
53 
55 
56  explicit IconSource(GtkIconSource* gobject, bool make_a_copy = true);
57 
58  IconSource(const IconSource& other);
59  IconSource& operator=(const IconSource& other);
60 
62 
63  void swap(IconSource& other);
64 
66  GtkIconSource* gobj() { return gobject_; }
67 
69  const GtkIconSource* gobj() const { return gobject_; }
70 
73 
74 protected:
76 
77 private:
78 
79 
80 public:
81 
82 
88  void set_filename(const Glib::ustring& filename);
89 
95  void set_pixbuf(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf);
96 
97 
105  Glib::ustring get_filename() const;
106 
117  Glib::RefPtr<Gdk::Pixbuf> get_pixbuf();
118 
129  Glib::RefPtr<const Gdk::Pixbuf> get_pixbuf() const;
130 
131 
144  void set_direction_wildcarded(bool setting = true);
145 
162  void set_state_wildcarded(bool setting = true);
163 
179  void set_size_wildcarded(bool setting = true);
180 
185  bool get_size_wildcarded() const;
186 
191  bool get_state_wildcarded() const;
192 
198 
209  void set_direction(TextDirection direction);
210 
222 
233  void set_size(IconSize size);
234 
242 
250 
257 
258 
264  void set_icon_name(const Glib::ustring& icon_name);
265 
272  Glib::ustring get_icon_name() const;
273 
274 
275 };
276 
277 } /* namespace Gtk */
278 
279 
280 namespace Gtk
281 {
282 
287 inline void swap(IconSource& lhs, IconSource& rhs)
288  { lhs.swap(rhs); }
289 
290 } // namespace Gtk
291 
292 namespace Glib
293 {
294 
303 Gtk::IconSource wrap(GtkIconSource* object, bool take_copy = false);
304 
305 #ifndef DOXYGEN_SHOULD_SKIP_THIS
306 template <>
307 class Value<Gtk::IconSource> : public Glib::Value_Boxed<Gtk::IconSource>
308 {};
309 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
310 
311 } // namespace Glib
312 
313 
314 #endif /* _GTKMM_ICONSOURCE_H */
315 
static GType get_type() G_GNUC_CONST
bool get_direction_wildcarded() const
void set_direction_wildcarded(bool setting=true)
void set_direction(TextDirection direction)
bool get_state_wildcarded() const
void swap(IconSource &lhs, IconSource &rhs)
Definition: iconsource.h:287
void swap(IconSource &other)
Glib::ustring get_icon_name() const
void set_filename(const Glib::ustring &filename)
bool get_size_wildcarded() const
GtkIconSource * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it....
GtkIconSource * gobject_
Definition: iconsource.h:75
void set_state_wildcarded(bool setting=true)
GtkIconSource * gobj()
Provides access to the underlying C instance.
Definition: iconsource.h:66
Gtk::IconSource wrap(GtkIconSource *object, bool take_copy=false)
Gtk::StateType get_state() const
void set_pixbuf(const Glib::RefPtr< Gdk::Pixbuf > &pixbuf)
void set_size_wildcarded(bool setting=true)
Glib::RefPtr< Gdk::Pixbuf > get_pixbuf()
const GtkIconSource * gobj() const
Provides access to the underlying C instance.
Definition: iconsource.h:69
void set_state(Gtk::StateType state)
Glib::ustring get_filename() const
void set_size(IconSize size)
void set_icon_name(const Glib::ustring &icon_name)
TextDirection get_direction() const
Glib::RefPtr< const Gdk::Pixbuf > get_pixbuf() const
IconSize get_size() const
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
struct _GtkIconSource GtkIconSource
Definition: gtkstyle.h:59
Definition: ardour_ui.h:188
Definition: lobject.h:100