diff options
Diffstat (limited to 'src/gtkext/gtkdisplaypanel.c')
-rw-r--r-- | src/gtkext/gtkdisplaypanel.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/gtkext/gtkdisplaypanel.c b/src/gtkext/gtkdisplaypanel.c index 08c9838..2cb05ea 100644 --- a/src/gtkext/gtkdisplaypanel.c +++ b/src/gtkext/gtkdisplaypanel.c @@ -98,6 +98,12 @@ static void gtk_display_panel_set_content(GtkDisplayPanel *, GLoadedContent *); /* Fournit le contenu associé à un panneau de chargement. */ static GLoadedContent *gtk_display_panel_get_content(const GtkDisplayPanel *); +/* Fournit le position courante dans un panneau de chargement. */ +static GLineCursor *gtk_display_panel_get_cursor(const GtkDisplayPanel *); + +/* Définit le position courante dans un panneau de chargement. */ +static void gtk_display_panel_set_cursor(GtkDisplayPanel *, const GLineCursor *); + /* Place en cache un rendu destiné à l'aperçu graphique rapide. */ static void gtk_display_panel_cache_glance(GtkDisplayPanel *, cairo_t *, const GtkAllocation *, double); @@ -204,6 +210,9 @@ static void gtk_display_panel_loaded_interface_init(GLoadedPanelInterface *iface iface->set_content = (set_loaded_panel_content_fc)gtk_display_panel_set_content; iface->get_content = (get_loaded_panel_content_fc)gtk_display_panel_get_content; + iface->get_cursor = (get_loaded_cursor_fc)gtk_display_panel_get_cursor; + iface->set_cursor = (set_loaded_cursor_fc)gtk_display_panel_set_cursor; + iface->cache_glance = (cache_loaded_glance_fc)gtk_display_panel_cache_glance; } @@ -1155,6 +1164,49 @@ static GLoadedContent *gtk_display_panel_get_content(const GtkDisplayPanel *pane /****************************************************************************** * * +* Paramètres : panel = composant GTK à consulter. * +* * +* Description : Fournit le position courante dans un panneau de chargement. * +* * +* Retour : Informations relatives à la position du curseur. * +* * +* Remarques : - * +* * +******************************************************************************/ + +static GLineCursor *gtk_display_panel_get_cursor(const GtkDisplayPanel *panel) +{ + GLineCursor *result; /* Contenu à retourner */ + + result = GTK_DISPLAY_PANEL_GET_CLASS(panel)->get_cursor(panel); + + return result; + +} + + +/****************************************************************************** +* * +* Paramètres : panel = composant GTK à mettre à jour. * +* cursor = informations relatives à la position du curseur. * +* * +* Description : Définit le position courante dans un panneau de chargement. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +static void gtk_display_panel_set_cursor(GtkDisplayPanel *panel, const GLineCursor *cursor) +{ + GTK_DISPLAY_PANEL_GET_CLASS(panel)->set_cursor(panel, cursor); + +} + + +/****************************************************************************** +* * * Paramètres : panel = composant GTK à manipuler. * * cairo = assistant pour la création de rendus. * * area = taille de la surface réduite à disposition. * |