parent
ccb7abb1ad
commit
1bdf1419ea
7 changed files with 59 additions and 16 deletions
@ -0,0 +1,11 @@ |
||||
#include "XojPdfPage.h" |
||||
|
||||
XojPdfPage::XojPdfPage() |
||||
{ |
||||
XOJ_INIT_TYPE(XojPdfPage); |
||||
} |
||||
|
||||
XojPdfPage::~XojPdfPage() |
||||
{ |
||||
XOJ_RELEASE_TYPE(XojPdfPage); |
||||
} |
||||
@ -0,0 +1,32 @@ |
||||
/*
|
||||
* Xournal++ |
||||
* |
||||
* PDF Page Abstraction Interface |
||||
* |
||||
* @author Xournal++ Team |
||||
* https://github.com/xournalpp/xournalpp
|
||||
* |
||||
* @license GNU GPLv2 or later |
||||
*/ |
||||
|
||||
#pragma once |
||||
|
||||
#include <XournalType.h> |
||||
|
||||
#include <cairo/cairo.h> |
||||
|
||||
class XojPdfPage |
||||
{ |
||||
public: |
||||
XojPdfPage(); |
||||
virtual ~XojPdfPage(); |
||||
|
||||
public: |
||||
virtual double getWidth() = 0; |
||||
virtual double getHeight() = 0; |
||||
|
||||
virtual void render(cairo_t* cr, bool forPrinting = false) = 0; |
||||
|
||||
private: |
||||
XOJ_TYPE_ATTRIB; |
||||
}; |
||||
Loading…
Reference in new issue