Code

Handle missing, inaccessible and misnamed cache directories.
[inkscape.git] / src / widgets / font-selector.h
1 #ifndef __SP_FONT_SELECTOR_H__
2 #define __SP_FONT_SELECTOR_H__
4 /*
5  * Font selection widgets
6  *
7  * Authors:
8  *   Chris Lahey <clahey@ximian.com>
9  *   Lauris Kaplinski <lauris@kaplinski.com>
10  *
11  * Copyright (C) 1999-2001 Ximian, Inc.
12  * Copyright (C) 2002 Lauris Kaplinski
13  *
14  * Released under GNU GPL, read the file 'COPYING' for more information
15  */
17 #include <glib.h>
19 struct SPFontSelector;
20 struct SPFontPreview;
22 #define SP_TYPE_FONT_SELECTOR (sp_font_selector_get_type ())
23 #define SP_FONT_SELECTOR(o) (GTK_CHECK_CAST ((o), SP_TYPE_FONT_SELECTOR, SPFontSelector))
24 #define SP_IS_FONT_SELECTOR(o) (GTK_CHECK_TYPE ((o), SP_TYPE_FONT_SELECTOR))
26 #define SP_TYPE_FONT_PREVIEW (sp_font_preview_get_type ())
27 #define SP_FONT_PREVIEW(o) (GTK_CHECK_CAST ((o), SP_TYPE_FONT_PREVIEW, SPFontPreview))
28 #define SP_IS_FONT_PREVIEW(o) (GTK_CHECK_TYPE ((o), SP_TYPE_FONT_PREVIEW))
30 #include <libnrtype/nrtype-forward.h>
31 #include <gtk/gtkwidget.h>
33 /* SPFontSelector */
35 GtkType sp_font_selector_get_type (void);
37 GtkWidget *sp_font_selector_new (void);
39 void sp_font_selector_set_font (SPFontSelector *fsel, font_instance *font, double size);
41 font_instance *sp_font_selector_get_font (SPFontSelector *fsel);
42 double  sp_font_selector_get_size (SPFontSelector *fsel);
44 /* SPFontPreview */
46 GtkType sp_font_preview_get_type (void);
48 GtkWidget *sp_font_preview_new (void);
50 void sp_font_preview_set_font (SPFontPreview *fprev, font_instance *font, SPFontSelector *fsel);
51 void sp_font_preview_set_rgba32 (SPFontPreview *fprev, guint32 rgba);
52 void sp_font_preview_set_phrase (SPFontPreview *fprev, const gchar *phrase);
56 #endif
58 /*
59   Local Variables:
60   mode:c++
61   c-file-style:"stroustrup"
62   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
63   indent-tabs-mode:nil
64   fill-column:99
65   End:
66 */
67 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :