aboutsummaryrefslogtreecommitdiff
path: root/generic/WidgetInfo.h
diff options
context:
space:
mode:
authorlecoanet2002-04-08 13:59:15 +0000
committerlecoanet2002-04-08 13:59:15 +0000
commit5629e1cc1e020b7e33789c98b79461a36a3fcf1f (patch)
tree0a6c7a3c1bbb931403bab2028ac4c1667f7a4a35 /generic/WidgetInfo.h
parentb022a3a0a25ccaa28e01c1b0e9bbffe1ffbe8132 (diff)
downloadtkzinc-5629e1cc1e020b7e33789c98b79461a36a3fcf1f.zip
tkzinc-5629e1cc1e020b7e33789c98b79461a36a3fcf1f.tar.gz
tkzinc-5629e1cc1e020b7e33789c98b79461a36a3fcf1f.tar.bz2
tkzinc-5629e1cc1e020b7e33789c98b79461a36a3fcf1f.tar.xz
Support du focus/selection sur les fields.
Diffstat (limited to 'generic/WidgetInfo.h')
-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