/* Private function prototypes. */
/*========================================================*/
-static void gl_label_barcode_class_init (glLabelBarcodeClass *klass);
-static void gl_label_barcode_instance_init (glLabelBarcode *lbc);
-static void gl_label_barcode_finalize (GObject *object);
+static void gl_label_barcode_class_init (glLabelBarcodeClass *klass);
+static void gl_label_barcode_instance_init (glLabelBarcode *lbc);
+static void gl_label_barcode_finalize (GObject *object);
-static void update_size (glLabelBarcode *lbc);
+static void update_size (glLabelBarcode *lbc);
\f
/*****************************************************************************/
/*****************************************************************************/
glLabelBarcode *
gl_label_barcode_dup (glLabelBarcode *lbc,
- glLabel *label)
+ glLabel *label)
{
glLabelBarcode *new_lbc;
glTextNode *text_node;
- gdouble x, y, w, h;
- glBarcodeStyle style;
- gboolean text_flag;
- guint color;
- gdouble scale;
+ gdouble x, y, w, h;
+ glBarcodeStyle style;
+ gboolean text_flag;
+ guint color;
+ gdouble scale;
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_barcode_set_data (glLabelBarcode *lbc,
- glTextNode *text_node)
+ glTextNode *text_node)
{
gl_debug (DEBUG_LABEL, "START");
void
gl_label_barcode_set_props (glLabelBarcode *lbc,
- glBarcodeStyle style,
- gboolean text_flag,
- guint color,
- gdouble scale)
+ glBarcodeStyle style,
+ gboolean text_flag,
+ guint color,
+ gdouble scale)
{
- GdkPixbuf *pixbuf;
-
gl_debug (DEBUG_LABEL, "START");
g_return_if_fail (lbc && GL_IS_LABEL_BARCODE (lbc));
void
gl_label_barcode_get_props (glLabelBarcode *lbc,
glBarcodeStyle *style,
- gboolean *text_flag,
- guint *color,
- gdouble *scale)
+ gboolean *text_flag,
+ guint *color,
+ gdouble *scale)
{
g_return_if_fail (lbc && GL_IS_LABEL_BARCODE (lbc));
struct _glLabelBarcode {
glLabelObject object;
- glLabelBarcodePrivate *private;
+ glLabelBarcodePrivate *private;
};
struct _glLabelBarcodeClass {
glLabelObjectClass parent_class;
};
-extern GType gl_label_barcode_get_type (void);
-extern GObject *gl_label_barcode_new (glLabel *label);
+GType gl_label_barcode_get_type (void);
-extern glLabelBarcode *gl_label_barcode_dup (glLabelBarcode *lbc,
- glLabel *label);
+GObject *gl_label_barcode_new (glLabel *label);
-extern void gl_label_barcode_set_data (glLabelBarcode *lbc,
- glTextNode *text_node);
-extern void gl_label_barcode_set_props (glLabelBarcode *lbc,
- glBarcodeStyle style,
- gboolean text_flag,
- guint color,
- gdouble scale);
+glLabelBarcode *gl_label_barcode_dup (glLabelBarcode *lbc,
+ glLabel *label);
-extern glTextNode *gl_label_barcode_get_data (glLabelBarcode *lbc);
-extern void gl_label_barcode_get_props (glLabelBarcode *lbc,
- glBarcodeStyle *style,
- gboolean *text_flag,
- guint *color,
- gdouble *scale);
+void gl_label_barcode_set_data (glLabelBarcode *lbc,
+ glTextNode *text_node);
+void gl_label_barcode_set_props (glLabelBarcode *lbc,
+ glBarcodeStyle style,
+ gboolean text_flag,
+ guint color,
+ gdouble scale);
+
+glTextNode *gl_label_barcode_get_data (glLabelBarcode *lbc);
+void gl_label_barcode_get_props (glLabelBarcode *lbc,
+ glBarcodeStyle *style,
+ gboolean *text_flag,
+ guint *color,
+ gdouble *scale);
G_END_DECLS
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_box_class_init (glLabelBoxClass *klass);
-static void gl_label_box_instance_init (glLabelBox *lbox);
-static void gl_label_box_finalize (GObject *object);
+static void gl_label_box_class_init (glLabelBoxClass *klass);
+static void gl_label_box_instance_init (glLabelBox *lbox);
+static void gl_label_box_finalize (GObject *object);
\f
/*****************************************************************************/
/*****************************************************************************/
glLabelBox *
gl_label_box_dup (glLabelBox *lbox,
- glLabel *label)
+ glLabel *label)
{
glLabelBox *new_lbox;
- gdouble x, y, w, h, line_width;
- guint line_color, fill_color;
+ gdouble x, y, w, h, line_width;
+ guint line_color, fill_color;
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_box_set_line_width (glLabelBox *lbox,
- gdouble line_width)
+ gdouble line_width)
{
g_return_if_fail (lbox && GL_IS_LABEL_BOX (lbox));
void
gl_label_box_set_line_color (glLabelBox *lbox,
- guint line_color)
+ guint line_color)
{
g_return_if_fail (lbox && GL_IS_LABEL_BOX (lbox));
void
gl_label_box_set_fill_color (glLabelBox *lbox,
- guint fill_color)
+ guint fill_color)
{
g_return_if_fail (lbox && GL_IS_LABEL_BOX (lbox));
struct _glLabelBox {
glLabelObject object;
- glLabelBoxPrivate *private;
+ glLabelBoxPrivate *private;
};
struct _glLabelBoxClass {
glLabelObjectClass parent_class;
};
-extern GType gl_label_box_get_type (void);
+GType gl_label_box_get_type (void);
-extern GObject *gl_label_box_new (glLabel *label);
+GObject *gl_label_box_new (glLabel *label);
-extern glLabelBox *gl_label_box_dup (glLabelBox *lbox,
- glLabel *label);
+glLabelBox *gl_label_box_dup (glLabelBox *lbox,
+ glLabel *label);
-extern void gl_label_box_set_line_width (glLabelBox *lbox,
- gdouble line_width);
+void gl_label_box_set_line_width (glLabelBox *lbox,
+ gdouble line_width);
-extern void gl_label_box_set_line_color (glLabelBox *lbox,
- guint line_color);
+void gl_label_box_set_line_color (glLabelBox *lbox,
+ guint line_color);
-extern void gl_label_box_set_fill_color (glLabelBox *lbox,
- guint fill_color);
+void gl_label_box_set_fill_color (glLabelBox *lbox,
+ guint fill_color);
-extern gdouble gl_label_box_get_line_width (glLabelBox *lbox);
-extern guint gl_label_box_get_line_color (glLabelBox *lbox);
-extern guint gl_label_box_get_fill_color (glLabelBox *lbox);
+gdouble gl_label_box_get_line_width (glLabelBox *lbox);
+guint gl_label_box_get_line_color (glLabelBox *lbox);
+guint gl_label_box_get_fill_color (glLabelBox *lbox);
G_END_DECLS
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_ellipse_class_init (glLabelEllipseClass *klass);
-static void gl_label_ellipse_instance_init (glLabelEllipse *lellipse);
-static void gl_label_ellipse_finalize (GObject *object);
+static void gl_label_ellipse_class_init (glLabelEllipseClass *klass);
+static void gl_label_ellipse_instance_init (glLabelEllipse *lellipse);
+static void gl_label_ellipse_finalize (GObject *object);
\f
/*****************************************************************************/
/*****************************************************************************/
glLabelEllipse *
gl_label_ellipse_dup (glLabelEllipse *lellipse,
- glLabel *label)
+ glLabel *label)
{
glLabelEllipse *new_lellipse;
- gdouble x, y, w, h, line_width;
- guint line_color, fill_color;
+ gdouble x, y, w, h, line_width;
+ guint line_color, fill_color;
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
- gdouble line_width)
+ gdouble line_width)
{
g_return_if_fail (lellipse && GL_IS_LABEL_ELLIPSE (lellipse));
void
gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
- guint line_color)
+ guint line_color)
{
g_return_if_fail (lellipse && GL_IS_LABEL_ELLIPSE (lellipse));
void
gl_label_ellipse_set_fill_color (glLabelEllipse *lellipse,
- guint fill_color)
+ guint fill_color)
{
g_return_if_fail (lellipse && GL_IS_LABEL_ELLIPSE (lellipse));
typedef struct _glLabelEllipsePrivate glLabelEllipsePrivate;
struct _glLabelEllipse {
- glLabelObject object;
+ glLabelObject object;
glLabelEllipsePrivate *private;
};
struct _glLabelEllipseClass {
- glLabelObjectClass parent_class;
+ glLabelObjectClass parent_class;
};
-extern GType gl_label_ellipse_get_type (void);
+GType gl_label_ellipse_get_type (void);
-extern GObject *gl_label_ellipse_new (glLabel *label);
+GObject *gl_label_ellipse_new (glLabel *label);
-extern glLabelEllipse *gl_label_ellipse_dup (glLabelEllipse *lellipse,
- glLabel *label);
+glLabelEllipse *gl_label_ellipse_dup (glLabelEllipse *lellipse,
+ glLabel *label);
-extern void gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
- gdouble line_width);
+void gl_label_ellipse_set_line_width (glLabelEllipse *lellipse,
+ gdouble line_width);
-extern void gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
- guint line_color);
+void gl_label_ellipse_set_line_color (glLabelEllipse *lellipse,
+ guint line_color);
-extern void gl_label_ellipse_set_fill_color (glLabelEllipse *lellipse,
- guint fill_color);
+void gl_label_ellipse_set_fill_color (glLabelEllipse *lellipse,
+ guint fill_color);
-extern gdouble gl_label_ellipse_get_line_width (glLabelEllipse *lellipse);
-extern guint gl_label_ellipse_get_line_color (glLabelEllipse *lellipse);
-extern guint gl_label_ellipse_get_fill_color (glLabelEllipse *lellipse);
+gdouble gl_label_ellipse_get_line_width (glLabelEllipse *lellipse);
+guint gl_label_ellipse_get_line_color (glLabelEllipse *lellipse);
+guint gl_label_ellipse_get_fill_color (glLabelEllipse *lellipse);
G_END_DECLS
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_image_class_init (glLabelImageClass *klass);
-static void gl_label_image_instance_init (glLabelImage *limage);
-static void gl_label_image_finalize (GObject *object);
+static void gl_label_image_class_init (glLabelImageClass *klass);
+static void gl_label_image_instance_init (glLabelImage *limage);
+static void gl_label_image_finalize (GObject *object);
\f
/*****************************************************************************/
/*****************************************************************************/
glLabelImage *
gl_label_image_dup (glLabelImage *limage,
- glLabel *label)
+ glLabel *label)
{
glLabelImage *new_limage;
- gdouble x, y, w, h;
+ gdouble x, y, w, h;
gchar *filename;
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_image_set_filename (glLabelImage *limage,
- const gchar *filename)
+ const gchar *filename)
{
GdkPixbuf *pixbuf;
struct _glLabelImage {
glLabelObject object;
- glLabelImagePrivate *private;
+ glLabelImagePrivate *private;
};
struct _glLabelImageClass {
glLabelObjectClass parent_class;
};
-extern GType gl_label_image_get_type (void);
+GType gl_label_image_get_type (void);
-extern GObject *gl_label_image_new (glLabel *label);
+GObject *gl_label_image_new (glLabel *label);
-extern glLabelImage *gl_label_image_dup (glLabelImage *limage,
- glLabel *label);
+glLabelImage *gl_label_image_dup (glLabelImage *limage,
+ glLabel *label);
-extern void gl_label_image_set_filename (glLabelImage *limage,
- const gchar *filename);
+void gl_label_image_set_filename (glLabelImage *limage,
+ const gchar *filename);
-extern gchar *gl_label_image_get_filename (glLabelImage *limage);
+gchar *gl_label_image_get_filename (glLabelImage *limage);
-extern const GdkPixbuf *gl_label_image_get_pixbuf (glLabelImage *limage);
+const GdkPixbuf *gl_label_image_get_pixbuf (glLabelImage *limage);
G_END_DECLS
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_line_class_init (glLabelLineClass *klass);
-static void gl_label_line_instance_init (glLabelLine *lline);
-static void gl_label_line_finalize (GObject *object);
+static void gl_label_line_class_init (glLabelLineClass *klass);
+static void gl_label_line_instance_init (glLabelLine *lline);
+static void gl_label_line_finalize (GObject *object);
\f
/*****************************************************************************/
/*****************************************************************************/
glLabelLine *
gl_label_line_dup (glLabelLine *lline,
- glLabel *label)
+ glLabel *label)
{
glLabelLine *new_lline;
gdouble x, y, w, h, line_width;
/*****************************************************************************/
void
gl_label_line_set_line_width (glLabelLine *lline,
- gdouble line_width)
+ gdouble line_width)
{
g_return_if_fail (lline && GL_IS_LABEL_LINE (lline));
void
gl_label_line_set_line_color (glLabelLine *lline,
- guint line_color)
+ guint line_color)
{
g_return_if_fail (lline && GL_IS_LABEL_LINE (lline));
struct _glLabelLine {
glLabelObject object;
- glLabelLinePrivate *private;
+ glLabelLinePrivate *private;
};
struct _glLabelLineClass {
glLabelObjectClass parent_class;
};
-extern GType gl_label_line_get_type (void);
+GType gl_label_line_get_type (void);
-extern GObject *gl_label_line_new (glLabel *label);
+GObject *gl_label_line_new (glLabel *label);
-extern glLabelLine *gl_label_line_dup (glLabelLine *lline,
- glLabel *label);
+glLabelLine *gl_label_line_dup (glLabelLine *lline,
+ glLabel *label);
-extern void gl_label_line_set_line_width (glLabelLine *lline,
- gdouble line_width);
+void gl_label_line_set_line_width (glLabelLine *lline,
+ gdouble line_width);
-extern void gl_label_line_set_line_color (glLabelLine *lline,
- guint line_color);
+void gl_label_line_set_line_color (glLabelLine *lline,
+ guint line_color);
-extern gdouble gl_label_line_get_line_width (glLabelLine *lline);
-extern guint gl_label_line_get_line_color (glLabelLine *lline);
+gdouble gl_label_line_get_line_width (glLabelLine *lline);
+guint gl_label_line_get_line_color (glLabelLine *lline);
G_END_DECLS
/*========================================================*/
struct _glLabelObjectPrivate {
- gchar *name;
+ gchar *name;
gdouble x, y;
gdouble w, h;
};
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_object_class_init (glLabelObjectClass *klass);
-static void gl_label_object_instance_init (glLabelObject *object);
-static void gl_label_object_finalize (GObject *object);
+static void gl_label_object_class_init (glLabelObjectClass *klass);
+static void gl_label_object_instance_init (glLabelObject *object);
+static void gl_label_object_finalize (GObject *object);
\f
/*****************************************************************************/
/*****************************************************************************/
void
gl_label_object_set_parent (glLabelObject *object,
- glLabel *label)
+ glLabel *label)
{
glLabel *old_parent;
/*****************************************************************************/
void
gl_label_object_set_name (glLabelObject *object,
- gchar *name)
+ gchar *name)
{
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_object_set_position (glLabelObject *object,
- gdouble x,
- gdouble y)
+ gdouble x,
+ gdouble y)
{
gdouble dx, dy;
/*****************************************************************************/
void
gl_label_object_set_position_relative (glLabelObject *object,
- gdouble dx,
- gdouble dy)
+ gdouble dx,
+ gdouble dy)
{
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_object_get_position (glLabelObject *object,
- gdouble *x,
- gdouble *y)
+ gdouble *x,
+ gdouble *y)
{
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_object_set_size (glLabelObject *object,
- gdouble w,
- gdouble h)
+ gdouble w,
+ gdouble h)
{
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_object_get_size (glLabelObject *object,
- gdouble *w,
- gdouble *h)
+ gdouble *w,
+ gdouble *h)
{
gl_debug (DEBUG_LABEL, "START");
#include "label.h"
struct _glLabelObject {
- GObject object;
+ GObject object;
glLabel *parent;
};
struct _glLabelObjectClass {
- GObjectClass parent_class;
+ GObjectClass parent_class;
void (*changed) (glLabelObject *object, gpointer user_data);
- void (*moved) (glLabelObject *object,
- gdouble dx, gdouble dy, gpointer user_data);
+ void (*moved) (glLabelObject *object,
+ gdouble dx, gdouble dy, gpointer user_data);
- void (*top) (glLabelObject *object, gpointer user_data);
- void (*bottom) (glLabelObject *object, gpointer user_data);
+ void (*top) (glLabelObject *object, gpointer user_data);
+ void (*bottom) (glLabelObject *object, gpointer user_data);
};
-extern GType gl_label_object_get_type (void);
-
-extern GObject *gl_label_object_new (glLabel *label);
-
-extern void gl_label_object_emit_changed (glLabelObject *object);
-
-extern void gl_label_object_set_parent (glLabelObject *object,
- glLabel *label);
-extern glLabel *gl_label_object_get_parent (glLabelObject *object);
-
-extern void gl_label_object_set_name (glLabelObject *object,
- gchar *name);
-extern gchar *gl_label_object_get_name (glLabelObject *object);
-
-extern void gl_label_object_set_position (glLabelObject *object,
- gdouble x, gdouble y);
-extern void gl_label_object_set_position_relative (glLabelObject *object,
- gdouble dx,
- gdouble dy);
-extern void gl_label_object_get_position (glLabelObject *object,
- gdouble *x, gdouble *y);
-extern void gl_label_object_set_size (glLabelObject *object,
- gdouble w, gdouble h);
-extern void gl_label_object_get_size (glLabelObject *object,
- gdouble *w, gdouble *h);
-
-extern void gl_label_object_raise_to_top (glLabelObject * object);
-extern void gl_label_object_lower_to_bottom (glLabelObject * object);
+GType gl_label_object_get_type (void);
+
+GObject *gl_label_object_new (glLabel *label);
+
+void gl_label_object_emit_changed (glLabelObject *object);
+
+void gl_label_object_set_parent (glLabelObject *object,
+ glLabel *label);
+glLabel *gl_label_object_get_parent (glLabelObject *object);
+
+void gl_label_object_set_name (glLabelObject *object,
+ gchar *name);
+gchar *gl_label_object_get_name (glLabelObject *object);
+
+void gl_label_object_set_position (glLabelObject *object,
+ gdouble x,
+ gdouble y);
+void gl_label_object_set_position_relative (glLabelObject *object,
+ gdouble dx,
+ gdouble dy);
+void gl_label_object_get_position (glLabelObject *object,
+ gdouble *x,
+ gdouble *y);
+void gl_label_object_set_size (glLabelObject *object,
+ gdouble w,
+ gdouble h);
+void gl_label_object_get_size (glLabelObject *object,
+ gdouble *w,
+ gdouble *h);
+
+void gl_label_object_raise_to_top (glLabelObject *object);
+void gl_label_object_lower_to_bottom (glLabelObject *object);
G_END_DECLS
/* Private function prototypes. */
/*========================================================*/
-static void gl_label_text_class_init (glLabelTextClass *klass);
-static void gl_label_text_instance_init (glLabelText *ltext);
-static void gl_label_text_finalize (GObject *object);
+static void gl_label_text_class_init (glLabelTextClass *klass);
+static void gl_label_text_instance_init (glLabelText *ltext);
+static void gl_label_text_finalize (GObject *object);
-static void update_size (glLabelText *ltext);
+static void update_size (glLabelText *ltext);
\f
/*****************************************************************************/
/*****************************************************************************/
glLabelText *
gl_label_text_dup (glLabelText *ltext,
- glLabel *label)
+ glLabel *label)
{
glLabelText *new_ltext;
- gdouble x, y, w, h;
+ gdouble x, y, w, h;
GList *lines;
gchar *font_family;
- gdouble font_size;
- GnomeFontWeight font_weight;
- gboolean font_italic_flag;
- guint color;
- GtkJustification just;
+ gdouble font_size;
+ GnomeFontWeight font_weight;
+ gboolean font_italic_flag;
+ guint color;
+ GtkJustification just;
gl_debug (DEBUG_LABEL, "START");
/*****************************************************************************/
void
gl_label_text_set_lines (glLabelText *ltext,
- GList *lines)
+ GList *lines)
{
gl_debug (DEBUG_LABEL, "START");
}
void
-gl_label_text_set_props (glLabelText *ltext,
- gchar *font_family,
- gdouble font_size,
- GnomeFontWeight font_weight,
- gboolean font_italic_flag,
- guint color,
+gl_label_text_set_props (glLabelText *ltext,
+ gchar *font_family,
+ gdouble font_size,
+ GnomeFontWeight font_weight,
+ gboolean font_italic_flag,
+ guint color,
GtkJustification just)
{
GdkPixbuf *pixbuf;
}
void
-gl_label_text_get_props (glLabelText *ltext,
- gchar **font_family,
- gdouble *font_size,
- GnomeFontWeight *font_weight,
- gboolean *font_italic_flag,
- guint *color,
+gl_label_text_get_props (glLabelText *ltext,
+ gchar **font_family,
+ gdouble *font_size,
+ GnomeFontWeight *font_weight,
+ gboolean *font_italic_flag,
+ guint *color,
GtkJustification *just)
{
g_return_if_fail (ltext && GL_IS_LABEL_TEXT (ltext));
static void
update_size (glLabelText *ltext)
{
- gdouble w, h;
- GnomeFont *font;
- gchar *text;
- gchar **line;
- gint i;
+ gdouble w, h;
+ GnomeFont *font;
+ gchar *text;
+ gchar **line;
+ gint i;
GnomeGlyphList *glyphlist;
- ArtDRect bbox;
- gdouble affine[6];
+ ArtDRect bbox;
+ gdouble affine[6];
gl_debug (DEBUG_LABEL, "START");
struct _glLabelText {
glLabelObject object;
- glLabelTextPrivate *private;
+ glLabelTextPrivate *private;
};
struct _glLabelTextClass {
glLabelObjectClass parent_class;
};
-extern GType gl_label_text_get_type (void);
-
-extern GObject *gl_label_text_new (glLabel *label);
-
-extern glLabelText *gl_label_text_dup (glLabelText *ltext,
- glLabel *label);
-
-extern void gl_label_text_set_lines (glLabelText *ltext,
- GList *lines);
-extern void gl_label_text_set_props (glLabelText *ltext,
- gchar *font_family,
- gdouble font_size,
- GnomeFontWeight font_weight,
- gboolean font_italic_flag,
- guint color,
- GtkJustification just);
-
-extern GList *gl_label_text_get_lines (glLabelText *ltext);
-extern void gl_label_text_get_props (glLabelText *ltext,
- gchar **font_family,
- gdouble *font_size,
- GnomeFontWeight *font_weight,
- gboolean *font_italic_flag,
- guint *color,
- GtkJustification *just);
+GType gl_label_text_get_type (void);
+
+GObject *gl_label_text_new (glLabel *label);
+
+glLabelText *gl_label_text_dup (glLabelText *ltext,
+ glLabel *label);
+
+void gl_label_text_set_lines (glLabelText *ltext,
+ GList *lines);
+void gl_label_text_set_props (glLabelText *ltext,
+ gchar *font_family,
+ gdouble font_size,
+ GnomeFontWeight font_weight,
+ gboolean font_italic_flag,
+ guint color,
+ GtkJustification just);
+
+GList *gl_label_text_get_lines (glLabelText *ltext);
+void gl_label_text_get_props (glLabelText *ltext,
+ gchar **font_family,
+ gdouble *font_size,
+ GnomeFontWeight *font_weight,
+ gboolean *font_italic_flag,
+ guint *color,
+ GtkJustification *just);
G_END_DECLS