3 * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
5 * This file is part of gLabels.
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.
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.
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/>.
21 #ifndef __LABEL_IMAGE_H__
22 #define __LABEL_IMAGE_H__
24 #include <gdk-pixbuf/gdk-pixbuf.h>
25 #include "label-object.h"
26 #include "text-node.h"
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))
38 typedef struct _glLabelImage glLabelImage;
39 typedef struct _glLabelImageClass glLabelImageClass;
41 typedef struct _glLabelImagePrivate glLabelImagePrivate;
43 struct _glLabelImage {
46 glLabelImagePrivate *priv;
49 struct _glLabelImageClass {
50 glLabelObjectClass parent_class;
53 GType gl_label_image_get_type (void) G_GNUC_CONST;
55 GObject *gl_label_image_new (glLabel *label);
57 void gl_label_image_set_filename (glLabelImage *limage,
58 glTextNode *filename);
60 glTextNode *gl_label_image_get_filename (glLabelImage *limage);
62 const GdkPixbuf *gl_label_image_get_pixbuf (glLabelImage *limage,
63 glMergeRecord *record);
67 #endif /* __LABEL_IMAGE_H__ */
73 * Local Variables: -- emacs
75 * c-basic-offset: 8 -- emacs
76 * tab-width: 8 -- emacs
77 * indent-tabs-mode: nil -- emacs