Debian Codegraph @

gtk/src/fontchooserwidget.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/box_p.h)
19
20
21 #include <gtkmm/box.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 Widgets
38 * @newin{3,2}
39 */
40 class GTKMM_API FontChooserWidget
41 : public Box,
42 public FontChooser
43 {
44 _CLASS_GTKOBJECT(FontChooserWidget, GtkFontChooserWidget, GTK_FONT_CHOOSER_WIDGET, Gtk::Box, GtkBox, , , GTKMM_API)
45 _IMPLEMENTS_INTERFACE(FontChooser)
46 public:
47 _CTOR_DEFAULT()
48 };
49
50 } // namespace Gtk