Ardour  8.7-14-g57a6773833
colorbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_COLORBUTTON_H
4 #define _GTKMM_COLORBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: colorbutton.hg,v 1.5 2005/11/30 14:10:49 murrayc Exp $ */
11 
12 /* colorbutton.h
13  *
14  * Copyright (C) 2003 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/button.h>
32 #include <gdkmm/color.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkColorButton GtkColorButton;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class ColorButton_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
55 class ColorButton : public Button
56 {
57  public:
58 #ifndef DOXYGEN_SHOULD_SKIP_THIS
59  typedef ColorButton CppObjectType;
60  typedef ColorButton_Class CppClassType;
61  typedef GtkColorButton BaseObjectType;
62  typedef GtkColorButtonClass BaseClassType;
63 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
64 
65  virtual ~ColorButton();
66 
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 
69 private:
70  friend class ColorButton_Class;
71  static CppClassType colorbutton_class_;
72 
73  // noncopyable
74  ColorButton(const ColorButton&);
75  ColorButton& operator=(const ColorButton&);
76 
77 protected:
78  explicit ColorButton(const Glib::ConstructParams& construct_params);
79  explicit ColorButton(GtkColorButton* castitem);
80 
81 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
82 
83 public:
84 #ifndef DOXYGEN_SHOULD_SKIP_THIS
85  static GType get_type() G_GNUC_CONST;
86 
87 
88  static GType get_base_type() G_GNUC_CONST;
89 #endif
90 
92  GtkColorButton* gobj() { return reinterpret_cast<GtkColorButton*>(gobject_); }
93 
95  const GtkColorButton* gobj() const { return reinterpret_cast<GtkColorButton*>(gobject_); }
96 
97 
98 public:
99  //C++ methods used to invoke GTK+ virtual functions:
100 
101 protected:
102  //GTK+ Virtual Functions (override these to change behaviour):
103 
104  //Default Signal Handlers::
106  virtual void on_color_set();
107 
108 
109 private:
110 
111 public:
112 
121 
122 
131  explicit ColorButton(const Gdk::Color& color);
132 
133 
138  void set_color(const Gdk::Color& color);
139 
144  void set_alpha(guint16 alpha);
145 
153 
154 
159  guint16 get_alpha() const;
160 
165  void set_use_alpha(bool use_alpha = true);
166 
171  bool get_use_alpha() const;
172 
177  void set_title(const Glib::ustring& title);
178 
183  Glib::ustring get_title() const;
184 
190  Glib::PropertyProxy< bool > property_use_alpha() ;
191 
197  Glib::PropertyProxy_ReadOnly< bool > property_use_alpha() const;
198 
204  Glib::PropertyProxy< Glib::ustring > property_title() ;
205 
211  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const;
212 
218  Glib::PropertyProxy< Gdk::Color > property_color() ;
219 
225  Glib::PropertyProxy_ReadOnly< Gdk::Color > property_color() const;
226 
232  Glib::PropertyProxy< guint16 > property_alpha() ;
233 
239  Glib::PropertyProxy_ReadOnly< guint16 > property_alpha() const;
240 
241 
251  Glib::SignalProxy0< void > signal_color_set();
252 
253 
254 };
255 
256 
257 } // namespace Gtk
258 
259 
260 namespace Glib
261 {
270  Gtk::ColorButton* wrap(GtkColorButton* object, bool take_copy = false);
271 } //namespace Glib
272 
273 
274 #endif /* _GTKMM_COLORBUTTON_H */
275 
Glib::PropertyProxy_ReadOnly< guint16 > property_alpha() const
Gtk::ColorButton * wrap(GtkColorButton *object, bool take_copy=false)
virtual ~ColorButton()
GtkColorButton * gobj()
Provides access to the underlying C GtkObject.
Definition: colorbutton.h:92
Glib::PropertyProxy_ReadOnly< bool > property_use_alpha() const
Glib::PropertyProxy< guint16 > property_alpha()
Glib::PropertyProxy< Gdk::Color > property_color()
bool get_use_alpha() const
const GtkColorButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: colorbutton.h:95
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const
void set_title(const Glib::ustring &title)
Glib::PropertyProxy< bool > property_use_alpha()
ColorButton(const Gdk::Color &color)
void set_use_alpha(bool use_alpha=true)
Glib::PropertyProxy_ReadOnly< Gdk::Color > property_color() const
guint16 get_alpha() const
Glib::SignalProxy0< void > signal_color_set()
void set_color(const Gdk::Color &color)
Glib::ustring get_title() const
void set_alpha(guint16 alpha)
Glib::PropertyProxy< Glib::ustring > property_title()
Gdk::Color get_color() const
virtual void on_color_set()
This is a default handler for the signal signal_color_set().
PBD::PropertyDescriptor< uint32_t > color
Definition: ardour_ui.h:188