2012-07-11 13:51:43 +00:00
|
|
|
/* GTK - The GIMP Toolkit
|
|
|
|
* Copyright © 2012 Carlos Garnacho <carlosg@gnome.org>
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* 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 library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GTK_TEXT_HANDLE_PRIVATE_H__
|
|
|
|
#define __GTK_TEXT_HANDLE_PRIVATE_H__
|
|
|
|
|
|
|
|
#include <gtk/gtkwidget.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2020-02-03 14:59:49 +00:00
|
|
|
#define GTK_TYPE_TEXT_HANDLE (gtk_text_handle_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (GtkTextHandle, gtk_text_handle,
|
|
|
|
GTK, TEXT_HANDLE, GtkWidget)
|
2012-07-11 13:51:43 +00:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
2020-02-03 14:59:49 +00:00
|
|
|
GTK_TEXT_HANDLE_ROLE_CURSOR,
|
|
|
|
GTK_TEXT_HANDLE_ROLE_SELECTION_START,
|
|
|
|
GTK_TEXT_HANDLE_ROLE_SELECTION_END,
|
|
|
|
} GtkTextHandleRole;
|
2012-07-11 13:51:43 +00:00
|
|
|
|
2020-02-03 14:59:49 +00:00
|
|
|
GtkTextHandle * gtk_text_handle_new (GtkWidget *parent);
|
2012-07-11 13:51:43 +00:00
|
|
|
|
2020-12-04 09:53:16 +00:00
|
|
|
void gtk_text_handle_present (GtkTextHandle *handle);
|
|
|
|
|
2020-02-03 14:59:49 +00:00
|
|
|
void gtk_text_handle_set_role (GtkTextHandle *handle,
|
|
|
|
GtkTextHandleRole role);
|
|
|
|
GtkTextHandleRole gtk_text_handle_get_role (GtkTextHandle *handle);
|
2012-07-11 13:51:43 +00:00
|
|
|
|
2020-02-03 14:59:49 +00:00
|
|
|
void gtk_text_handle_set_position (GtkTextHandle *handle,
|
|
|
|
const GdkRectangle *rect);
|
2012-07-11 13:51:43 +00:00
|
|
|
|
2020-02-03 14:59:49 +00:00
|
|
|
gboolean gtk_text_handle_get_is_dragged (GtkTextHandle *handle);
|
2012-07-11 13:51:43 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_TEXT_HANDLE_PRIVATE_H__ */
|