1 /* 2 * overviewscintilla.h - This file is part of the Geany Overview plugin 3 * 4 * Copyright (c) 2015 Matthew Brush <mbrush@codebrainz.ca> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 19 * MA 02110-1301, USA. 20 * 21 */ 22 23 #ifndef OVERVIEWSCINTILLA_H_ 24 #define OVERVIEWSCINTILLA_H_ 1 25 26 #include "overviewplugin.h" 27 #include "overviewcolor.h" 28 29 G_BEGIN_DECLS 30 31 #define OVERVIEW_TYPE_SCINTILLA (overview_scintilla_get_type ()) 32 #define OVERVIEW_SCINTILLA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), OVERVIEW_TYPE_SCINTILLA, OverviewScintilla)) 33 #define OVERVIEW_SCINTILLA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), OVERVIEW_TYPE_SCINTILLA, OverviewScintillaClass)) 34 #define OVERVIEW_IS_SCINTILLA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OVERVIEW_TYPE_SCINTILLA)) 35 #define OVERVIEW_IS_SCINTILLA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), OVERVIEW_TYPE_SCINTILLA)) 36 #define OVERVIEW_SCINTILLA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), OVERVIEW_TYPE_SCINTILLA, OverviewScintillaClass)) 37 38 typedef struct OverviewScintilla_ OverviewScintilla; 39 typedef struct OverviewScintillaClass_ OverviewScintillaClass; 40 41 GType overview_scintilla_get_type (void); 42 GtkWidget *overview_scintilla_new (ScintillaObject *src_sci); 43 void overview_scintilla_sync (OverviewScintilla *sci); 44 GdkCursorType overview_scintilla_get_cursor (OverviewScintilla *sci); 45 void overview_scintilla_set_cursor (OverviewScintilla *sci, 46 GdkCursorType cursor_type); 47 void overview_scintilla_get_visible_rect (OverviewScintilla *sci, 48 GdkRectangle *rect); 49 void overview_scintilla_set_visible_rect (OverviewScintilla *sci, 50 const GdkRectangle *rect); 51 guint overview_scintilla_get_width (OverviewScintilla *sci); 52 void overview_scintilla_set_width (OverviewScintilla *sci, 53 guint width); 54 gint overview_scintilla_get_zoom (OverviewScintilla *sci); 55 void overview_scintilla_set_zoom (OverviewScintilla *sci, 56 gint zoom); 57 gboolean overview_scintilla_get_show_tooltip (OverviewScintilla *sci); 58 void overview_scintilla_set_show_tooltip (OverviewScintilla *sci, 59 gboolean show); 60 gboolean overview_scintilla_get_overlay_enabled (OverviewScintilla *sci); 61 void overview_scintilla_set_overlay_enabled (OverviewScintilla *sci, 62 gboolean enabled); 63 void overview_scintilla_get_overlay_color (OverviewScintilla *sci, 64 OverviewColor *color); 65 void overview_scintilla_set_overlay_color (OverviewScintilla *sci, 66 const OverviewColor *color); 67 void overview_scintilla_get_overlay_outline_color (OverviewScintilla *sci, 68 OverviewColor *color); 69 void overview_scintilla_set_overlay_outline_color (OverviewScintilla *sci, 70 const OverviewColor *color); 71 gboolean overview_scintilla_get_overlay_inverted (OverviewScintilla *sci); 72 void overview_scintilla_set_overlay_inverted (OverviewScintilla *sci, 73 gboolean inverted); 74 gboolean overview_scintilla_get_double_buffered (OverviewScintilla *sci); 75 void overview_scintilla_set_double_buffered (OverviewScintilla *sci, 76 gboolean enabled); 77 gint overview_scintilla_get_scroll_lines (OverviewScintilla *sci); 78 void overview_scintilla_set_scroll_lines (OverviewScintilla *sci, 79 gint lines); 80 gboolean overview_scintilla_get_show_scrollbar (OverviewScintilla *sci); 81 void overview_scintilla_set_show_scrollbar (OverviewScintilla *sci, 82 gboolean show); 83 84 G_END_DECLS 85 86 #endif /* OVERVIEWSCINTILLA_H_ */ 87