]> git.sur5r.net Git - glabels/blob - glabels2/src/wdgt-rotate-label.h
2004-01-06 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / wdgt-rotate-label.h
1 /*
2  *  (GLABELS) Label and Business Card Creation program for GNOME
3  *
4  *  wdgt_rotate_label.h:  label rotate selection widget module header file
5  *
6  *  Copyright (C) 2001-2002  Jim Evins <evins@snaught.com>.
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21  */
22
23 #ifndef __WDGT_ROTATE_LABEL_H__
24 #define __WDGT_ROTATE_LABEL_H__
25
26 #include <gnome.h>
27 #include "hig.h"
28 #include <libglabels/template.h>
29
30 #define GL_TYPE_WDGT_ROTATE_LABEL (gl_wdgt_rotate_label_get_type ())
31 #define GL_WDGT_ROTATE_LABEL(obj) \
32         (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabel ))
33 #define GL_WDGT_ROTATE_LABEL_CLASS(klass) \
34         (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabelClass))
35 #define GL_IS_WDGT_ROTATE_LABEL(obj) \
36         (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_ROTATE_LABEL))
37 #define GL_IS_WDGT_ROTATE_LABEL_CLASS(klass) \
38         (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_ROTATE_LABEL))
39
40 typedef struct _glWdgtRotateLabel      glWdgtRotateLabel;
41 typedef struct _glWdgtRotateLabelClass glWdgtRotateLabelClass;
42
43 struct _glWdgtRotateLabel {
44         glHigHBox   parent_widget;
45
46         GtkWidget  *rotate_check;
47
48         GtkWidget  *canvas;
49
50         glTemplate *template;
51 };
52
53 struct _glWdgtRotateLabelClass {
54         glHigHBoxClass parent_class;
55
56         void (*changed) (glWdgtRotateLabel * wdgt_rotate_label,
57                          gpointer user_data);
58 };
59
60 extern guint     gl_wdgt_rotate_label_get_type (void);
61
62 extern GtkWidget *gl_wdgt_rotate_label_new (void);
63
64 extern gboolean  gl_wdgt_rotate_label_get_state (glWdgtRotateLabel * wdgt_rotate_label);
65
66 extern void      gl_wdgt_rotate_label_set_state (glWdgtRotateLabel * wdgt_rotate_label,
67                                                  gboolean state);
68
69 extern void      gl_wdgt_rotate_label_set_template_name (glWdgtRotateLabel * wdgt_rotate_label,
70                                                          gchar * name);
71
72 #endif