2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * wdgt_position.h: position properties widget module header file
6 * Copyright (C) 2000, 2001 Jim Evins <evins@snaught.com>.
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.
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.
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
23 #ifndef __WDGT_POSITION_H__
24 #define __WDGT_POSITION_H__
29 #define GL_TYPE_WDGT_POSITION (gl_wdgt_position_get_type ())
30 #define GL_WDGT_POSITION(obj) \
31 (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_POSITION, glWdgtPosition ))
32 #define GL_WDGT_POSITION_CLASS(klass) \
33 (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_POSITION, glWdgtPositionClass))
34 #define GL_IS_WDGT_POSITION(obj) \
35 (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_POSITION))
36 #define GL_IS_WDGT_POSITION_CLASS(klass) \
37 (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_POSITION))
39 typedef struct _glWdgtPosition glWdgtPosition;
40 typedef struct _glWdgtPositionClass glWdgtPositionClass;
42 struct _glWdgtPosition {
43 GtkVBox parent_widget;
47 GtkWidget *units_label;
50 struct _glWdgtPositionClass {
51 GtkVBoxClass parent_class;
53 void (*changed) (glWdgtPosition * prop, gpointer user_data);
56 extern guint gl_wdgt_position_get_type (void);
58 extern GtkWidget *gl_wdgt_position_new (gchar * label);
60 extern void gl_wdgt_position_get_position (glWdgtPosition * position,
61 gdouble * x, gdouble * y);
63 extern void gl_wdgt_position_set_params (glWdgtPosition * position,
65 gdouble x_max, gdouble y_max);
67 extern void gl_wdgt_position_set_position (glWdgtPosition * position,
68 gdouble x, gdouble y);