gtktextview.h 20.7 KB
Newer Older
Cody Russell's avatar
Cody Russell committed
1
/* GTK - The GIMP Toolkit
2
3
4
5
6
7
8
9
10
 * gtktextview.h Copyright (C) 2000 Red Hat, Inc.
 *
 * This library 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 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
13
14
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16
17
18
19
20
21
 */

/*
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
22
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23
24
 */

25
26
27
#ifndef __GTK_TEXT_VIEW_H__
#define __GTK_TEXT_VIEW_H__

28
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29
30
31
#error "Only <gtk/gtk.h> can be included directly."
#endif

32
#include <gtk/gtkwidget.h>
33
34
35
#include <gtk/gtkimcontext.h>
#include <gtk/gtktextbuffer.h>

36
G_BEGIN_DECLS
37

38
#define GTK_TYPE_TEXT_VIEW             (gtk_text_view_get_type ())
Manish Singh's avatar
Manish Singh committed
39
40
41
42
43
#define GTK_TEXT_VIEW(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_VIEW, GtkTextView))
#define GTK_TEXT_VIEW_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_VIEW, GtkTextViewClass))
#define GTK_IS_TEXT_VIEW(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_VIEW))
#define GTK_IS_TEXT_VIEW_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_VIEW))
#define GTK_TEXT_VIEW_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_VIEW, GtkTextViewClass))
44

45
46
47
48
49
50
51
52
53
/**
 * GtkTextWindowType:
 * @GTK_TEXT_WINDOW_WIDGET: Window that floats over scrolling areas.
 * @GTK_TEXT_WINDOW_TEXT: Scrollable text window.
 * @GTK_TEXT_WINDOW_LEFT: Left side border window.
 * @GTK_TEXT_WINDOW_RIGHT: Right side border window.
 * @GTK_TEXT_WINDOW_TOP: Top border window.
 * @GTK_TEXT_WINDOW_BOTTOM: Bottom border window.
 *
Matthias Clasen's avatar
Matthias Clasen committed
54
 * Used to reference the parts of `GtkTextView`.
55
 */
56
57
typedef enum
{
58
  GTK_TEXT_WINDOW_WIDGET = 1,
59
60
61
62
63
64
65
  GTK_TEXT_WINDOW_TEXT,
  GTK_TEXT_WINDOW_LEFT,
  GTK_TEXT_WINDOW_RIGHT,
  GTK_TEXT_WINDOW_TOP,
  GTK_TEXT_WINDOW_BOTTOM
} GtkTextWindowType;

66
67
/**
 * GtkTextViewLayer:
Matthias Clasen's avatar
Matthias Clasen committed
68
69
 * @GTK_TEXT_VIEW_LAYER_BELOW_TEXT: The layer rendered below the text (but above the background).
 * @GTK_TEXT_VIEW_LAYER_ABOVE_TEXT: The layer rendered above the text.
70
 *
Matthias Clasen's avatar
Matthias Clasen committed
71
 * Used to reference the layers of `GtkTextView` for the purpose of customized
72
 * drawing with the ::snapshot_layer vfunc.
73
74
75
 */
typedef enum
{
76
77
  GTK_TEXT_VIEW_LAYER_BELOW_TEXT,
  GTK_TEXT_VIEW_LAYER_ABOVE_TEXT
78
79
} GtkTextViewLayer;

80
81
82
83
84
85
86
87
/**
 * GtkTextExtendSelection:
 * @GTK_TEXT_EXTEND_SELECTION_WORD: Selects the current word. It is triggered by
 *   a double-click for example.
 * @GTK_TEXT_EXTEND_SELECTION_LINE: Selects the current line. It is triggered by
 *   a triple-click for example.
 *
 * Granularity types that extend the text selection. Use the
Matthias Clasen's avatar
Matthias Clasen committed
88
 * `GtkTextView::extend-selection` signal to customize the selection.
89
90
91
92
93
94
95
 */
