~codygarver/+junk/gnome-builder

« back to all changes in this revision

Viewing changes to src/util/gb-gtk.h

  • Committer: Cody Garver
  • Date: 2015-11-21 00:50:38 UTC
  • Revision ID: cody@elementary.io-20151121005038-8wygis63zt0ljqlz
Import https://github.com/chergert/gnome-builder 06e3158922a02a27f4abca250d70aa7b2970e06a

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* gb-gtk.h
 
2
 *
 
3
 * Copyright (C) 2014 Christian Hergert <christian@hergert.me>
 
4
 *
 
5
 * This file is free software; you can redistribute it and/or modify it
 
6
 * under the terms of the GNU Lesser General Public License as
 
7
 * published by the Free Software Foundation; either version 3 of the
 
8
 * License, or (at your option) any later version.
 
9
 *
 
10
 * This file is distributed in the hope that it will be useful, but
 
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef GB_GTK_H
 
20
#define GB_GTK_H
 
21
 
 
22
#include <gtk/gtk.h>
 
23
 
 
24
G_BEGIN_DECLS
 
25
 
 
26
gboolean gb_gtk_text_buffer_get_iter_at_line_and_offset (GtkTextBuffer *buffer,
 
27
                                                         GtkTextIter   *iter,
 
28
                                                         guint          line,
 
29
                                                         guint          line_offset);
 
30
 
 
31
void gb_gtk_text_view_scroll_to_iter (GtkTextView *text_view,
 
32
                                      GtkTextIter *iter,
 
33
                                      gdouble      within_margin,
 
34
                                      gboolean     use_align,
 
35
                                      gdouble      xalign,
 
36
                                      gdouble      yalign);
 
37
 
 
38
gboolean gb_gtk_text_view_get_iter_visible (GtkTextView *text_view,
 
39
                                            GtkTextIter *iter);
 
40
 
 
41
gunichar gb_gtk_text_iter_get_previous_char (const GtkTextIter *iter);
 
42
gunichar gb_gtk_text_iter_get_next_char     (const GtkTextIter *iter);
 
43
 
 
44
G_END_DECLS
 
45
 
 
46
#endif /* GB_GTK_H */