Ardour  9.0-pre0-384-ga76afae0e9
colorselection.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_COLORSELECTION_H
4 #define _GTKMM_COLORSELECTION_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: colorselection.hg,v 1.2 2004/02/10 14:50:11 murrayc Exp $ */
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 
30 #include <gtkmm/box.h>
31 #include <gtkmm/dialog.h>
32 #include <gtkmm/button.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class ColorSelection_Class; } // namespace Gtk
43 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
47 
48 
49 namespace Gtk
50 { class ColorSelectionDialog_Class; } // namespace Gtk
51 namespace Gtk
52 {
53 
66 class ColorSelection : public VBox
67 {
68  public:
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70  typedef ColorSelection CppObjectType;
71  typedef ColorSelection_Class CppClassType;
72  typedef GtkColorSelection BaseObjectType;
73  typedef GtkColorSelectionClass BaseClassType;
74 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
75 
76  virtual ~ColorSelection();
77 
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79 
80 private:
81  friend class ColorSelection_Class;
82  static CppClassType colorselection_class_;
83 
84  // noncopyable
86  ColorSelection& operator=(const ColorSelection&);
87 
88 protected:
89  explicit ColorSelection(const Glib::ConstructParams& construct_params);
90  explicit ColorSelection(GtkColorSelection* castitem);
91 
92 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
93 
94 public:
95 #ifndef DOXYGEN_SHOULD_SKIP_THIS
96  static GType get_type() G_GNUC_CONST;
97 
98 
99  static GType get_base_type() G_GNUC_CONST;
100 #endif
101 
103  GtkColorSelection* gobj() { return reinterpret_cast<GtkColorSelection*>(gobject_); }
104 
106  const GtkColorSelection* gobj() const { return reinterpret_cast<GtkColorSelection*>(gobject_); }
107 
108 
109 public:
110  //C++ methods used to invoke GTK+ virtual functions:
111 
112 protected:
113  //GTK+ Virtual Functions (override these to change behaviour):
114 
115  //Default Signal Handlers::
117  virtual void on_color_changed();
118 
119 
120 private:
121 
122 
123 public:
125 
126 
132 
137  void set_has_opacity_control(bool has_opacity = true);
138 
143  bool get_has_palette() const;
144 
149  void set_has_palette(bool has_palette = true);
150 
157 
163  void set_current_alpha(guint16 alpha);
165 
170  guint16 get_current_alpha() const;
171 
180 
186  void set_previous_alpha(guint16 alpha);
188 
193  guint16 get_previous_alpha() const;
194 
195 
201  bool is_adjusting() const;
202 
203  static Gdk::ArrayHandle_Color palette_from_string(const Glib::ustring& str);
204  static Glib::ustring palette_to_string(const Gdk::ArrayHandle_Color& colors);
205 
206  typedef sigc::slot<void, const Glib::RefPtr<Gdk::Screen>&,
208 
210 
211 
218  Glib::SignalProxy0< void > signal_color_changed();
219 
220 
226  Glib::PropertyProxy< bool > property_has_palette() ;
227 
233  Glib::PropertyProxy_ReadOnly< bool > property_has_palette() const;
234 
240  Glib::PropertyProxy< bool > property_has_opacity_control() ;
241 
247  Glib::PropertyProxy_ReadOnly< bool > property_has_opacity_control() const;
248 
254  Glib::PropertyProxy< Gdk::Color > property_current_color() ;
255 
261  Glib::PropertyProxy_ReadOnly< Gdk::Color > property_current_color() const;
262 
268  Glib::PropertyProxy< guint > property_current_alpha() ;
269 
275  Glib::PropertyProxy_ReadOnly< guint > property_current_alpha() const;
276 
277 
278 };
279 
286 {
287  public:
288 #ifndef DOXYGEN_SHOULD_SKIP_THIS
289  typedef ColorSelectionDialog CppObjectType;
290  typedef ColorSelectionDialog_Class CppClassType;
291  typedef GtkColorSelectionDialog BaseObjectType;
292  typedef GtkColorSelectionDialogClass BaseClassType;
293 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
294 
296 
297 #ifndef DOXYGEN_SHOULD_SKIP_THIS
298 
299 private:
300  friend class ColorSelectionDialog_Class;
301  static CppClassType colorselectiondialog_class_;
302 
303  // noncopyable
305  ColorSelectionDialog& operator=(const ColorSelectionDialog&);
306 
307 protected:
308  explicit ColorSelectionDialog(const Glib::ConstructParams& construct_params);
309  explicit ColorSelectionDialog(GtkColorSelectionDialog* castitem);
310 
311 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
312 
313 public:
314 #ifndef DOXYGEN_SHOULD_SKIP_THIS
315  static GType get_type() G_GNUC_CONST;
316 
317 
318  static GType get_base_type() G_GNUC_CONST;
319 #endif
320 
322  GtkColorSelectionDialog* gobj() { return reinterpret_cast<GtkColorSelectionDialog*>(gobject_); }
323 
325  const GtkColorSelectionDialog* gobj() const { return reinterpret_cast<GtkColorSelectionDialog*>(gobject_); }
326 
327 
328 public:
329  //C++ methods used to invoke GTK+ virtual functions:
330 
331 protected:
332  //GTK+ Virtual Functions (override these to change behaviour):
333 
334  //Default Signal Handlers::
335 
336 
337 private:
338 
339 
340 public:
341 
343  explicit ColorSelectionDialog(const Glib::ustring& title);
344 
345 
351 
357 
358 #ifndef GTKMM_DISABLE_DEPRECATED
359 
360  //TODO: Remove these in gtkmm 3. They use G_SEAL()ed struct fields.
361 
365 
368  const ColorSelection* get_colorsel() const;
369 
373  const Button* get_ok_button() const;
374 
378  const Button* get_cancel_button() const;
379 
383  const Button* get_help_button() const;
384  #endif // GTKMM_DISABLE_DEPRECATED
385 
386 
392  Glib::PropertyProxy_ReadOnly< ColorSelection* > property_color_selection() const;
393 
394 
400  Glib::PropertyProxy_ReadOnly< Button* > property_ok_button() const;
401 
402 
408  Glib::PropertyProxy_ReadOnly< Button* > property_cancel_button() const;
409 
410 
416  Glib::PropertyProxy_ReadOnly< Button* > property_help_button() const;
417 
418 
419 };
420 
421 } // namespace Gtk
422 
423 
424 namespace Glib
425 {
434  Gtk::ColorSelection* wrap(GtkColorSelection* object, bool take_copy = false);
435 } //namespace Glib
436 
437 
438 namespace Glib
439 {
448  Gtk::ColorSelectionDialog* wrap(GtkColorSelectionDialog* object, bool take_copy = false);
449 } //namespace Glib
450 
451 
452 #endif /* _GTKMM_COLORSELECTION_H */
453 
GtkColorSelectionDialog * gobj()
Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly< ColorSelection * > property_color_selection() const
Glib::PropertyProxy_ReadOnly< Button * > property_ok_button() const
const Button * get_ok_button() const
const ColorSelection * get_color_selection() const
const ColorSelection * get_colorsel() const
const GtkColorSelectionDialog * gobj() const
Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly< Button * > property_help_button() const
Gtk::ColorSelectionDialog * wrap(GtkColorSelectionDialog *object, bool take_copy=false)
ColorSelection * get_colorsel()
Glib::PropertyProxy_ReadOnly< Button * > property_cancel_button() const
const Button * get_help_button() const
const Button * get_cancel_button() const
ColorSelectionDialog(const Glib::ustring &title)
ColorSelection * get_color_selection()
static Glib::ustring palette_to_string(const Gdk::ArrayHandle_Color &colors)
Glib::SignalProxy0< void > signal_color_changed()
void set_current_alpha(guint16 alpha)
Gtk::ColorSelection * wrap(GtkColorSelection *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< bool > property_has_opacity_control() const
bool get_has_opacity_control() const
void set_current_color(const Gdk::Color &color)
Glib::PropertyProxy< guint > property_current_alpha()
static Gdk::ArrayHandle_Color palette_from_string(const Glib::ustring &str)
Glib::PropertyProxy< Gdk::Color > property_current_color()
void set_has_opacity_control(bool has_opacity=true)
Glib::PropertyProxy< bool > property_has_opacity_control()
void set_has_palette(bool has_palette=true)
guint16 get_current_alpha() const
sigc::slot< void, const Glib::RefPtr< Gdk::Screen > &, const Gdk::ArrayHandle_Color & > SlotChangePaletteHook
GtkColorSelection * gobj()
Provides access to the underlying C GtkObject.
void set_previous_alpha(guint16 alpha)
Gdk::Color get_previous_color() const
static SlotChangePaletteHook set_change_palette_hook(const SlotChangePaletteHook &slot)
bool is_adjusting() const
void set_previous_color(const Gdk::Color &color)
bool get_has_palette() const
Glib::PropertyProxy< bool > property_has_palette()
guint16 get_previous_alpha() const
Glib::PropertyProxy_ReadOnly< guint > property_current_alpha() const
Glib::PropertyProxy_ReadOnly< bool > property_has_palette() const
virtual void on_color_changed()
This is a default handler for the signal signal_color_changed().
Glib::PropertyProxy_ReadOnly< Gdk::Color > property_current_color() const
Gdk::Color get_current_color() const
const GtkColorSelection * gobj() const
Provides access to the underlying C GtkObject.
virtual ~ColorSelection()
PBD::PropertyDescriptor< uint32_t > color
Glib::ArrayHandle< Color, ColorTraits > ArrayHandle_Color
Definition: color.h:242
Definition: ardour_ui.h:187