typedef enum
{
  GTK_TEXT_EXTEND_SELECTION_WORD,
  GTK_TEXT_EXTEND_SELECTION_LINE
} GtkTextExtendSelection;

96
/**
97
 * GTK_TEXT_VIEW_PRIORITY_VALIDATE: (value 125)
98
99
100
101
 *
 * The priority at which the text view validates onscreen lines
 * in an idle job in the background.
 */
Havoc Pennington's avatar
Havoc Pennington committed
102
103
#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5)

104
105
106
typedef struct _GtkTextView        GtkTextView;
typedef struct _GtkTextViewPrivate GtkTextViewPrivate;
typedef struct _GtkTextViewClass   GtkTextViewClass;
107

108
109
struct _GtkTextView
{
110
  GtkWidget parent_instance;
111

112
113
  /*< private >*/

114
  GtkTextViewPrivate *priv;
115
116
};

117
118
119
/**
 * GtkTextViewClass:
 * @parent_class: The object class structure needs to be the first
Matthias Clasen's avatar
Matthias Clasen committed
120
 * @move_cursor: The class handler for the `GtkTextView::move-cursor`
121
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
122
 * @set_anchor: The class handler for the `GtkTextView::set-anchor`
123
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
124
 * @insert_at_cursor: The class handler for the `GtkTextView::insert-at-cursor`
125
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
126
 * @delete_from_cursor: The class handler for the `GtkTextView::delete-from-cursor`
127
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
128
 * @backspace: The class handler for the `GtkTextView::backspace`
129
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
130
 * @cut_clipboard: The class handler for the `GtkTextView::cut-clipboard`
131
 *   keybinding signal
Matthias Clasen's avatar
Matthias Clasen committed
132
 * @copy_clipboard: The class handler for the `GtkTextView::copy-clipboard`
133
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
134
 * @paste_clipboard: The class handler for the `GtkTextView::paste-clipboard`
135
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
136
 * @toggle_overwrite: The class handler for the `GtkTextView::toggle-overwrite`
137
 *   keybinding signal.
Matthias Clasen's avatar
Matthias Clasen committed
138
 * @create_buffer: The create_buffer vfunc is called to create a `GtkTextBuffer`
139
 *   for the text view. The default implementation is to just call
Matthias Clasen's avatar
Matthias Clasen committed
140
 *   gtk_text_buffer_new().
141
 * @snapshot_layer: The snapshot_layer vfunc is called before and after the text
142
143
 *   view is drawing its own text. Applications can override this vfunc
 *   in a subclass to draw customized content underneath or above the
144
 *   text. In the %GTK_TEXT_VIEW_LAYER_BELOW_TEXT and %GTK_TEXT_VIEW_LAYER_ABOVE_TEXT
145
 *   layers the drawing is done in the buffer coordinate space.
Matthias Clasen's avatar
Matthias Clasen committed
146
147
 * @extend_selection: The class handler for the `GtkTextView::extend-selection` signal.
 * @insert_emoji: The class handler for the `GtkTextView::insert-emoji` signal.
148
 */
149
150
struct _GtkTextViewClass
{
151
  GtkWidgetClass parent_class;
152

153
  /*< public >*/
154
155
156

