EvinceView.DocumentModel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Whether document is displayed in continuous mode |
||
r/w |
The current document |
||
r/w |
Whether odd pages are displayed on left side in dual mode |
||
r/w |
Whether document is displayed in dual page mode |
||
r/w |
Whether document is displayed in fullscreen mode |
||
r/w |
Whether document is displayed with inverted colors |
||
r/w |
Maximum scale factor |
||
r/w |
Minimum scale factor |
||
r/w |
Current page |
||
r/w |
Current page layout |
||
r/w |
Current rotation angle |
||
r/w |
Whether the document is written from right to left |
||
r/w |
Current scale factor |
||
r/w |
Current sizing mode |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class EvinceView.DocumentModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- classmethod new_with_document(document)¶
- Parameters:
document (
EvinceDocument.Document
) –- Return type:
- get_document()¶
- Returns:
- Return type:
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:
Deprecated since version 3.8: Use
EvinceView.DocumentModel.get_page_layout
() instead
- get_page_layout()¶
- Returns:
the document model’s page layout
- Return type:
New in version 3.8.
- get_sizing_mode()¶
- Return type:
- 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
orEvinceView.PageLayout.DUAL
.Deprecated since version 3.8: Use
EvinceView.DocumentModel.set_page_layout
() instead
- set_page_layout(layout)¶
- Parameters:
layout (
EvinceView.PageLayout
) – aEvinceView.PageLayout
Sets the document model’s page layout to layout.
New in version 3.8.
- set_sizing_mode(mode)¶
- Parameters:
mode (
EvinceView.SizingMode
) –
Signal Details¶
- EvinceView.DocumentModel.signals.page_changed(document_model, object, p0)¶
- Signal Name:
page-changed
- Flags:
- Parameters:
document_model (
EvinceView.DocumentModel
) – The object which received the signalobject (
int
) –p0 (
int
) –
Property Details¶
- EvinceView.DocumentModel.props.continuous¶
-
Whether document is displayed in continuous mode
- EvinceView.DocumentModel.props.document¶
- Name:
document
- Type:
- Default Value:
- Flags:
The current document
- EvinceView.DocumentModel.props.dual_odd_left¶
-
Whether odd pages are displayed on left side in dual mode
- EvinceView.DocumentModel.props.dual_page¶
-
Whether document is displayed in dual page mode
- EvinceView.DocumentModel.props.fullscreen¶
-
Whether document is displayed in fullscreen mode
- EvinceView.DocumentModel.props.inverted_colors¶
-
Whether document is displayed with inverted colors
- EvinceView.DocumentModel.props.max_scale¶
-
Maximum scale factor
- EvinceView.DocumentModel.props.min_scale¶
-
Minimum scale factor
- EvinceView.DocumentModel.props.page¶
-
Current page
- EvinceView.DocumentModel.props.page_layout¶
- Name:
page-layout
- Type:
- Default Value:
- Flags:
Current page layout
- EvinceView.DocumentModel.props.rotation¶
-
Current rotation angle
- EvinceView.DocumentModel.props.rtl¶
-
Whether the document is written from right to left
- EvinceView.DocumentModel.props.scale¶
-
Current scale factor
- EvinceView.DocumentModel.props.sizing_mode¶
- Name:
sizing-mode
- Type:
- Default Value:
- Flags:
Current sizing mode