PapersView.View¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (17), Gtk.Buildable (1), Gtk.Scrollable (9)
- Structs:
 
class  | 
  | 
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  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class PapersView.View(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod get_resource()¶
 - Return type:
 
- classmethod new()¶
 - Return type:
 
- cancel_signature_rect()¶
 
- copy()¶
 
- copy_link_address(action)¶
 - Parameters:
 action (
PapersDocument.LinkAction) –
- current_event_is_type(type)¶
 - Parameters:
 type (
Gdk.EventType) –- Return type:
 
- focus_annotation(annot_mapping)¶
 - Parameters:
 annot_mapping (
PapersDocument.Mapping) –
- get_mark_for_view_point(view_point_x, view_point_y)¶
 - Parameters:
 - Returns:
 a pointer to a
PapersDocument.Markthat represents the location in the document for view_point_x and view_point_y. If the location is not in a page in the document, it returnsNone.- Return type:
 
New in version 48.0.
- 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
Noneif there is no selected text.New in version 3.30.
- get_selections()¶
 - Returns:
 a list with the current selections.
- Return type:
 
New in version 48.0.
- handle_link(link)¶
 - Parameters:
 link (
PapersDocument.Link) –
- Return type:
 
- reload()¶
 
- select_all()¶
 
- set_annotations_context(context)¶
 - Parameters:
 context (
PapersView.AnnotationsContext) – thePapersView.AnnotationsContextto set
New in version 48.0.
- 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 (
PapersView.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
PapersView.DocumentModel.set_max_scale() too.
- set_search_context(context)¶
 - Parameters:
 context (
PapersView.SearchContext) –
- start_signature_rect()¶
 
- Returns:
 whether the document supports caret navigation
- Return type:
 
New in version 3.10.
- zoom_in()¶
 
- zoom_out()¶
 
Signal Details¶
- PapersView.View.signals.activate(view)¶
 - Signal Name:
 activate- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signal
- PapersView.View.signals.cursor_moved(view, object, p0)¶
 - Signal Name:
 cursor-moved- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signalobject (
int) –p0 (
int) –
- PapersView.View.signals.external_link(view, object)¶
 - Signal Name:
 external-link- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signalobject (
PapersDocument.LinkAction) –
- PapersView.View.signals.handle_link(view, object, p0)¶
 - Signal Name:
 handle-link- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signalobject (
GObject.Object) –p0 (
GObject.Object) –
- PapersView.View.signals.layers_changed(view)¶
 - Signal Name:
 layers-changed- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signal
- PapersView.View.signals.move_cursor(view, object, p0, p1)¶
 - Signal Name:
 move-cursor- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signalobject (
Gtk.MovementStep) –p0 (
int) –p1 (
bool) –
- Return type:
 
- PapersView.View.signals.popup(view, object, p0, p1)¶
 
- PapersView.View.signals.scroll(view, object, p0)¶
 - Signal Name:
 scroll- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signalobject (
Gtk.ScrollType) –p0 (
Gtk.Orientation) –
- Return type:
 
- PapersView.View.signals.selection_changed(view)¶
 - Signal Name:
 selection-changed- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signal
- PapersView.View.signals.signature_rect(view, object, p0)¶
 - Signal Name:
 signature-rect- Flags:
 - Parameters:
 view (
PapersView.View) – The object which received the signalobject (
int) –p0 (
PapersDocument.Rectangle) –
Property Details¶
- PapersView.View.props.can_zoom_in¶
 - 
Whether the view can be zoomed in further
New in version 3.8.