/* Chrysalide - Outil d'analyse de fichiers binaires * panel-int.h - prototypes pour les définitions internes liées aux panneaux d'affichage * * Copyright (C) 2019-2024 Cyrille Bagard * * This file is part of Chrysalide. * * Chrysalide is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Chrysalide is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _GUI_PANEL_INT_H #define _GUI_PANEL_INT_H #include "panel.h" /* Fournit une indication sur la personnalité du panneau. */ typedef PanelItemPersonality (* get_panel_item_personality_cb) (const GPanelItem *); /* Fournit un composant pour lancer l'activité d'un panneau. */ typedef GtkWidget * (* get_panel_item_widget_cb) (GPanelItem *); /* Fournit un composant représentant un panneau graphique. */ typedef GtkTiledPanel * (* get_panel_item_panel_cb) (GPanelItem *, GtkWidget *); /* Elément réactif pour panneaux de l'éditeur (instance) */ struct _GPanelItem { GObject parent; /* A laisser en premier */ GtkWidget *launcher; /* Eventuel lanceur associé */ GtkWidget *properties; /* Propriétés de lancement */ GtkTiledPanel **panels; /* Instances complètes ouvertes*/ size_t pcount; /* Quantité de ces instances */ }; /* Elément réactif pour panneaux de l'éditeur (classe) */ struct _GPanelItemClass { GObjectClass parent; /* A laisser en premier */ get_panel_item_personality_cb get_personality; /* Fourniture de nature */ get_panel_item_widget_cb get_launcher; /* Lancement d'une activité */ get_panel_item_widget_cb get_properties;/* Préparation au lancement */ get_panel_item_panel_cb get_panel; /* Panneau principal */ }; #endif /* _GUI_PANEL_INT_H */