Ardour  9.0-pre0-582-g084a23a80d
bin.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_BIN_H
4 #define _GTKMM_BIN_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: bin.hg,v 1.2 2003/03/03 07:49:05 murrayc Exp $ */
11 
12 /* bin.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 <gtkmm/container.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkBin GtkBin;
36 typedef struct _GtkBinClass GtkBinClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Bin_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
54 class Bin : public Container
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef Bin CppObjectType;
59  typedef Bin_Class CppClassType;
60  typedef GtkBin BaseObjectType;
61  typedef GtkBinClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~Bin();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class Bin_Class;
70  static CppClassType bin_class_;
71 
72  // noncopyable
73  Bin(const Bin&);
74  Bin& operator=(const Bin&);
75 
76 protected:
77  explicit Bin(const Glib::ConstructParams& construct_params);
78  explicit Bin(GtkBin* castitem);
79 
80 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81 
82 public:
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84  static GType get_type() G_GNUC_CONST;
85 
86 
87  static GType get_base_type() G_GNUC_CONST;
88 #endif
89 
91  GtkBin* gobj() { return reinterpret_cast<GtkBin*>(gobject_); }
92 
94  const GtkBin* gobj() const { return reinterpret_cast<GtkBin*>(gobject_); }
95 
96 
97 public:
98  //C++ methods used to invoke GTK+ virtual functions:
99 
100 protected:
101  //GTK+ Virtual Functions (override these to change behaviour):
102 
103  //Default Signal Handlers::
104 
105 
106 private:
107 
108 protected:
109 
113  Bin();
114 public:
115 
116 
124 
131  const Gtk::Widget* get_child() const;
132 
141  void remove();
142 
143  //Convenience methods that don't correspond to GTK+ functions:
144 
156  void add_label(const Glib::ustring& label, bool mnemonic = false,
157  double x_align = 0.5, double y_align = 0.5);
158 
170  void add_label(const Glib::ustring& label, bool mnemonic,
171  AlignmentEnum x_align, AlignmentEnum y_align = ALIGN_CENTER);
172 
180  void add_pixmap(const Glib::RefPtr<Gdk::Pixmap>& pixmap,
181  const Glib::RefPtr<Gdk::Bitmap>& mask);
182 
194  void add_pixlabel(const Glib::RefPtr<Gdk::Pixmap>& pixmap,
195  const Glib::RefPtr<Gdk::Bitmap>& mask,
196  const Glib::ustring& label,
197  double x_align = 0.5, double y_align = 0.5);
198 
209  void add_pixlabel(const Glib::ustring& pixfile,
210  const Glib::ustring& label,
211  double x_align = 0.5, double y_align = 0.5);
212 
213 
214 };
215 
216 } /* namespace Gtk */
217 
218 
219 namespace Glib
220 {
229  Gtk::Bin* wrap(GtkBin* object, bool take_copy = false);
230 } //namespace Glib
231 
232 
233 #endif /* _GTKMM_BIN_H */
234 
Definition: bin.h:55
void add_pixlabel(const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask, const Glib::ustring &label, double x_align=0.5, double y_align=0.5)
void add_label(const Glib::ustring &label, bool mnemonic=false, double x_align=0.5, double y_align=0.5)
const GtkBin * gobj() const
Provides access to the underlying C GtkObject.
Definition: bin.h:94
Gtk::Bin * wrap(GtkBin *object, bool take_copy=false)
virtual ~Bin()
GtkBin * gobj()
Provides access to the underlying C GtkObject.
Definition: bin.h:91
void add_pixmap(const Glib::RefPtr< Gdk::Pixmap > &pixmap, const Glib::RefPtr< Gdk::Bitmap > &mask)
Gtk::Widget * get_child()
void remove()
void add_pixlabel(const Glib::ustring &pixfile, const Glib::ustring &label, double x_align=0.5, double y_align=0.5)
const Gtk::Widget * get_child() const
void add_label(const Glib::ustring &label, bool mnemonic, AlignmentEnum x_align, AlignmentEnum y_align=ALIGN_CENTER)
GtkImagePixmapData pixmap
Definition: gtkimage.h:0
Definition: ardour_ui.h:188
Definition: gtkbin.h:52