-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
-
/*
- * (GLABELS) Label and Business Card Creation program for GNOME
- *
- * label_box.c: GLabels label box object
+ * label-box.c
+ * Copyright (C) 2001-2009 Jim Evins <evins@snaught.com>.
*
- * Copyright (C) 2001-2007 Jim Evins <evins@snaught.com>.
+ * This file is part of gLabels.
*
- * This program is free software; you can redistribute it and/or modify
+ * gLabels is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful,
+ * gLabels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * along with gLabels. If not, see <http://www.gnu.org/licenses/>.
*/
#include "label-box.h"
-#include <glib/gmem.h>
-#include <glib/gstrfuncs.h>
-#include <glib/gmessages.h>
+#include <glib.h>
#include "debug.h"
+
/*========================================================*/
/* Private types. */
/*========================================================*/
glColorNode *fill_color_node;
};
+
/*========================================================*/
/* Private globals. */
/*========================================================*/
+
/*========================================================*/
/* Private function prototypes. */
/*========================================================*/
glMergeRecord *record);
-
-
-\f
/*****************************************************************************/
/* Boilerplate object stuff. */
/*****************************************************************************/
G_DEFINE_TYPE (glLabelBox, gl_label_box, GL_TYPE_LABEL_OBJECT);
+
static void
gl_label_box_class_init (glLabelBoxClass *class)
{
object_class->finalize = gl_label_box_finalize;
}
+
static void
gl_label_box_init (glLabelBox *lbox)
{
lbox->priv->fill_color_node = gl_color_node_new_default ();
}
+
static void
gl_label_box_finalize (GObject *object)
{
G_OBJECT_CLASS (gl_label_box_parent_class)->finalize (object);
}
+
/*****************************************************************************/
/* NEW label "box" object. */
/*****************************************************************************/
return G_OBJECT (lbox);
}
+
/*****************************************************************************/
/* Copy object contents. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line color method. */
/*---------------------------------------------------------------------------*/
}
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Set line width method. */
/*---------------------------------------------------------------------------*/
return lbox->priv->line_width;
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line color method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lbox->priv->line_color_node);
}
+
/*---------------------------------------------------------------------------*/
/* PRIVATE. Get line width method. */
/*---------------------------------------------------------------------------*/
return gl_color_node_dup (lbox->priv->fill_color_node);
}
+
/*****************************************************************************/
/* Draw object method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
/*****************************************************************************/
/* Draw shadow method. */
/*****************************************************************************/
gl_debug (DEBUG_LABEL, "END");
}
+
+
+
+/*
+ * Local Variables: -- emacs
+ * mode: C -- emacs
+ * c-basic-offset: 8 -- emacs
+ * tab-width: 8 -- emacs
+ * indent-tabs-mode: nil -- emacs
+ * End: -- emacs
+ */