/* Chrysalide - Outil d'analyse de fichiers binaires * bufferview.h - prototypes pour l'affichage d'une vue particulière d'un tampon de lignes * * Copyright (C) 2016-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 Chrysalide. If not, see . */ #ifndef _GLIBEXT_BUFFERVIEW_INT_H #define _GLIBEXT_BUFFERVIEW_INT_H #include "bufferview.h" /* Vue d'un tampon pour code désassemblé (instance) */ struct _GBufferView { GObject parent; /* A laisser en premier */ GBufferCache *cache; /* Tampon du contenu visualisé */ GWidthTracker *tracker; /* Collecteur de largeurs */ GTokenStyle *style; /* Style dédié aux rendus */ bool unrestricted; /* Validité des informations */ size_t first; /* Indice de la première ligne */ size_t last; /* Indice de la dernière ligne */ #if 0 segcnt_list *highlighted; /* Segments mis en évidence */ //bool unrestricted; /* Validité des informations */ GLineCursor *start; /* Première ligne intégrée */ GLineCursor *end; /* Dernière ligne intégrée */ //size_t first; /* Indice de la première ligne */ //size_t last; /* Indice de la dernière ligne */ GWidthTracker *tracker; /* Suivi des largeurs */ #endif }; /* Vue d'un tampon pour code désassemblé (classe) */ struct _GBufferViewClass { GObjectClass parent; /* A laisser en premier */ /* Signaux */ void (* need_redraw) (GBufferView *); }; /* Met en place une nouvelle vue pour un tampon de texte. */ bool g_buffer_view_create(GBufferView *, GBufferCache *, GTokenStyle *); #endif /* _GLIBEXT_BUFFERVIEW_INT_H */