1/* GTK - The GIMP Toolkit
2 * Copyright © 2012 Carlos Garnacho <carlosg@gnome.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __GTK_TEXT_HANDLE_PRIVATE_H__
19#define __GTK_TEXT_HANDLE_PRIVATE_H__
20
21#include <gtk/gtkwidget.h>
22
23G_BEGIN_DECLS
24
25#define GTK_TYPE_TEXT_HANDLE (gtk_text_handle_get_type ())
26G_DECLARE_FINAL_TYPE (GtkTextHandle, gtk_text_handle,
27 GTK, TEXT_HANDLE, GtkWidget)
28
29typedef enum
30{
31 GTK_TEXT_HANDLE_ROLE_CURSOR,
32 GTK_TEXT_HANDLE_ROLE_SELECTION_START,
33 GTK_TEXT_HANDLE_ROLE_SELECTION_END,
34} GtkTextHandleRole;
35
36GtkTextHandle * gtk_text_handle_new (GtkWidget *parent);
37
38void gtk_text_handle_present (GtkTextHandle *handle);
39
40void gtk_text_handle_set_role (GtkTextHandle *handle,
41 GtkTextHandleRole role);
42GtkTextHandleRole gtk_text_handle_get_role (GtkTextHandle *handle);
43
44void gtk_text_handle_set_position (GtkTextHandle *handle,
45 const GdkRectangle *rect);
46
47gboolean gtk_text_handle_get_is_dragged (GtkTextHandle *handle);
48
49G_END_DECLS
50
51#endif /* __GTK_TEXT_HANDLE_PRIVATE_H__ */
52

source code of gtk/gtk/gtktexthandleprivate.h