Ardour  9.0-pre0-386-g96ef4d20f2
fontbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_FONTBUTTON_H
4 #define _GTKMM_FONTBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: fontbutton.hg,v 1.5 2006/08/02 14:42:41 jjongsma Exp $ */
11 
12 /* fontbutton.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 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkFontButton GtkFontButton;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class FontButton_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
54 class FontButton : public Button
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef FontButton CppObjectType;
59  typedef FontButton_Class CppClassType;
60  typedef GtkFontButton BaseObjectType;
61  typedef GtkFontButtonClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~FontButton();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class FontButton_Class;
70  static CppClassType fontbutton_class_;
71 
72  // noncopyable
73  FontButton(const FontButton&);
74  FontButton& operator=(const FontButton&);
75 
76 protected:
77  explicit FontButton(const Glib::ConstructParams& construct_params);
78  explicit FontButton(GtkFontButton* 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  GtkFontButton* gobj() { return reinterpret_cast<GtkFontButton*>(gobject_); }
92 
94  const GtkFontButton* gobj() const { return reinterpret_cast<GtkFontButton*>(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::
105  virtual void on_font_set();
106 
107 
108 private:
109 
110 public:
112  explicit FontButton(const Glib::ustring& font_name);
113 
114 
119  Glib::ustring get_title() const;
120 
125  void set_title(const Glib::ustring& title);
126 
131  bool get_use_font() const;
132 
137  void set_use_font(bool use_font = true);
138 
143  bool get_use_size() const;
144 
149  void set_use_size(bool use_size = true);
150 
160  Glib::ustring get_font_name() const;
161 
168  bool set_font_name(const Glib::ustring& fontname);
169 
174  bool get_show_style() const;
175 
180  void set_show_style(bool show_style = true);
181 
186  bool get_show_size() const;
187 
192  void set_show_size(bool show_size = true);
193 
199  Glib::PropertyProxy< Glib::ustring > property_title() ;
200 
206  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const;
207 
213  Glib::PropertyProxy< Glib::ustring > property_font_name() ;
214 
220  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_font_name() const;
221 
227  Glib::PropertyProxy< bool > property_use_font() ;
228 
234  Glib::PropertyProxy_ReadOnly< bool > property_use_font() const;
235 
241  Glib::PropertyProxy< bool > property_use_size() ;
242 
248  Glib::PropertyProxy_ReadOnly< bool > property_use_size() const;
249 
255  Glib::PropertyProxy< bool > property_show_style() ;
256 
262  Glib::PropertyProxy_ReadOnly< bool > property_show_style() const;
263 
269  Glib::PropertyProxy< bool > property_show_size() ;
270 
276  Glib::PropertyProxy_ReadOnly< bool > property_show_size() const;
277 
278 
287  Glib::SignalProxy0< void > signal_font_set();
288 
289 
290 };
291 
292 
293 } // namespace Gtk
294 
295 
296 namespace Glib
297 {
306  Gtk::FontButton* wrap(GtkFontButton* object, bool take_copy = false);
307 } //namespace Glib
308 
309 
310 #endif /* _GTKMM_FONTBUTTON_H */
311 
void set_show_style(bool show_style=true)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const
Glib::PropertyProxy_ReadOnly< bool > property_show_size() const
void set_show_size(bool show_size=true)
Glib::PropertyProxy< bool > property_use_size()
Glib::PropertyProxy< Glib::ustring > property_font_name()
Glib::ustring get_font_name() const
bool set_font_name(const Glib::ustring &fontname)
Glib::ustring get_title() const
bool get_show_style() const
Glib::PropertyProxy_ReadOnly< bool > property_show_style() const
Glib::PropertyProxy< bool > property_show_size()
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_font_name() const
virtual void on_font_set()
This is a default handler for the signal signal_font_set().
FontButton(const Glib::ustring &font_name)
Glib::PropertyProxy< bool > property_use_font()
Glib::SignalProxy0< void > signal_font_set()
const GtkFontButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: fontbutton.h:94
virtual ~FontButton()
void set_use_font(bool use_font=true)
Glib::PropertyProxy_ReadOnly< bool > property_use_size() const
Glib::PropertyProxy< Glib::ustring > property_title()
bool get_show_size() const
void set_title(const Glib::ustring &title)
void set_use_size(bool use_size=true)
Gtk::FontButton * wrap(GtkFontButton *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< bool > property_use_font() const
Glib::PropertyProxy< bool > property_show_style()
GtkFontButton * gobj()
Provides access to the underlying C GtkObject.
Definition: fontbutton.h:91
bool get_use_size() const
bool get_use_font() const
Definition: ardour_ui.h:187