/*===========================================*/
static void draw_paper (cairo_t *cr,
- glTemplate *template,
+ lglTemplate *template,
gdouble scale);
static void draw_label_outlines (cairo_t *cr,
- glTemplate *template,
+ lglTemplate *template,
gdouble scale);
static void draw_label_outline (cairo_t *cr,
- glTemplate *template,
+ lglTemplate *template,
gdouble x0,
gdouble y0);
/* Create new pixbuf with mini preview of template */
/****************************************************************************/
GdkPixbuf *
-gl_mini_preview_pixbuf_new (glTemplate *template,
- gint width,
- gint height)
+gl_mini_preview_pixbuf_new (lglTemplate *template,
+ gint width,
+ gint height)
{
cairo_surface_t *surface;
cairo_t *cr;
/*--------------------------------------------------------------------------*/
static void
draw_paper (cairo_t *cr,
- glTemplate *template,
+ lglTemplate *template,
gdouble scale)
{
gl_debug (DEBUG_MINI_PREVIEW, "START");
/*--------------------------------------------------------------------------*/
static void
draw_label_outlines (cairo_t *cr,
- glTemplate *template,
+ lglTemplate *template,
gdouble scale)
{
- const glTemplateLabelType *label_type;
- gint i, n_labels;
- glTemplateOrigin *origins;
+ const lglTemplateFrame *frame;
+ gint i, n_labels;
+ lglTemplateOrigin *origins;
gl_debug (DEBUG_MINI_PREVIEW, "START");
cairo_set_line_width (cr, LABEL_OUTLINE_WIDTH_PIXELS/scale);
- label_type = gl_template_get_first_label_type (template);
+ frame = lgl_template_get_first_frame (template);
- n_labels = gl_template_get_n_labels (label_type);
- origins = gl_template_get_origins (label_type);
+ n_labels = lgl_template_frame_get_n_labels (frame);
+ origins = lgl_template_frame_get_origins (frame);
for ( i=0; i < n_labels; i++ ) {
/*--------------------------------------------------------------------------*/
static void
draw_label_outline (cairo_t *cr,
- glTemplate *template,
+ lglTemplate *template,
gdouble x0,
gdouble y0)
{