summaryrefslogtreecommitdiff
path: root/src/glibext/gbuffersegment.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-04-11 16:39:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-04-11 16:39:38 (GMT)
commit30258fa96ad48eed68924f259ec5464fc4fd8094 (patch)
tree6187f2ddbee31de8bcd1b4b6e930a38f858f922c /src/glibext/gbuffersegment.h
parent929150f18d23d82e8390bd98e31b1edb34bc09f1 (diff)
Provided a faster than GTK display buffer.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@150 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/glibext/gbuffersegment.h')
-rw-r--r--src/glibext/gbuffersegment.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/glibext/gbuffersegment.h b/src/glibext/gbuffersegment.h
new file mode 100644
index 0000000..28338b9
--- /dev/null
+++ b/src/glibext/gbuffersegment.h
@@ -0,0 +1,65 @@
+
+/* OpenIDA - Outil d'analyse de fichiers binaires
+ * gbuffersegment.h - prototypes pour la concentration d'un fragment de caractères aux propriétés communes
+ *
+ * Copyright (C) 2010 Cyrille Bagard
+ *
+ * This file is part of OpenIDA.
+ *
+ * OpenIDA 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.
+ *
+ * OpenIDA 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 Foobar. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _GLIBEXT_GBUFFERSEGMENT_H
+#define _GLIBEXT_GBUFFERSEGMENT_H
+
+
+#include <glib-object.h>
+#include <gdk/gdk.h>
+#include <pango/pango.h>
+
+
+
+#define G_TYPE_BUFFER_SEGMENT (g_buffer_segment_get_type())
+#define G_BUFFER_SEGMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_BUFFER_SEGMENT, GBufferSegment))
+#define G_BUFFER_SEGMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_BUFFER_SEGMENT, GBufferSegmentClass))
+#define G_IS_BUFFER_SEGMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_BUFFER_SEGMENT))
+#define G_IS_BUFFER_SEGMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_BUFFER_SEGMENT))
+#define G_BUFFER_SEGMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_BUFFER_SEGMENT, GBufferSegmentClass))
+
+
+
+/* Fragment de caractères aux propriétés communes (instance) */
+typedef struct _GBufferSegment GBufferSegment;
+
+/* Fragment de caractères aux propriétés communes (classe) */
+typedef struct _GBufferSegmentClass GBufferSegmentClass;
+
+
+
+/* Détermine le type du fragment de caractères aux propriétés communes. */
+GType g_buffer_segment_get_type(void);
+
+/* Crée un nouveau fragment de texte avec des propriétés. */
+GBufferSegment *g_buffer_segment_new(PangoContext *, PangoAttrList *, const char *, size_t);
+
+/* Fournit la quantité de pixels requise pour l'impression. */
+gint g_buffer_segment_get_width(const GBufferSegment *);
+
+/* Imprime le fragment de texte représenté. */
+void g_buffer_segment_draw(GBufferSegment *, GdkDrawable *, GdkGC *, gint *, gint);
+
+
+
+#endif /* _GLIBEXT_GBUFFERSEGMENT_H */