]> git.sur5r.net Git - glabels/blob - src/label-image.h
Imported Upstream version 3.0.0
[glabels] / src / label-image.h
1 /*
2  *  label-image.h
3  *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __LABEL_IMAGE_H__
22 #define __LABEL_IMAGE_H__
23
24 #include <gdk-pixbuf/gdk-pixbuf.h>
25 #include "label-object.h"
26 #include "text-node.h"
27 #include "merge.h"
28
29 G_BEGIN_DECLS
30
31
32 #define GL_TYPE_LABEL_IMAGE            (gl_label_image_get_type ())
33 #define GL_LABEL_IMAGE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_LABEL_IMAGE, glLabelImage))
34 #define GL_LABEL_IMAGE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_LABEL_IMAGE, glLabelImageClass))
35 #define GL_IS_LABEL_IMAGE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_LABEL_IMAGE))
36 #define GL_IS_LABEL_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_LABEL_IMAGE))
37
38 typedef struct _glLabelImage          glLabelImage;
39 typedef struct _glLabelImageClass     glLabelImageClass;
40
41 typedef struct _glLabelImagePrivate   glLabelImagePrivate;
42
43 struct _glLabelImage {
44         glLabelObject         object;
45
46         glLabelImagePrivate  *priv;
47 };
48
49 struct _glLabelImageClass {
50         glLabelObjectClass    parent_class;
51 };
52
53 GType            gl_label_image_get_type       (void) G_GNUC_CONST;
54
55 GObject         *gl_label_image_new            (glLabel       *label,
56                                                 gboolean       checkpoint);
57
58 void             gl_label_image_set_filename   (glLabelImage  *limage,
59                                                 glTextNode    *filename,
60                                                 gboolean       checkpoint);
61
62 void             gl_label_image_set_pixbuf     (glLabelImage  *limage,
63                                                 GdkPixbuf     *pixbuf,
64                                                 gboolean       checkpoint);
65
66 GdkPixbuf       *gl_label_image_get_pixbuf     (glLabelImage  *limage,
67                                                 glMergeRecord *record);
68
69 RsvgHandle      *gl_label_image_get_svg_handle (glLabelImage  *this,
70                                                 glMergeRecord *record);
71
72 glTextNode      *gl_label_image_get_filename   (glLabelImage  *limage);
73
74 void             gl_label_image_get_base_size  (glLabelImage *this,
75                                                 gdouble      *w,
76                                                 gdouble      *h);
77
78 G_END_DECLS
79
80 #endif /* __LABEL_IMAGE_H__ */
81
82
83
84
85 /*
86  * Local Variables:       -- emacs
87  * mode: C                -- emacs
88  * c-basic-offset: 8      -- emacs
89  * tab-width: 8           -- emacs
90  * indent-tabs-mode: nil  -- emacs
91  * End:                   -- emacs
92  */