1 //******************************************************************************
2 //  Copyright (c) 2005-2013 by Jan Van hijfte
3 //
4 //  See the included file COPYING.TXT for details about the copyright.
5 //
6 //  This program is distributed in the hope that it will be useful,
7 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 //******************************************************************************
10 
11 
12 #include "qpagedpaintdevice_c.h"
13 
QPagedPaintDevice_newPage(QPagedPaintDeviceH handle)14 bool QPagedPaintDevice_newPage(QPagedPaintDeviceH handle)
15 {
16 	return (bool) ((QPagedPaintDevice *)handle)->newPage();
17 }
18 
QPagedPaintDevice_setPageSize(QPagedPaintDeviceH handle,QPagedPaintDevice::PageSize size)19 void QPagedPaintDevice_setPageSize(QPagedPaintDeviceH handle, QPagedPaintDevice::PageSize size)
20 {
21 	((QPagedPaintDevice *)handle)->setPageSize(size);
22 }
23 
QPagedPaintDevice_pageSize(QPagedPaintDeviceH handle)24 QPagedPaintDevice::PageSize QPagedPaintDevice_pageSize(QPagedPaintDeviceH handle)
25 {
26 	return (QPagedPaintDevice::PageSize) ((QPagedPaintDevice *)handle)->pageSize();
27 }
28 
QPagedPaintDevice_setPageSizeMM(QPagedPaintDeviceH handle,const QSizeFH size)29 void QPagedPaintDevice_setPageSizeMM(QPagedPaintDeviceH handle, const QSizeFH size)
30 {
31 	((QPagedPaintDevice *)handle)->setPageSizeMM(*(const QSizeF*)size);
32 }
33 
QPagedPaintDevice_pageSizeMM(QPagedPaintDeviceH handle,QSizeFH retval)34 void QPagedPaintDevice_pageSizeMM(QPagedPaintDeviceH handle, QSizeFH retval)
35 {
36 	*(QSizeF *)retval = ((QPagedPaintDevice *)handle)->pageSizeMM();
37 }
38 
39