  void (* move_cursor)           (GtkTextView      *text_view,
                                  GtkMovementStep   step,
Benjamin Otte's avatar
Benjamin Otte committed
157
                                  int               count,
158
159
160
                                  gboolean          extend_selection);
  void (* set_anchor)            (GtkTextView      *text_view);
  void (* insert_at_cursor)      (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
161
                                  const char       *str);
162
163
  void (* delete_from_cursor)    (GtkTextView      *text_view,
                                  GtkDeleteType     type,
Benjamin Otte's avatar
Benjamin Otte committed
164
                                  int               count);
165
166
167
168
169
170
  void (* backspace)             (GtkTextView      *text_view);
  void (* cut_clipboard)         (GtkTextView      *text_view);
  void (* copy_clipboard)        (GtkTextView      *text_view);
  void (* paste_clipboard)       (GtkTextView      *text_view);
  void (* toggle_overwrite)      (GtkTextView      *text_view);
  GtkTextBuffer * (* create_buffer) (GtkTextView   *text_view);
171
  void (* snapshot_layer)        (GtkTextView      *text_view,
172
			          GtkTextViewLayer  layer,
173
			          GtkSnapshot      *snapshot);
174
175
176
177
178
  gboolean (* extend_selection)  (GtkTextView            *text_view,
                                  GtkTextExtendSelection  granularity,
                                  const GtkTextIter      *location,
                                  GtkTextIter            *start,
                                  GtkTextIter            *end);
179
  void (* insert_emoji)          (GtkTextView      *text_view);
180

181
  /*< private >*/
182

183
  gpointer padding[8];
184
185
};

186
GDK_AVAILABLE_IN_ALL
Manish Singh's avatar
Manish Singh committed
187
GType          gtk_text_view_get_type              (void) G_GNUC_CONST;
188
GDK_AVAILABLE_IN_ALL
189
GtkWidget *    gtk_text_view_new                   (void);
190
GDK_AVAILABLE_IN_ALL
191
GtkWidget *    gtk_text_view_new_with_buffer       (GtkTextBuffer *buffer);
192
GDK_AVAILABLE_IN_ALL
193
void           gtk_text_view_set_buffer            (GtkTextView   *text_view,
194
                                                    GtkTextBuffer *buffer);
195
GDK_AVAILABLE_IN_ALL
196
GtkTextBuffer *gtk_text_view_get_buffer            (GtkTextView   *text_view);
197
GDK_AVAILABLE_IN_ALL
198
199
gboolean       gtk_text_view_scroll_to_iter        (GtkTextView   *text_view,
                                                    GtkTextIter   *iter,
200
                                                    double         within_margin,
201
                                                    gboolean       use_align,
202
203
                                                    double         xalign,
                                                    double         yalign);
204
GDK_AVAILABLE_IN_ALL
205
void           gtk_text_view_scroll_to_mark        (GtkTextView   *text_view,
206
                                                    GtkTextMark   *mark,
207
                                                    double         within_margin,
208
                                                    gboolean       use_align,
209
210
                                                    double         xalign,
                                                    double         yalign);
211
GDK_AVAILABLE_IN_ALL
212
void           gtk_text_view_scroll_mark_onscreen  (GtkTextView   *text_view,
213
                                                    GtkTextMark   *mark);
214
GDK_AVAILABLE_IN_ALL
215
gboolean       gtk_text_view_move_mark_onscreen    (GtkTextView   *text_view,
216
                                                    GtkTextMark   *mark);
217
GDK_AVAILABLE_IN_ALL
218
219
gboolean       gtk_text_view_place_cursor_onscreen (GtkTextView   *text_view);

220
GDK_AVAILABLE_IN_ALL
221
void           gtk_text_view_get_visible_rect      (GtkTextView   *text_view,
222
                                                    GdkRectangle  *visible_rect);
223
GDK_AVAILABLE_IN_ALL
224
225
void           gtk_text_view_set_cursor_visible    (GtkTextView   *text_view,
                                                    gboolean       setting);
226
GDK_AVAILABLE_IN_ALL
227
228
gboolean       gtk_text_view_get_cursor_visible    (GtkTextView   *text_view);

Matthias Clasen's avatar
Matthias Clasen committed
229
GDK_AVAILABLE_IN_ALL
230
231
void           gtk_text_view_reset_cursor_blink    (GtkTextView   *text_view);

232
GDK_AVAILABLE_IN_ALL
233
234
235
236
void           gtk_text_view_get_cursor_locations  (GtkTextView       *text_view,
                                                    const GtkTextIter *iter,
                                                    GdkRectangle      *strong,
                                                    GdkRectangle      *weak);
