DocumentModel

Constructors

this
this(EvDocumentModel* evDocumentModel, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()
this
this(Document document)

Members

Functions

addOnPageChanged
gulong addOnPageChanged(void delegate(int, int, DocumentModel) dlg, ConnectFlags connectFlags)
getContinuous
bool getContinuous()
getDocument
Document getDocument()

Returns the #EvDocument referenced by the model.

getDocumentModelStruct
EvDocumentModel* getDocumentModelStruct(bool transferOwnership)

Get the main Gtk struct

getDualPage
bool getDualPage()
getDualPageOddPagesLeft
bool getDualPageOddPagesLeft()
getFullscreen
bool getFullscreen()
getInvertedColors
bool getInvertedColors()
getMaxScale
double getMaxScale()
getMinScale
double getMinScale()
getPage
int getPage()
getPageLayout
EvPageLayout getPageLayout()
getRotation
int getRotation()
getRtl
bool getRtl()
getScale
double getScale()
getSizingMode
EvSizingMode getSizingMode()
getStruct
void* getStruct()

the main Gtk struct as a void*

setContinuous
void setContinuous(bool continuous)
setDocument
void setDocument(Document document)
setDualPage
void setDualPage(bool dualPage)

Sets the document model's page layout to %EV_PAGE_LAYOUT_SINGLE or %EV_PAGE_LAYOUT_DUAL.

setDualPageOddPagesLeft
void setDualPageOddPagesLeft(bool oddLeft)
setFullscreen
void setFullscreen(bool fullscreen)
setInvertedColors
void setInvertedColors(bool invertedColors)
setMaxScale
void setMaxScale(double maxScale)
setMinScale
void setMinScale(double minScale)
setPage
void setPage(int page)
setPageByLabel
void setPageByLabel(string pageLabel)
setPageLayout
void setPageLayout(EvPageLayout layout)

Sets the document model's page layout to @layout.

setRotation
void setRotation(int rotation)
setRtl
void setRtl(bool rtl)
setScale
void setScale(double scale)
setSizingMode
void setSizingMode(EvSizingMode mode)

Static functions

getType
GType getType()

Variables

evDocumentModel
EvDocumentModel* evDocumentModel;

the main Gtk struct

Meta