/usr/include/gtkmathview/gtk/gtkmathview_common.h is in libgtkmathview-dev 0.8.0-13.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | /* Copyright (C) 2000-2007, Luca Padovani <padovani@sti.uniurb.it>.
*
* This file is part of GtkMathView, a flexible, high-quality rendering
* engine for MathML documents.
*
* GtkMathView is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GtkMathView 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __gtkmathview_common_h__
#define __gtkmathview_common_h__
#include <gtk/gtkwidget.h>
/* Include these outside the extern "c" bit */
#if GTKMATHVIEW_USES_CUSTOM_READER
#include "c_customXmlReader.h"
#elif GTKMATHVIEW_USES_LIBXML2_READER
#include <libxml/xmlreader.h>
#elif GTKMATHVIEW_USES_LIBXML2
#include <libxml/tree.h>
#elif GTKMATHVIEW_USES_GMETADOM
#include <gdome.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define GTK_TYPE_MATH_VIEW (gtk_math_view_get_type())
#define GTK_MATH_VIEW(obj) GTK_CHECK_CAST(obj, GTK_TYPE_MATH_VIEW, GtkMathView)
#define GTK_MATH_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST(klass, GTK_TYPE_MATH_VIEW, GtkMathViewClass)
#define GTK_IS_MATH_VIEW(obj) GTK_CHECK_TYPE(obj, GTK_TYPE_MATH_VIEW)
typedef GdkPoint GtkMathViewPoint;
typedef struct _GtkMathViewBoundingBox {
gint width;
gint height;
gint depth;
} GtkMathViewBoundingBox;
typedef struct _GtkMathView GtkMathView;
typedef struct _GtkMathViewClass GtkMathViewClass;
typedef struct _c_customXmlReader GtkMathViewReader;
typedef void* GtkMathViewReaderData;
#if GTKMATHVIEW_USES_CUSTOM_READER
#define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##custom_reader
typedef void* GtkMathViewModelId;
typedef const char* GtkMathViewModelString;
#elif GTKMATHVIEW_USES_LIBXML2_READER
#define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##libxml2_reader
typedef void* GtkMathViewModelId;
typedef const xmlChar* GtkMathViewModelString;
#elif GTKMATHVIEW_USES_LIBXML2
#define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##libxml2
typedef xmlElement* GtkMathViewModelId;
typedef xmlDoc* GtkMathViewModelDocument;
typedef const xmlChar* GtkMathViewModelString;
#elif GTKMATHVIEW_USES_GMETADOM
#define GTKMATHVIEW_METHOD_NAME(name) gtk_math_view_##name##__##gmetadom
typedef GdomeElement* GtkMathViewModelId;
typedef GdomeDocument* GtkMathViewModelDocument;
typedef GdomeDOMString* GtkMathViewModelString;
#endif
typedef struct _GtkMathViewModelEvent {
GtkMathViewModelId id;
gint x;
gint y;
gint state;
} GtkMathViewModelEvent;
typedef void (*GtkMathViewModelSignal)(GtkMathView*, const GtkMathViewModelEvent*);
typedef void (*GtkMathViewSelectAbortSignal)(GtkMathView*);
typedef void (*GtkMathViewDecorateSignal)(GtkMathView*, GdkDrawable*, gpointer);
GtkType GTKMATHVIEW_METHOD_NAME(get_type)(void);
GtkWidget* GTKMATHVIEW_METHOD_NAME(new)(GtkAdjustment*, GtkAdjustment*);
gboolean GTKMATHVIEW_METHOD_NAME(freeze)(GtkMathView*);
gboolean GTKMATHVIEW_METHOD_NAME(thaw)(GtkMathView*);
void GTKMATHVIEW_METHOD_NAME(update)(GtkMathView*, GdkRectangle*);
#if GTKMATHVIEW_USES_CUSTOM_READER
gboolean GTKMATHVIEW_METHOD_NAME(load_reader)(GtkMathView*, GtkMathViewReader*, GtkMathViewReaderData);
#elif GTKMATHVIEW_USES_LIBXML2_READER
gboolean GTKMATHVIEW_METHOD_NAME(load_reader)(GtkMathView*, xmlTextReaderPtr);
#else
gboolean GTKMATHVIEW_METHOD_NAME(load_uri)(GtkMathView*, const gchar*);
gboolean GTKMATHVIEW_METHOD_NAME(load_buffer)(GtkMathView*, const gchar*);
gboolean GTKMATHVIEW_METHOD_NAME(load_document)(GtkMathView*, GtkMathViewModelDocument);
gboolean GTKMATHVIEW_METHOD_NAME(load_root)(GtkMathView*, GtkMathViewModelId);
GtkMathViewModelDocument GTKMATHVIEW_METHOD_NAME(get_document)(GtkMathView*);
#endif
void GTKMATHVIEW_METHOD_NAME(unload)(GtkMathView*);
gboolean GTKMATHVIEW_METHOD_NAME(structure_changed)(GtkMathView*, GtkMathViewModelId);
gboolean GTKMATHVIEW_METHOD_NAME(attribute_changed)(GtkMathView*, GtkMathViewModelId, GtkMathViewModelString);
gboolean GTKMATHVIEW_METHOD_NAME(select)(GtkMathView*, GtkMathViewModelId);
gboolean GTKMATHVIEW_METHOD_NAME(unselect)(GtkMathView*, GtkMathViewModelId);
gboolean GTKMATHVIEW_METHOD_NAME(is_selected)(GtkMathView*, GtkMathViewModelId);
gboolean GTKMATHVIEW_METHOD_NAME(get_bounding_box)(GtkMathView*, GtkMathViewBoundingBox*);
gboolean GTKMATHVIEW_METHOD_NAME(get_element_at)(GtkMathView*, gint, gint, GtkMathViewModelId*,
GtkMathViewPoint*, GtkMathViewBoundingBox*);
gboolean GTKMATHVIEW_METHOD_NAME(get_element_extents)(GtkMathView*, GtkMathViewModelId,
GtkMathViewPoint*, GtkMathViewBoundingBox*);
gboolean GTKMATHVIEW_METHOD_NAME(get_element_extents_ref)(GtkMathView*, GtkMathViewModelId,
GtkMathViewModelId,
GtkMathViewPoint*, GtkMathViewBoundingBox*);
gboolean GTKMATHVIEW_METHOD_NAME(get_char_at)(GtkMathView*, gint, gint, GtkMathViewModelId*, gint*,
GtkMathViewPoint*, GtkMathViewBoundingBox*);
gboolean GTKMATHVIEW_METHOD_NAME(get_char_extents)(GtkMathView*, GtkMathViewModelId, gint,
GtkMathViewPoint*, GtkMathViewBoundingBox*);
gboolean GTKMATHVIEW_METHOD_NAME(get_char_extents_ref)(GtkMathView*,
GtkMathViewModelId, GtkMathViewModelId, gint,
GtkMathViewPoint*, GtkMathViewBoundingBox*);
void GTKMATHVIEW_METHOD_NAME(get_size)(GtkMathView*, gint*, gint*);
void GTKMATHVIEW_METHOD_NAME(get_top)(GtkMathView*, gint*, gint*);
void GTKMATHVIEW_METHOD_NAME(set_top)(GtkMathView*, gint, gint);
void GTKMATHVIEW_METHOD_NAME(set_adjustments)(GtkMathView*, GtkAdjustment*, GtkAdjustment*);
void GTKMATHVIEW_METHOD_NAME(get_adjustments)(GtkMathView*, GtkAdjustment**, GtkAdjustment**);
GdkPixmap* GTKMATHVIEW_METHOD_NAME(get_buffer)(GtkMathView*);
void GTKMATHVIEW_METHOD_NAME(set_font_size)(GtkMathView*, guint);
guint GTKMATHVIEW_METHOD_NAME(get_font_size)(GtkMathView*);
void GTKMATHVIEW_METHOD_NAME(set_log_verbosity)(GtkMathView*, gint);
gint GTKMATHVIEW_METHOD_NAME(get_log_verbosity)(GtkMathView*);
gboolean GTKMATHVIEW_METHOD_NAME(get_t1_opaque_mode)(GtkMathView*);
void GTKMATHVIEW_METHOD_NAME(set_t1_opaque_mode)(GtkMathView*, gboolean);
gboolean GTKMATHVIEW_METHOD_NAME(get_t1_anti_aliased_mode)(GtkMathView*);
void GTKMATHVIEW_METHOD_NAME(set_t1_anti_aliased_mode)(GtkMathView*, gboolean);
void GTKMATHVIEW_METHOD_NAME(add_configuration_path)(const gchar*);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __gtkmathview_common_h__ */
|