diff options
author | Carlos Garnacho <carlos@lanedo.com> | 2012-07-11 15:51:43 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-09-03 00:19:03 -0400 |
commit | 1f7e375c33c77209181f6b3d3720c1f72c652153 (patch) | |
tree | 212b74934fa4f2f41c2163b57e7a25d35c5430a6 /gtk/gtkstylecontext.h | |
parent | 8c632417c48982ddd4054c4c054fcd39964f3fac (diff) | |
download | gtk+-1f7e375c33c77209181f6b3d3720c1f72c652153.tar.gz |
Add GtkTextHandle
This is a helper object to allow text widgets to implement
text selection on touch devices. It allows for both cursor
placement and text selection, displaying draggable handles
on/around the cursor and selection bound positions.
Currently, this is private to GTK+, and only available to
GtkEntry and GtkTextView.
Diffstat (limited to 'gtk/gtkstylecontext.h')
-rw-r--r-- | gtk/gtkstylecontext.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h index 456b5a1026..05a49b4f4c 100644 --- a/gtk/gtkstylecontext.h +++ b/gtk/gtkstylecontext.h @@ -701,6 +701,22 @@ struct _GtkStyleContextClass */ #define GTK_STYLE_CLASS_LEVEL_BAR "level-bar" +/** + * GTK_STYLE_CLASS_CURSOR_HANDLE: + * + * A CSS class used when rendering a drag handle for + * text selection. + */ +#define GTK_STYLE_CLASS_CURSOR_HANDLE "cursor-handle" + +/** + * GTK_STYLE_CLASS_INVERTED_CURSOR_HANDLE: + * + * A CSS class used when rendering a drag handle for + * text selection. + */ +#define GTK_STYLE_CLASS_INVERTED_CURSOR_HANDLE "inverted-cursor-handle" + /* Predefined set of widget regions */ /** |