aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-rw-r--r--generic/WidgetInfo.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/generic/WidgetInfo.h b/generic/WidgetInfo.h
index 403942e..0fd2553 100644
--- a/generic/WidgetInfo.h
+++ b/generic/WidgetInfo.h
@@ -67,12 +67,14 @@ typedef struct _TextInfo {
Item sel_item; /* Pointer to selected item. ZN_NO_ITEM
* means that the widget doesn't own the
* selection. Writable by items. */
+ int sel_field;
int sel_first; /* Index of first selected character.
* Writable by items. */
int sel_last; /* Index of last selected character.
* Writable by items. */
Item anchor_item; /* Item corresponding to sel_anchor: not
* necessarily sel_item. Read-only to items. */
+ int anchor_field;
int sel_anchor; /* Fixed end of selection (i.e. "select to"
* operation will use this as one end of the
* selection). Writable by items. */
@@ -80,11 +82,6 @@ typedef struct _TextInfo {
* cursor. Read-only to items. */
int insert_width; /* Total width of insertion cursor. Read-only
* to items. */
- Item focus_item; /* Item that currently has the input focus,
- * or ZN_NO_ITEM if no such item. Read-only to
- * items. */
- ZnBool got_focus; /* True means that the widget has the input
- * focus. Read-only to items.*/
ZnBool cursor_on; /* True means that an insertion cursor should
* be displayed in focus_item. Read-only to
* items.*/
@@ -111,6 +108,12 @@ typedef struct _WidgetInfo {
int new_part;
Item hot_item;
Item hot_prev;
+ Item focus_item; /* Item that currently has the input focus,
+ * or ZN_NO_ITEM if no such item. Read-only to
+ * items. */
+ int focus_field;
+ ZnBool got_focus; /* True means that the widget has the input
+ * focus. Read-only to items.*/
XEvent pick_event; /* Event used to forge fake events and to do
* repicks. */
ZnBool update_pending; /* True means there is a pending graphic