Code

gtk-tpdfv: Added gtk_tpdfv_goto_page().
[tpdfview.git] / src / gtk-tpdfv.h
index 44ffd71d0dfe6577d2cd9cd165b131826afdf4c2..1313c7aaab2884c8810ce2adada27371cc433424 100644 (file)
@@ -72,9 +72,19 @@ gtk_tpdfv_new(const char *filename);
 void
 gtk_tpdfv_reload(GtkWidget *widget);
 
+/*
+ * gtk_tpdfv_get_n_pages, gtk_tpdfv_get_current_page:
+ * Get the total number of pages or the current page number.
+ */
+int
+gtk_tpdfv_get_n_pages(GtkWidget *widget);
+int
+gtk_tpdfv_get_current_page(GtkWidget *widget);
+
 /*
  * gtk_tpdfv_page_up, gtk_tpdfv_page_down,
- * gtk_tpdfv_first_page, gtk_tpdfv_last_page:
+ * gtk_tpdfv_first_page, gtk_tpdfv_last_page,
+ * gtk_tpdfv_goto_page:
  * Navigation.
  */
 void
@@ -85,6 +95,8 @@ void
 gtk_tpdfv_first_page(GtkWidget *widget);
 void
 gtk_tpdfv_last_page(GtkWidget *widget);
+void
+gtk_tpdfv_goto_page(GtkWidget *widget, int page);
 
 /*
  * gtk_tpdfv_zoom_in, gtk_tpdfv_zoom_out,
@@ -141,6 +153,17 @@ gtk_tpdfv_screens_destroy(gtk_tpdfv_screens_t *screens);
 gint
 gtk_tpdfv_screens_number(const gtk_tpdfv_screens_t *screens);
 
+/*
+ * gtk_tpdfv_screens_window_set, gtk_tpdfv_screens_window_get:
+ * Set or get the screen of a window.
+ */
+void
+gtk_tpdfv_screens_window_set(const gtk_tpdfv_screens_t *screens,
+               GtkWindow *window, gint screen);
+gint
+gtk_tpdfv_screens_window_get(const gtk_tpdfv_screens_t *screens,
+               GtkWindow *window);
+
 #ifdef __cplusplus
 } /* extern "C" */
 #endif