summaryrefslogtreecommitdiff
path: root/src/glibext/gloadedpanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/gloadedpanel.h')
-rw-r--r--src/glibext/gloadedpanel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/glibext/gloadedpanel.h b/src/glibext/gloadedpanel.h
index ffdb35b..50ea058 100644
--- a/src/glibext/gloadedpanel.h
+++ b/src/glibext/gloadedpanel.h
@@ -26,6 +26,7 @@
#include <glib-object.h>
+#include <stdbool.h>
#include <gtk/gtk.h>
@@ -67,6 +68,19 @@ void g_loaded_panel_set_cursor(GLoadedPanel *, const GLineCursor *);
/* Demande à qui veut répondre un déplacement du curseur. */
void g_loaded_panel_request_move(GLoadedPanel *, const GLineCursor *, gboolean);
+/* Adaptation d'une position sur une surface */
+typedef enum _ScrollPositionTweak
+{
+ SPT_RAW, /* Aucun ajustement */
+ SPT_TOP, /* Le plus haut possible */
+ SPT_CENTER, /* Au centre de la surface */
+ SPT_BOTTOM /* Le plus bas possible */
+
+} ScrollPositionTweak;
+
+/* S'assure qu'un emplacement donné est visible à l'écran. */
+void g_loaded_panel_scroll_to_cursor(GLoadedPanel *, const GLineCursor *, ScrollPositionTweak, bool);
+
/* Place en cache un rendu destiné à l'aperçu graphique rapide. */
void g_loaded_panel_cache_glance(GLoadedPanel *, cairo_t *, const GtkAllocation *, double);