58 lines
1.4 KiB
C
58 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2012 - Juan Ferrer Toribio
|
|
*
|
|
* This program 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 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef VN_SHELFS_H
|
|
#define VN_SHELFS_H
|
|
|
|
#include <vn/vn.h>
|
|
|
|
#define VN_TYPE_SHELFS (vn_shelfs_get_type ())
|
|
#define VN_SHELFS(self) (G_TYPE_CHECK_INSTANCE_CAST (self, VN_TYPE_SHELFS, VnShelfs))
|
|
#define VN_IS_ALLOCATOR(self) (G_TYPE_CHECK_INSTANCE_TYPE (self, VN_TYPE_SHELFS))
|
|
|
|
typedef struct _VnShelfs VnShelfs;
|
|
typedef struct _VnShelfsClass VnShelfsClass;
|
|
|
|
struct _VnShelfs
|
|
{
|
|
VnForm parent;
|
|
GtkPrintSettings * print_settings;
|
|
|
|
// Cairo
|
|
|
|
cairo_t * cr;
|
|
GList * pages;
|
|
int page_width;
|
|
int page_height;
|
|
int widget_margin;
|
|
double scale;
|
|
double shelf_scale;
|
|
int page_x;
|
|
int page_y;
|
|
int shelf_x;
|
|
int shelf_y;
|
|
int draw_name;
|
|
};
|
|
|
|
struct _VnShelfsClass
|
|
{
|
|
VnFormClass parent;
|
|
};
|
|
|
|
GType vn_shelfs_get_type ();
|
|
|
|
#endif |