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
36typedef struct _GnomeFontPicker GnomeFontPicker;
37typedef struct _GnomeFontPickerClass GnomeFontPickerClass;
38#endif /* DOXYGEN_SHOULD_SKIP_THIS */
39
40
41namespace Gnome
42{
43
44namespace UI
45{ class FontPicker_Class; } // namespace UI
46
47} // namespace Gnome
48namespace Gnome
49{
50
51namespace UI
52{
53
54#ifndef GNOMEMM_DISABLE_DEPRECATED
55
56
57class 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
71private:
72 friend class FontPicker_Class;
73 static CppClassType fontpicker_class_;
74
75 // noncopyable
76 FontPicker(const FontPicker&);
77 FontPicker& operator=(const FontPicker&);
78
79protected:
80 explicit FontPicker(const Glib::ConstructParams& construct_params);
81 explicit FontPicker(GnomeFontPicker* castitem);
82
83#endif /* DOXYGEN_SHOULD_SKIP_THIS */
84
85public:
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
100public:
101 //C++ methods used to invoke GTK+ virtual functions:
102#ifdef GLIBMM_VFUNCS_ENABLED
103#endif //GLIBMM_VFUNCS_ENABLED
104
105protected:
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
116private:
117
118
119public:
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
167 Glib::PropertyProxy<Glib::ustring> property_title() ;
168#endif //#GLIBMM_PROPERTIES_ENABLED
169
170#ifdef GLIBMM_PROPERTIES_ENABLED
177 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
178#endif //#GLIBMM_PROPERTIES_ENABLED
179
180 #ifdef GLIBMM_PROPERTIES_ENABLED
187 Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ;
188#endif //#GLIBMM_PROPERTIES_ENABLED
189
190#ifdef GLIBMM_PROPERTIES_ENABLED
197 Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const;
198#endif //#GLIBMM_PROPERTIES_ENABLED
199
200 #ifdef GLIBMM_PROPERTIES_ENABLED
207 Glib::PropertyProxy<Glib::ustring> property_font_name() ;
208#endif //#GLIBMM_PROPERTIES_ENABLED
209
210#ifdef GLIBMM_PROPERTIES_ENABLED
217 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const;
218#endif //#GLIBMM_PROPERTIES_ENABLED
219
220 #ifdef GLIBMM_PROPERTIES_ENABLED
227 Glib::PropertyProxy<Glib::ustring> property_preview_text() ;
228#endif //#GLIBMM_PROPERTIES_ENABLED
229
230#ifdef GLIBMM_PROPERTIES_ENABLED
237 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const;
238#endif //#GLIBMM_PROPERTIES_ENABLED
239
240 #ifdef GLIBMM_PROPERTIES_ENABLED
247 Glib::PropertyProxy<bool> property_use_font_in_label() ;
248#endif //#GLIBMM_PROPERTIES_ENABLED
249
250#ifdef GLIBMM_PROPERTIES_ENABLED
257 Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const;
258#endif //#GLIBMM_PROPERTIES_ENABLED
259
260 #ifdef GLIBMM_PROPERTIES_ENABLED
267 Glib::PropertyProxy<int> property_label_font_size() ;
268#endif //#GLIBMM_PROPERTIES_ENABLED
269
270#ifdef GLIBMM_PROPERTIES_ENABLED
277 Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const;
278#endif //#GLIBMM_PROPERTIES_ENABLED
279
280 #ifdef GLIBMM_PROPERTIES_ENABLED
287 Glib::PropertyProxy<bool> property_show_size() ;
288#endif //#GLIBMM_PROPERTIES_ENABLED
289
290#ifdef GLIBMM_PROPERTIES_ENABLED
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
309namespace 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
Definition: font-picker.h:58
void uw_set_widget(Gtk::Widget &widget)
void set_mode(GnomeFontPickerMode mode)
void set_title(const Glib::ustring &title)
void set_use_font_in_label(bool use_font_in_label, gint size)
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.
Glib::PropertyProxy< GnomeFontPickerMode > property_mode()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
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.
bool set_font_name(const Glib::ustring &fontname)
Glib::SignalProxy1< void, const Glib::ustring & > signal_font_set()
const GnomeFontPicker * gobj() const
Provides access to the underlying C GtkObject.
Definition: font-picker.h:97
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.
void set_preview_text(const Glib::ustring &text)
Gnome::UI::FontPicker * wrap(GnomeFontPicker *object, bool take_copy=false)
A Glib::wrap() method for this object.
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.
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.
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.
Glib::ustring get_preview_text() const
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.
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.
Glib::ustring get_title() const
GnomeFontPickerMode get_mode() const
const Gtk::Widget * uw_get_widget() const
Glib::PropertyProxy< Glib::ustring > property_title()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void set_show_size(bool show_size=true)
GnomeFontPicker * gobj()
Provides access to the underlying C GtkObject.
Definition: font-picker.h:94
Gtk::Widget * uw_get_widget()
virtual void on_font_set(const Glib::ustring &font_name)
Glib::PropertyProxy< bool > property_show_size()
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
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.
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.
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.
Glib::ustring get_font_name() const
Definition: about.h:306
Definition: about.h:46