mirror of
https://github.com/mappu/miqt.git
synced 2025-02-08 14:10:22 +00:00
155 lines
7.2 KiB
C++
155 lines
7.2 KiB
C++
#pragma once
|
|
#ifndef MIQT_QT_PRINTSUPPORT_GEN_QPRINTER_H
|
|
#define MIQT_QT_PRINTSUPPORT_GEN_QPRINTER_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#include "../../libmiqt/libmiqt.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QPagedPaintDevice;
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QPagedPaintDevice__Margins)
|
|
typedef QPagedPaintDevice::Margins QPagedPaintDevice__Margins;
|
|
#else
|
|
class QPagedPaintDevice__Margins;
|
|
#endif
|
|
class QPaintDevice;
|
|
class QPaintEngine;
|
|
class QPainter;
|
|
class QPoint;
|
|
class QPrintEngine;
|
|
class QPrinter;
|
|
class QPrinterInfo;
|
|
class QRect;
|
|
class QRectF;
|
|
class QSizeF;
|
|
#else
|
|
typedef struct QPagedPaintDevice QPagedPaintDevice;
|
|
typedef struct QPagedPaintDevice__Margins QPagedPaintDevice__Margins;
|
|
typedef struct QPaintDevice QPaintDevice;
|
|
typedef struct QPaintEngine QPaintEngine;
|
|
typedef struct QPainter QPainter;
|
|
typedef struct QPoint QPoint;
|
|
typedef struct QPrintEngine QPrintEngine;
|
|
typedef struct QPrinter QPrinter;
|
|
typedef struct QPrinterInfo QPrinterInfo;
|
|
typedef struct QRect QRect;
|
|
typedef struct QRectF QRectF;
|
|
typedef struct QSizeF QSizeF;
|
|
#endif
|
|
|
|
QPrinter* QPrinter_new();
|
|
QPrinter* QPrinter_new2(QPrinterInfo* printer);
|
|
QPrinter* QPrinter_new3(int mode);
|
|
QPrinter* QPrinter_new4(QPrinterInfo* printer, int mode);
|
|
void QPrinter_virtbase(QPrinter* src, QPagedPaintDevice** outptr_QPagedPaintDevice);
|
|
int QPrinter_devType(const QPrinter* self);
|
|
void QPrinter_setOutputFormat(QPrinter* self, int format);
|
|
int QPrinter_outputFormat(const QPrinter* self);
|
|
void QPrinter_setPdfVersion(QPrinter* self, int version);
|
|
int QPrinter_pdfVersion(const QPrinter* self);
|
|
void QPrinter_setPrinterName(QPrinter* self, struct miqt_string printerName);
|
|
struct miqt_string QPrinter_printerName(const QPrinter* self);
|
|
bool QPrinter_isValid(const QPrinter* self);
|
|
void QPrinter_setOutputFileName(QPrinter* self, struct miqt_string outputFileName);
|
|
struct miqt_string QPrinter_outputFileName(const QPrinter* self);
|
|
void QPrinter_setPrintProgram(QPrinter* self, struct miqt_string printProgram);
|
|
struct miqt_string QPrinter_printProgram(const QPrinter* self);
|
|
void QPrinter_setDocName(QPrinter* self, struct miqt_string docName);
|
|
struct miqt_string QPrinter_docName(const QPrinter* self);
|
|
void QPrinter_setCreator(QPrinter* self, struct miqt_string creator);
|
|
struct miqt_string QPrinter_creator(const QPrinter* self);
|
|
void QPrinter_setOrientation(QPrinter* self, int orientation);
|
|
int QPrinter_orientation(const QPrinter* self);
|
|
void QPrinter_setPageSize(QPrinter* self, int pageSize);
|
|
int QPrinter_pageSize(const QPrinter* self);
|
|
void QPrinter_setPageSizeMM(QPrinter* self, QSizeF* size);
|
|
void QPrinter_setPaperSize(QPrinter* self, int paperSize);
|
|
int QPrinter_paperSize(const QPrinter* self);
|
|
void QPrinter_setPaperSize2(QPrinter* self, QSizeF* paperSize, int unit);
|
|
QSizeF* QPrinter_paperSizeWithUnit(const QPrinter* self, int unit);
|
|
void QPrinter_setPaperName(QPrinter* self, struct miqt_string paperName);
|
|
struct miqt_string QPrinter_paperName(const QPrinter* self);
|
|
void QPrinter_setPageOrder(QPrinter* self, int pageOrder);
|
|
int QPrinter_pageOrder(const QPrinter* self);
|
|
void QPrinter_setResolution(QPrinter* self, int resolution);
|
|
int QPrinter_resolution(const QPrinter* self);
|
|
void QPrinter_setColorMode(QPrinter* self, int colorMode);
|
|
int QPrinter_colorMode(const QPrinter* self);
|
|
void QPrinter_setCollateCopies(QPrinter* self, bool collate);
|
|
bool QPrinter_collateCopies(const QPrinter* self);
|
|
void QPrinter_setFullPage(QPrinter* self, bool fullPage);
|
|
bool QPrinter_fullPage(const QPrinter* self);
|
|
void QPrinter_setNumCopies(QPrinter* self, int numCopies);
|
|
int QPrinter_numCopies(const QPrinter* self);
|
|
int QPrinter_actualNumCopies(const QPrinter* self);
|
|
void QPrinter_setCopyCount(QPrinter* self, int copyCount);
|
|
int QPrinter_copyCount(const QPrinter* self);
|
|
bool QPrinter_supportsMultipleCopies(const QPrinter* self);
|
|
void QPrinter_setPaperSource(QPrinter* self, int paperSource);
|
|
int QPrinter_paperSource(const QPrinter* self);
|
|
void QPrinter_setDuplex(QPrinter* self, int duplex);
|
|
int QPrinter_duplex(const QPrinter* self);
|
|
struct miqt_array /* of int */ QPrinter_supportedResolutions(const QPrinter* self);
|
|
void QPrinter_setFontEmbeddingEnabled(QPrinter* self, bool enable);
|
|
bool QPrinter_fontEmbeddingEnabled(const QPrinter* self);
|
|
void QPrinter_setDoubleSidedPrinting(QPrinter* self, bool enable);
|
|
bool QPrinter_doubleSidedPrinting(const QPrinter* self);
|
|
void QPrinter_setWinPageSize(QPrinter* self, int winPageSize);
|
|
int QPrinter_winPageSize(const QPrinter* self);
|
|
QRect* QPrinter_paperRect(const QPrinter* self);
|
|
QRect* QPrinter_pageRect(const QPrinter* self);
|
|
QRectF* QPrinter_paperRectWithQPrinterUnit(const QPrinter* self, int param1);
|
|
QRectF* QPrinter_pageRectWithQPrinterUnit(const QPrinter* self, int param1);
|
|
struct miqt_string QPrinter_printerSelectionOption(const QPrinter* self);
|
|
void QPrinter_setPrinterSelectionOption(QPrinter* self, struct miqt_string printerSelectionOption);
|
|
bool QPrinter_newPage(QPrinter* self);
|
|
bool QPrinter_abort(QPrinter* self);
|
|
int QPrinter_printerState(const QPrinter* self);
|
|
QPaintEngine* QPrinter_paintEngine(const QPrinter* self);
|
|
QPrintEngine* QPrinter_printEngine(const QPrinter* self);
|
|
void QPrinter_setFromTo(QPrinter* self, int fromPage, int toPage);
|
|
int QPrinter_fromPage(const QPrinter* self);
|
|
int QPrinter_toPage(const QPrinter* self);
|
|
void QPrinter_setPrintRange(QPrinter* self, int range);
|
|
int QPrinter_printRange(const QPrinter* self);
|
|
void QPrinter_setMargins(QPrinter* self, QPagedPaintDevice__Margins* m);
|
|
void QPrinter_setPageMargins(QPrinter* self, double left, double top, double right, double bottom, int unit);
|
|
void QPrinter_getPageMargins(const QPrinter* self, double* left, double* top, double* right, double* bottom, int unit);
|
|
int QPrinter_metric(const QPrinter* self, int param1);
|
|
bool QPrinter_override_virtual_devType(void* self, intptr_t slot);
|
|
int QPrinter_virtualbase_devType(const void* self);
|
|
bool QPrinter_override_virtual_setPageSize(void* self, intptr_t slot);
|
|
void QPrinter_virtualbase_setPageSize(void* self, int pageSize);
|
|
bool QPrinter_override_virtual_setPageSizeMM(void* self, intptr_t slot);
|
|
void QPrinter_virtualbase_setPageSizeMM(void* self, QSizeF* size);
|
|
bool QPrinter_override_virtual_newPage(void* self, intptr_t slot);
|
|
bool QPrinter_virtualbase_newPage(void* self);
|
|
bool QPrinter_override_virtual_paintEngine(void* self, intptr_t slot);
|
|
QPaintEngine* QPrinter_virtualbase_paintEngine(const void* self);
|
|
bool QPrinter_override_virtual_setMargins(void* self, intptr_t slot);
|
|
void QPrinter_virtualbase_setMargins(void* self, QPagedPaintDevice__Margins* m);
|
|
bool QPrinter_override_virtual_metric(void* self, intptr_t slot);
|
|
int QPrinter_virtualbase_metric(const void* self, int param1);
|
|
bool QPrinter_override_virtual_initPainter(void* self, intptr_t slot);
|
|
void QPrinter_virtualbase_initPainter(const void* self, QPainter* painter);
|
|
bool QPrinter_override_virtual_redirected(void* self, intptr_t slot);
|
|
QPaintDevice* QPrinter_virtualbase_redirected(const void* self, QPoint* offset);
|
|
bool QPrinter_override_virtual_sharedPainter(void* self, intptr_t slot);
|
|
QPainter* QPrinter_virtualbase_sharedPainter(const void* self);
|
|
void QPrinter_delete(QPrinter* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|