237
GDK_AVAILABLE_IN_ALL
238
239
240
void           gtk_text_view_get_iter_location     (GtkTextView   *text_view,
                                                    const GtkTextIter *iter,
                                                    GdkRectangle  *location);
241
GDK_AVAILABLE_IN_ALL
242
gboolean       gtk_text_view_get_iter_at_location  (GtkTextView   *text_view,
243
                                                    GtkTextIter   *iter,
Benjamin Otte's avatar
Benjamin Otte committed
244
245
                                                    int            x,
                                                    int            y);
246
GDK_AVAILABLE_IN_ALL
247
gboolean       gtk_text_view_get_iter_at_position  (GtkTextView   *text_view,
248
                                                    GtkTextIter   *iter,
Benjamin Otte's avatar
Benjamin Otte committed
249
250
251
						    int           *trailing,
                                                    int            x,
                                                    int            y);
252
GDK_AVAILABLE_IN_ALL
Havoc Pennington's avatar
Havoc Pennington committed
253
254
void           gtk_text_view_get_line_yrange       (GtkTextView       *text_view,
                                                    const GtkTextIter *iter,
Benjamin Otte's avatar
Benjamin Otte committed
255
256
                                                    int               *y,
                                                    int               *height);
257

258
GDK_AVAILABLE_IN_ALL
Havoc Pennington's avatar
Havoc Pennington committed
259
260
void           gtk_text_view_get_line_at_y         (GtkTextView       *text_view,
                                                    GtkTextIter       *target_iter,
Benjamin Otte's avatar
Benjamin Otte committed
261
262
                                                    int                y,
                                                    int               *line_top);
263

264
GDK_AVAILABLE_IN_ALL
265
266
void gtk_text_view_buffer_to_window_coords (GtkTextView       *text_view,
                                            GtkTextWindowType  win,
Benjamin Otte's avatar
Benjamin Otte committed
267
268
269
270
                                            int                buffer_x,
                                            int                buffer_y,
                                            int               *window_x,
                                            int               *window_y);
271
GDK_AVAILABLE_IN_ALL
272
273
void gtk_text_view_window_to_buffer_coords (GtkTextView       *text_view,
                                            GtkTextWindowType  win,
Benjamin Otte's avatar
Benjamin Otte committed
274
275
276
277
                                            int                window_x,
                                            int                window_y,
                                            int               *buffer_x,
                                            int               *buffer_y);
278

279
GDK_AVAILABLE_IN_ALL
280
281
gboolean gtk_text_view_forward_display_line           (GtkTextView       *text_view,
                                                       GtkTextIter       *iter);
282
GDK_AVAILABLE_IN_ALL
283
284
gboolean gtk_text_view_backward_display_line          (GtkTextView       *text_view,
                                                       GtkTextIter       *iter);
285
GDK_AVAILABLE_IN_ALL
286
287
gboolean gtk_text_view_forward_display_line_end       (GtkTextView       *text_view,
                                                       GtkTextIter       *iter);
288
GDK_AVAILABLE_IN_ALL
289
290
gboolean gtk_text_view_backward_display_line_start    (GtkTextView       *text_view,
                                                       GtkTextIter       *iter);
291
GDK_AVAILABLE_IN_ALL
292
293
gboolean gtk_text_view_starts_display_line            (GtkTextView       *text_view,
                                                       const GtkTextIter *iter);
294
GDK_AVAILABLE_IN_ALL
295
296
gboolean gtk_text_view_move_visually                  (GtkTextView       *text_view,
                                                       GtkTextIter       *iter,
Benjamin Otte's avatar
Benjamin Otte committed
297
                                                       int                count);
298

299
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
300
301
gboolean        gtk_text_view_im_context_filter_keypress (GtkTextView    *text_view,
                                                          GdkEvent       *event);
302
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
303
void            gtk_text_view_reset_im_context           (GtkTextView    *text_view);
304

305
/* Adding child widgets */
306
GDK_AVAILABLE_IN_ALL
307
308
309
310
311
312
313
314
315
316
GtkWidget *gtk_text_view_get_gutter          (GtkTextView          *text_view,
                                              GtkTextWindowType     win);
