EvinceView.DocumentModel

g EvinceView.DocumentModel EvinceView.DocumentModel GObject.Object GObject.Object GObject.Object->EvinceView.DocumentModel

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

new_with_document (document)

get_continuous ()

get_document ()

get_dual_page ()

get_dual_page_odd_pages_left ()

get_fullscreen ()

get_inverted_colors ()

get_max_scale ()

get_min_scale ()

get_page ()

get_page_layout ()

get_rotation ()

get_rtl ()

get_scale ()

get_sizing_mode ()

set_continuous (continuous)

set_document (document)

set_dual_page (dual_page)

set_dual_page_odd_pages_left (odd_left)

set_fullscreen (fullscreen)

set_inverted_colors (inverted_colors)

set_max_scale (max_scale)

set_min_scale (min_scale)

set_page (page)

set_page_by_label (page_label)

set_page_layout (layout)

set_rotation (rotation)

set_rtl (rtl)

set_scale (scale)

set_sizing_mode (mode)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

continuous

bool

r/w

Whether document is displayed in continuous mode

document

EvinceDocument.Document

r/w

The current document

dual-odd-left

bool

r/w

Whether odd pages are displayed on left side in dual mode

dual-page

bool

r/w

Whether document is displayed in dual page mode

fullscreen

bool

r/w

Whether document is displayed in fullscreen mode

inverted-colors

bool

r/w

Whether document is displayed with inverted colors

max-scale

float

r/w

Maximum scale factor

min-scale

float

r/w

Minimum scale factor

page

int

r/w

Current page

page-layout

EvinceView.PageLayout

r/w

Current page layout

rotation

int

r/w

Current rotation angle

rtl

bool

r/w

Whether the document is written from right to left

scale

float

r/w

Current scale factor

sizing-mode

EvinceView.SizingMode

r/w

Current sizing mode

Signals

Inherited:

GObject.Object (1)

Name

Short Description

page-changed

Fields

Inherited:

GObject.Object (1)

Class Details

class EvinceView.DocumentModel(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

EvinceView.DocumentModelClass

classmethod new()
Return type:

EvinceView.DocumentModel

classmethod new_with_document(document)
Parameters:

document (EvinceDocument.Document) –

Return type:

EvinceView.DocumentModel

get_continuous()
Return type:

bool

get_document()
Returns:

a EvinceDocument.Document

Return type:

EvinceDocument.Document

Returns the EvinceDocument.Document referenced by the model.

get_dual_page()
Returns:

whether the document model’s page layout is set to EvinceView.PageLayout.DUAL.

Return type:

bool

Deprecated since version 3.8: Use EvinceView.DocumentModel.get_page_layout() instead

get_dual_page_odd_pages_left()
Return type:

bool

get_fullscreen()
Return type:

bool

get_inverted_colors()
Return type:

bool

get_max_scale()
Return type:

float

get_min_scale()
Return type:

float

get_page()
Return type:

int

get_page_layout()
Returns:

the document model’s page layout

Return type:

EvinceView.PageLayout

New in version 3.8.

get_rotation()
Return type:

int

get_rtl()
Return type:

bool

get_scale()
Return type:

float

get_sizing_mode()
Return type:

EvinceView.SizingMode

set_continuous(continuous)
Parameters:

continuous (bool) –

set_document(document)
Parameters:

document (EvinceDocument.Document) –

set_dual_page(dual_page)
Parameters:

dual_page (bool) – whether to enable dual page mode

Sets the document model’s page layout to EvinceView.PageLayout.SINGLE or EvinceView.PageLayout.DUAL.

Deprecated since version 3.8: Use EvinceView.DocumentModel.set_page_layout() instead

set_dual_page_odd_pages_left(odd_left)
Parameters:

odd_left (bool) –

set_fullscreen(fullscreen)
Parameters:

fullscreen (bool) –

set_inverted_colors(inverted_colors)
Parameters:

inverted_colors (bool) –

set_max_scale(max_scale)
Parameters:

max_scale (float) –

set_min_scale(min_scale)
Parameters:

min_scale (float) –

set_page(page)
Parameters:

page (int) –

set_page_by_label(page_label)
Parameters:

page_label (str) –

set_page_layout(layout)
Parameters:

layout (EvinceView.PageLayout) – a EvinceView.PageLayout

Sets the document model’s page layout to layout.

New in version 3.8.

set_rotation(rotation)
Parameters:

rotation (int) –

set_rtl(rtl)
Parameters:

rtl (bool) –

set_scale(scale)
Parameters:

scale (float) –

set_sizing_mode(mode)
Parameters:

mode (EvinceView.SizingMode) –

Signal Details

EvinceView.DocumentModel.signals.page_changed(document_model, object, p0)
Signal Name:

page-changed

Flags:

RUN_LAST

Parameters:

Property Details

EvinceView.DocumentModel.props.continuous
Name:

continuous

Type:

bool

Default Value:

True

Flags:

READABLE, WRITABLE

Whether document is displayed in continuous mode

EvinceView.DocumentModel.props.document
Name:

document

Type:

EvinceDocument.Document

Default Value:

None

Flags:

READABLE, WRITABLE

The current document

EvinceView.DocumentModel.props.dual_odd_left
Name:

dual-odd-left

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether odd pages are displayed on left side in dual mode

EvinceView.DocumentModel.props.dual_page
Name:

dual-page

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether document is displayed in dual page mode

EvinceView.DocumentModel.props.fullscreen
Name:

fullscreen

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether document is displayed in fullscreen mode

EvinceView.DocumentModel.props.inverted_colors
Name:

inverted-colors

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether document is displayed with inverted colors

EvinceView.DocumentModel.props.max_scale
Name:

max-scale

Type:

float

Default Value:

5.0

Flags:

READABLE, WRITABLE

Maximum scale factor

EvinceView.DocumentModel.props.min_scale
Name:

min-scale

Type:

float

Default Value:

0.25

Flags:

READABLE, WRITABLE

Minimum scale factor

EvinceView.DocumentModel.props.page
Name:

page

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

Current page

EvinceView.DocumentModel.props.page_layout
Name:

page-layout

Type:

EvinceView.PageLayout

Default Value:

EvinceView.PageLayout.SINGLE

Flags:

READABLE, WRITABLE

Current page layout

EvinceView.DocumentModel.props.rotation
Name:

rotation

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE

Current rotation angle

EvinceView.DocumentModel.props.rtl
Name:

rtl

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

Whether the document is written from right to left

EvinceView.DocumentModel.props.scale
Name:

scale

Type:

float

Default Value:

1.0

Flags:

READABLE, WRITABLE

Current scale factor

EvinceView.DocumentModel.props.sizing_mode
Name:

sizing-mode

Type:

EvinceView.SizingMode

Default Value:

EvinceView.SizingMode.FIT_WIDTH

Flags:

READABLE, WRITABLE

Current sizing mode