Debian Codegraph @

gtk/src/fontchooserdialog.hg

raw
1 /* Copyright (C) 2011 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 _DEFS(gtkmm,gtk)
18 _PINCLUDE(gtkmm/private/dialog_p.h)
19
20
21 #include <gtkmm/dialog.h>
22 #include <gtkmm/fontchooser.h>
23
24
25 namespace Gtk
26 {
27
28 /** A dialog box for selecting fonts. It implements the #GtkFontChooser interface.
29 *
30 * To set the font which is initially selected, use set_font_name().
31 *
32 * To get the selected font use get_font_name().
33 *
34 * To change the text which is shown in the preview area, use set_preview_text().
35 *
36 * @ingroup Dialogs
37 * @ingroup FontChooser
38 * @newin{3,2}
39 */
40 class GTKMM_API FontChooserDialog
41 : public Dialog,
42 public FontChooser
43 {
44 _CLASS_GTKOBJECT(FontChooserDialog, GtkFontChooserDialog, GTK_FONT_CHOOSER_DIALOG, Gtk::Dialog, GtkDialog, , , GTKMM_API)
45 _IMPLEMENTS_INTERFACE(FontChooser)
46 _UNMANAGEABLE
47 public:
48 _CTOR_DEFAULT()
49 explicit FontChooserDialog(const Glib::ustring& title);
50
51 //Note: We renamed the parent parameter to transient_for because that is the property name.
52 _WRAP_CTOR(FontChooserDialog(const Glib::ustring& title, Window& transient_for), gtk_font_chooser_dialog_new)
53 };
54
55 } // namespace Gtk