GDK_AVAILABLE_IN_ALL
void       gtk_text_view_set_gutter          (GtkTextView          *text_view,
                                              GtkTextWindowType     win,
                                              GtkWidget            *widget);
GDK_AVAILABLE_IN_ALL
void       gtk_text_view_add_child_at_anchor (GtkTextView          *text_view,
                                              GtkWidget            *child,
                                              GtkTextChildAnchor   *anchor);
317

318
GDK_AVAILABLE_IN_ALL
319
320
void       gtk_text_view_add_overlay         (GtkTextView          *text_view,
                                              GtkWidget            *child,
Benjamin Otte's avatar
Benjamin Otte committed
321
322
                                              int                   xpos,
                                              int                   ypos);
323

324
GDK_AVAILABLE_IN_ALL
325
326
void       gtk_text_view_move_overlay        (GtkTextView          *text_view,
                                              GtkWidget            *child,
Benjamin Otte's avatar
Benjamin Otte committed
327
328
                                              int                   xpos,
                                              int                   ypos);
329

330
331
332
333
GDK_AVAILABLE_IN_ALL
void       gtk_text_view_remove              (GtkTextView          *text_view,
                                              GtkWidget            *child);

334
335
/* Default style settings (fallbacks if no tag affects the property) */

336
GDK_AVAILABLE_IN_ALL
337
338
void             gtk_text_view_set_wrap_mode          (GtkTextView      *text_view,
                                                       GtkWrapMode       wrap_mode);
339
GDK_AVAILABLE_IN_ALL
340
GtkWrapMode      gtk_text_view_get_wrap_mode          (GtkTextView      *text_view);
341
GDK_AVAILABLE_IN_ALL
342
343
void             gtk_text_view_set_editable           (GtkTextView      *text_view,
                                                       gboolean          setting);
344
GDK_AVAILABLE_IN_ALL
345
gboolean         gtk_text_view_get_editable           (GtkTextView      *text_view);
346
GDK_AVAILABLE_IN_ALL
347
348
void             gtk_text_view_set_overwrite          (GtkTextView      *text_view,
						       gboolean          overwrite);
349
GDK_AVAILABLE_IN_ALL
350
gboolean         gtk_text_view_get_overwrite          (GtkTextView      *text_view);
351
GDK_AVAILABLE_IN_ALL
352
353
void		 gtk_text_view_set_accepts_tab        (GtkTextView	*text_view,
						       gboolean		 accepts_tab);
354
GDK_AVAILABLE_IN_ALL
355
gboolean	 gtk_text_view_get_accepts_tab        (GtkTextView	*text_view);
356
GDK_AVAILABLE_IN_ALL
357
void             gtk_text_view_set_pixels_above_lines (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
358
                                                       int               pixels_above_lines);
359
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
360
int              gtk_text_view_get_pixels_above_lines (GtkTextView      *text_view);
361
GDK_AVAILABLE_IN_ALL
362
void             gtk_text_view_set_pixels_below_lines (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
363
                                                       int               pixels_below_lines);
364
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
365
int              gtk_text_view_get_pixels_below_lines (GtkTextView      *text_view);
366
GDK_AVAILABLE_IN_ALL
367
void             gtk_text_view_set_pixels_inside_wrap (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
368
                                                       int               pixels_inside_wrap);
369
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
370
int              gtk_text_view_get_pixels_inside_wrap (GtkTextView      *text_view);
371
GDK_AVAILABLE_IN_ALL
372
373
void             gtk_text_view_set_justification      (GtkTextView      *text_view,
                                                       GtkJustification  justification);
374
GDK_AVAILABLE_IN_ALL
375
GtkJustification gtk_text_view_get_justification      (GtkTextView      *text_view);
376
GDK_AVAILABLE_IN_ALL
377
void             gtk_text_view_set_left_margin        (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
378
                                                       int               left_margin);
