diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 20:11:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 20:11:21 (GMT) |
commit | f6e56cebfa878dd32a2405fd0c916a40140a1ff0 (patch) | |
tree | 3e364d2e2b2de19b85ab6d14f856d4b8db11737a /src/glibext/gloadedpanel.h | |
parent | e0d03e3eddb9d240cc21ac1b7a7ade915fd17942 (diff) |
Applied a new GUI update with the new loaded panels features.
Diffstat (limited to 'src/glibext/gloadedpanel.h')
-rw-r--r-- | src/glibext/gloadedpanel.h | 14 |
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); |