libgnomeuimm  2.28.0
font-picker.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEUIMM_FONT_PICKER_H
4 #define _LIBGNOMEUIMM_FONT_PICKER_H
5 
6 
7 #include <glibmm.h>
8 
9 /* $Id: font-picker.hg,v 1.15 2003/11/29 16:39:08 murrayc Exp $ */
10 
11 
12 /* font-picker.hg
13  *
14  * Copyright (C) 1999 The Gtk-- 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 <libgnomeui/gnome-font-picker.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GnomeFontPicker GnomeFontPicker;
37 typedef struct _GnomeFontPickerClass GnomeFontPickerClass;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gnome
42 {
43 
44 namespace UI
45 { class FontPicker_Class; } // namespace UI
46 
47 } // namespace Gnome
48 namespace Gnome
49 {
50 
51 namespace UI
52 {
53 
54 #ifndef GNOMEMM_DISABLE_DEPRECATED
55 
56 
57 class FontPicker : public Gtk::Button
58 {
59  public:
60 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61  typedef FontPicker CppObjectType;
62  typedef FontPicker_Class CppClassType;
63  typedef GnomeFontPicker BaseObjectType;
64  typedef GnomeFontPickerClass BaseClassType;
65 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
66 
67  virtual ~FontPicker();
68 
69 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 
71 private:
72  friend class FontPicker_Class;
73  static CppClassType fontpicker_class_;
74 
75  // noncopyable
76  FontPicker(const FontPicker&);
77  FontPicker& operator=(const FontPicker&);
78 
79 protected:
80  explicit FontPicker(const Glib::ConstructParams& construct_params);
81  explicit FontPicker(GnomeFontPicker* castitem);
82 
83 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
84 
85 public:
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87  static GType get_type() G_GNUC_CONST;
88 
89 
90  static GType get_base_type() G_GNUC_CONST;
91 #endif
92 
94  GnomeFontPicker* gobj() { return reinterpret_cast<GnomeFontPicker*>(gobject_); }
95 
97  const GnomeFontPicker* gobj() const { return reinterpret_cast<GnomeFontPicker*>(gobject_); }
98 
99 
100 public:
101  //C++ methods used to invoke GTK+ virtual functions:
102 #ifdef GLIBMM_VFUNCS_ENABLED
103 #endif //GLIBMM_VFUNCS_ENABLED
104 
105 protected:
106  //GTK+ Virtual Functions (override these to change behaviour):
107 #ifdef GLIBMM_VFUNCS_ENABLED
108 #endif //GLIBMM_VFUNCS_ENABLED
109 
110  //Default Signal Handlers::
111 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
112  virtual void on_font_set(const Glib::ustring& font_name);
113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
114 
115 
116 private:
117 
118 
119 public:
121 
122 
123  void set_title(const Glib::ustring& title);
124 
125  Glib::ustring get_title() const;
126 
127  GnomeFontPickerMode get_mode() const;
128 
129  void set_mode(GnomeFontPickerMode mode);
130 
131  void set_use_font_in_label (bool use_font_in_label, gint size);
132 
133  void set_show_size (bool show_size = true);
134 
135  void uw_set_widget(Gtk::Widget& widget);
136 
137 
138  Gtk::Widget* uw_get_widget();
139 
140  const Gtk::Widget* uw_get_widget() const;
141 
142 
143  Glib::ustring get_font_name() const;;
144 
145  bool set_font_name(const Glib::ustring& fontname);
146 
147  Glib::ustring get_preview_text() const;
148 
149  void set_preview_text(const Glib::ustring& text);
150 
151 
157  Glib::SignalProxy1< void,const Glib::ustring& > signal_font_set();
158 ;
159 
160  #ifdef GLIBMM_PROPERTIES_ENABLED
161 
167  Glib::PropertyProxy<Glib::ustring> property_title() ;
168 #endif //#GLIBMM_PROPERTIES_ENABLED
169 
170 #ifdef GLIBMM_PROPERTIES_ENABLED
171 
177  Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
178 #endif //#GLIBMM_PROPERTIES_ENABLED
179 
180  #ifdef GLIBMM_PROPERTIES_ENABLED
181 
187  Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ;
188 #endif //#GLIBMM_PROPERTIES_ENABLED
189 
190 #ifdef GLIBMM_PROPERTIES_ENABLED
191 
197  Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const;
198 #endif //#GLIBMM_PROPERTIES_ENABLED
199 
200  #ifdef GLIBMM_PROPERTIES_ENABLED
201 
207  Glib::PropertyProxy<Glib::ustring> property_font_name() ;
208 #endif //#GLIBMM_PROPERTIES_ENABLED
209 
210 #ifdef GLIBMM_PROPERTIES_ENABLED
211 
217  Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const;
218 #endif //#GLIBMM_PROPERTIES_ENABLED
219 
220  #ifdef GLIBMM_PROPERTIES_ENABLED
221 
227  Glib::PropertyProxy<Glib::ustring> property_preview_text() ;
228 #endif //#GLIBMM_PROPERTIES_ENABLED
229 
230 #ifdef GLIBMM_PROPERTIES_ENABLED
231 
237  Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const;
238 #endif //#GLIBMM_PROPERTIES_ENABLED
239 
240  #ifdef GLIBMM_PROPERTIES_ENABLED
241 
247  Glib::PropertyProxy<bool> property_use_font_in_label() ;
248 #endif //#GLIBMM_PROPERTIES_ENABLED
249 
250 #ifdef GLIBMM_PROPERTIES_ENABLED
251 
257  Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const;
258 #endif //#GLIBMM_PROPERTIES_ENABLED
259 
260  #ifdef GLIBMM_PROPERTIES_ENABLED
261 
267  Glib::PropertyProxy<int> property_label_font_size() ;
268 #endif //#GLIBMM_PROPERTIES_ENABLED
269 
270 #ifdef GLIBMM_PROPERTIES_ENABLED
271 
277  Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const;
278 #endif //#GLIBMM_PROPERTIES_ENABLED
279 
280  #ifdef GLIBMM_PROPERTIES_ENABLED
281 
287  Glib::PropertyProxy<bool> property_show_size() ;
288 #endif //#GLIBMM_PROPERTIES_ENABLED
289 
290 #ifdef GLIBMM_PROPERTIES_ENABLED
291 
297  Glib::PropertyProxy_ReadOnly<bool> property_show_size() const;
298 #endif //#GLIBMM_PROPERTIES_ENABLED
299 
300 
301 };
302 
303 #endif //GNOMEMM_DISABLE_DEPRECATED
304 
305 } /* namespace UI */
306 } /* namespace Gnome */
307 
308 
309 namespace Glib
310 {
319  Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false);
320 } //namespace Glib
321 
322 
323 #endif /* _LIBGNOMEUIMM_FONT_PICKER_H */
324 
Gnome::UI::FontPicker::property_mode
Glib::PropertyProxy_ReadOnly< GnomeFontPickerMode > property_mode() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::wrap
Gnome::UI::FontPicker * wrap(GnomeFontPicker *object, bool take_copy=false)
A Glib::wrap() method for this object.
Gnome
Definition: about.h:46
Gnome::UI::FontPicker::FontPicker
FontPicker()
Gnome::UI::FontPicker::property_show_size
Glib::PropertyProxy_ReadOnly< bool > property_show_size() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::gobj
const GnomeFontPicker * gobj() const
Provides access to the underlying C GtkObject.
Definition: font-picker.h:97
Gnome::UI::FontPicker::uw_get_widget
Gtk::Widget * uw_get_widget()
Gnome::UI::FontPicker
Definition: font-picker.h:58
Gnome::UI::FontPicker::set_use_font_in_label
void set_use_font_in_label(bool use_font_in_label, gint size)
Gnome::UI::FontPicker::signal_font_set
Glib::SignalProxy1< void, const Glib::ustring & > signal_font_set()
Gnome::UI::FontPicker::property_use_font_in_label
Glib::PropertyProxy< bool > property_use_font_in_label()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::property_font_name
Glib::PropertyProxy< Glib::ustring > property_font_name()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::set_mode
void set_mode(GnomeFontPickerMode mode)
Gnome::UI::FontPicker::uw_set_widget
void uw_set_widget(Gtk::Widget &widget)
Gnome::UI::FontPicker::gobj
GnomeFontPicker * gobj()
Provides access to the underlying C GtkObject.
Definition: font-picker.h:94
Gnome::UI::FontPicker::get_font_name
Glib::ustring get_font_name() const
Gnome::UI::FontPicker::get_mode
GnomeFontPickerMode get_mode() const
Gnome::UI::FontPicker::property_title
Glib::PropertyProxy< Glib::ustring > property_title()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::set_preview_text
void set_preview_text(const Glib::ustring &text)
Gnome::UI::FontPicker::property_show_size
Glib::PropertyProxy< bool > property_show_size()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::property_mode
Glib::PropertyProxy< GnomeFontPickerMode > property_mode()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::property_title
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::property_preview_text
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_preview_text() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::set_show_size
void set_show_size(bool show_size=true)
Gnome::UI::FontPicker::property_font_name
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_font_name() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::property_label_font_size
Glib::PropertyProxy< int > property_label_font_size()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::set_title
void set_title(const Glib::ustring &title)
Gnome::UI::FontPicker::uw_get_widget
const Gtk::Widget * uw_get_widget() const
Gnome::UI::FontPicker::property_label_font_size
Glib::PropertyProxy_ReadOnly< int > property_label_font_size() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::get_title
Glib::ustring get_title() const
Gnome::UI::FontPicker::on_font_set
virtual void on_font_set(const Glib::ustring &font_name)
Gnome::UI::FontPicker::property_use_font_in_label
Glib::PropertyProxy_ReadOnly< bool > property_use_font_in_label() const
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::property_preview_text
Glib::PropertyProxy< Glib::ustring > property_preview_text()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Gnome::UI::FontPicker::~FontPicker
virtual ~FontPicker()
Gnome::UI::FontPicker::get_preview_text
Glib::ustring get_preview_text() const
Glib
Definition: about.h:306
Gnome::UI::FontPicker::set_font_name
bool set_font_name(const Glib::ustring &fontname)