379
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
380
int              gtk_text_view_get_left_margin        (GtkTextView      *text_view);
381
GDK_AVAILABLE_IN_ALL
382
void             gtk_text_view_set_right_margin       (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
383
                                                       int               right_margin);
384
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
385
int              gtk_text_view_get_right_margin       (GtkTextView      *text_view);
Matthias Clasen's avatar
Matthias Clasen committed
386
GDK_AVAILABLE_IN_ALL
387
void             gtk_text_view_set_top_margin         (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
388
                                                       int               top_margin);
Matthias Clasen's avatar
Matthias Clasen committed
389
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
390
int              gtk_text_view_get_top_margin         (GtkTextView      *text_view);
Matthias Clasen's avatar
Matthias Clasen committed
391
GDK_AVAILABLE_IN_ALL
392
void             gtk_text_view_set_bottom_margin      (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
393
                                                       int               bottom_margin);
Matthias Clasen's avatar
Matthias Clasen committed
394
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
395
int              gtk_text_view_get_bottom_margin       (GtkTextView      *text_view);
396
GDK_AVAILABLE_IN_ALL
397
void             gtk_text_view_set_indent             (GtkTextView      *text_view,
Benjamin Otte's avatar
Benjamin Otte committed
398
                                                       int               indent);
399
GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
400
int              gtk_text_view_get_indent             (GtkTextView      *text_view);
401
GDK_AVAILABLE_IN_ALL
402
403
void             gtk_text_view_set_tabs               (GtkTextView      *text_view,
                                                       PangoTabArray    *tabs);
404
GDK_AVAILABLE_IN_ALL
405
406
PangoTabArray*   gtk_text_view_get_tabs               (GtkTextView      *text_view);

Matthias Clasen's avatar
Matthias Clasen committed
407
GDK_AVAILABLE_IN_ALL
408
409
void             gtk_text_view_set_input_purpose      (GtkTextView      *text_view,
                                                       GtkInputPurpose   purpose);
Matthias Clasen's avatar
Matthias Clasen committed
410
GDK_AVAILABLE_IN_ALL
411
412
GtkInputPurpose  gtk_text_view_get_input_purpose      (GtkTextView      *text_view);

Matthias Clasen's avatar
Matthias Clasen committed
413
GDK_AVAILABLE_IN_ALL
414
415
void             gtk_text_view_set_input_hints        (GtkTextView      *text_view,
                                                       GtkInputHints     hints);
Matthias Clasen's avatar
Matthias Clasen committed
416
GDK_AVAILABLE_IN_ALL
417
418
GtkInputHints    gtk_text_view_get_input_hints        (GtkTextView      *text_view);

Matthias Clasen's avatar
Matthias Clasen committed
419
GDK_AVAILABLE_IN_ALL
420
421
void             gtk_text_view_set_monospace          (GtkTextView      *text_view,
                                                       gboolean          monospace);
Matthias Clasen's avatar
Matthias Clasen committed
422
GDK_AVAILABLE_IN_ALL
423
gboolean         gtk_text_view_get_monospace          (GtkTextView      *text_view);
424

Matthias Clasen's avatar
Matthias Clasen committed
425
426
427
428
429
GDK_AVAILABLE_IN_ALL
void             gtk_text_view_set_extra_menu         (GtkTextView      *text_view,
                                                       GMenuModel       *model);
GDK_AVAILABLE_IN_ALL
GMenuModel *     gtk_text_view_get_extra_menu         (GtkTextView      *text_view);
430
431
432
433
GDK_AVAILABLE_IN_ALL
PangoContext    *gtk_text_view_get_rtl_context        (GtkTextView      *text_view);
GDK_AVAILABLE_IN_ALL
PangoContext    *gtk_text_view_get_ltr_context        (GtkTextView      *text_view);
Matthias Clasen's avatar
Matthias Clasen committed
434

435
G_END_DECLS
436

437
#endif /* __GTK_TEXT_VIEW_H__ */