EvinceView.View¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Scrollable (9)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Whether the view can be zoomed in further |
||
r |
Whether the view can be zoomed out further |
||
r |
Whether the view is loading |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class EvinceView.View(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- add_text_markup_annotation_for_selected_text()¶
-
Adds a Text Markup annotation (defaulting to a ‘highlight’ one) to the currently selected text on the document.
When the selected text spans more than one page, it will add a corresponding annotation for each page that contains selected text.
New in version 3.30.
- autoscroll_start()¶
- autoscroll_stop()¶
- begin_add_annotation(annot_type)¶
- Parameters:
annot_type (
EvinceDocument.AnnotationType
) –
- cancel_add_annotation()¶
- copy()¶
- copy_link_address(action)¶
- Parameters:
action (
EvinceDocument.LinkAction
) –
- current_event_is_type(type)¶
- Parameters:
type (
Gdk.EventType
) –- Return type:
- find_cancel()¶
- find_next()¶
- find_previous()¶
- find_restart(page)¶
- Parameters:
page (
int
) – a page index
Restart the current search operation from the given page.
New in version 3.12.
- find_search_changed()¶
- find_started(job)¶
- Parameters:
job (
EvinceView.JobFind
) –
New in version 3.6.
- focus_annotation(annot_mapping)¶
- Parameters:
annot_mapping (
EvinceDocument.Mapping
) –
- get_page_extents(page, page_area, border)¶
- Parameters:
page (
int
) –page_area (
Gdk.Rectangle
) –border (
Gtk.Border
) –
- Return type:
- get_page_extents_for_border(page, border, page_area)¶
- Parameters:
page (
int
) –border (
Gtk.Border
) –page_area (
Gdk.Rectangle
) –
- Return type:
- get_selected_text()¶
- Returns:
The string representing selected text.
- Return type:
Returns a pointer to a constant string containing the selected text in the view.
The value returned may be
None
if there is no selected text.New in version 3.30.
- handle_link(link)¶
- Parameters:
link (
EvinceDocument.Link
) –
- hide_cursor()¶
- highlight_forward_search(link)¶
- Parameters:
link (
EvinceDocument.SourceLink
) –
- Return type:
- is_loading()¶
-
New in version 3.8.
- reload()¶
- remove_annotation(annot)¶
- Parameters:
annot (
EvinceDocument.Annotation
) –
- scroll(scroll, horizontal)¶
- Parameters:
scroll (
Gtk.ScrollType
) –horizontal (
bool
) –
Deprecated since version 3.10.
- select_all()¶
- set_caret_cursor_position(page, offset)¶
-
New in version 3.10.
- Parameters:
enabled (
bool
) – whether to enable caret navigation mode
Enables or disables caret navigation mode for the document.
New in version 3.10.
- set_model(model)¶
- Parameters:
model (
EvinceView.DocumentModel
) –
- set_page_cache_size(cache_size)¶
- Parameters:
cache_size (
int
) – size in bytes
Sets the maximum size in bytes that will be used to cache rendered pages. Use 0 to disable caching rendered pages.
Note that this limit doesn’t affect the current visible page range, which will always be rendered. In order to limit the total memory used you have to use
EvinceView.DocumentModel.set_max_scale
() too.
- show_cursor()¶
- Returns:
whether the document supports caret navigation
- Return type:
New in version 3.10.
- zoom_in()¶
- zoom_out()¶
Signal Details¶
- EvinceView.View.signals.activate(view)¶
- Signal Name:
activate
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signal
- EvinceView.View.signals.annot_added(view, object)¶
- Signal Name:
annot-added
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
EvinceDocument.Annotation
) –
- EvinceView.View.signals.annot_cancel_add(view)¶
- Signal Name:
annot-cancel-add
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signal
- EvinceView.View.signals.annot_changed(view, object)¶
- Signal Name:
annot-changed
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
EvinceDocument.Annotation
) –
- EvinceView.View.signals.annot_removed(view, object)¶
- Signal Name:
annot-removed
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
EvinceDocument.Annotation
) –
- EvinceView.View.signals.cursor_moved(view, object, p0)¶
- Signal Name:
cursor-moved
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
int
) –p0 (
int
) –
- EvinceView.View.signals.external_link(view, object)¶
- Signal Name:
external-link
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
GObject.Object
) –
- EvinceView.View.signals.handle_link(view, object, p0)¶
- Signal Name:
handle-link
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
int
) –p0 (
GObject.Object
) –
- EvinceView.View.signals.layers_changed(view)¶
- Signal Name:
layers-changed
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signal
- EvinceView.View.signals.move_cursor(view, object, p0, p1)¶
- Signal Name:
move-cursor
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
Gtk.MovementStep
) –p0 (
int
) –p1 (
bool
) –
- Return type:
- EvinceView.View.signals.popup(view, object)¶
- Signal Name:
popup
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signal
- EvinceView.View.signals.scroll(view, object, p0)¶
- Signal Name:
scroll
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
Gtk.ScrollType
) –p0 (
Gtk.Orientation
) –
- EvinceView.View.signals.selection_changed(view)¶
- Signal Name:
selection-changed
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signal
- EvinceView.View.signals.sync_source(view, object)¶
- Signal Name:
sync-source
- Flags:
- Parameters:
view (
EvinceView.View
) – The object which received the signalobject (
EvinceDocument.SourceLink
) –
Property Details¶
- EvinceView.View.props.can_zoom_in¶
-
Whether the view can be zoomed in further
New in version 3.8.
- EvinceView.View.props.can_zoom_out¶
-
Whether the view can be zoomed out further
New in version 3.8.