diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-12-26 23:52:44 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-12-26 23:52:44 (GMT) |
commit | 2c28d59fb3671c0fdd1987784076d4968c58b651 (patch) | |
tree | a301f6cd9c1fd9f92191fba7fe7b59a7e3a01b5a /src/glibext/gloadedpanel.c | |
parent | 67b4887317b7394d63b543aa48cb368406374103 (diff) |
Created the GLoadedContent interface to load all kinds of content.
Diffstat (limited to 'src/glibext/gloadedpanel.c')
-rw-r--r-- | src/glibext/gloadedpanel.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/glibext/gloadedpanel.c b/src/glibext/gloadedpanel.c index fa12ec7..4d5a1e1 100644 --- a/src/glibext/gloadedpanel.c +++ b/src/glibext/gloadedpanel.c @@ -57,6 +57,58 @@ static void g_loaded_panel_default_init(GLoadedPanelInterface *iface) /****************************************************************************** * * +* Paramètres : panel = composant GTK à compléter. * +* content = contenu quelconque chargé en mémoire. * +* * +* Description : Définit le contenu associé à un panneau de chargement. * +* * +* Retour : * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_loaded_panel_set_content(GLoadedPanel *panel, GLoadedContent *content) +{ + GLoadedPanelIface *iface; /* Interface utilisée */ + + g_object_ref(G_OBJECT(content)); + + iface = G_LOADED_PANEL_GET_IFACE(panel); + + iface->set_content(panel, content); + +} + + +/****************************************************************************** +* * +* Paramètres : panel = composant GTK à consulter. * +* * +* Description : Fournit le contenu associé à un panneau de chargement. * +* * +* Retour : Contenu quelconque chargé en mémoire. * +* * +* Remarques : - * +* * +******************************************************************************/ + +GLoadedContent *g_loaded_panel_get_content(const GLoadedPanel *panel) +{ + GLoadedContent *result; /* Contenu à retourner */ + GLoadedPanelIface *iface; /* Interface utilisée */ + + iface = G_LOADED_PANEL_GET_IFACE(panel); + + result = iface->get_content(panel); + + return result; + +} + + +/****************************************************************************** +* * * Paramètres : panel = composant GTK à manipuler. * * cairo = assistant pour la création de rendus. * * area = taille de la surface réduite à disposition. * |