1XtSetSensitive(3)                XT FUNCTIONS                XtSetSensitive(3)
2
3
4

NAME

6       XtSetSensitive, XtIsSensitive - set and check a widget's sensitivity
7       state
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       void XtSetSensitive(Widget w, Boolean sensitive);
13
14       Boolean XtIsSensitive(Widget w);
15

ARGUMENTS

17       sensitive Specifies a Boolean value that indicates whether the widget
18                 should receive keyboard and pointer events.
19
20       w         Specifies the widget.
21

DESCRIPTION

23       The XtSetSensitive function first calls XtSetValues on the current wid‐
24       get with an argument list specifying that the sensitive field should
25       change to the new value.  It then recursively propagates the new value
26       down the managed children tree by calling XtSetValues on each child to
27       set the ancestor_sensitive to the new value if the new values for sen‐
28       sitive and the child's ancestor_sensitive are not the same.
29
30       XtSetSensitive calls XtSetValues to change sensitive and ancestor_sen‐
31       sitive.  Therefore, when one of these changes, the widget's set_values
32       procedure should take whatever display actions are needed (for example,
33       greying out or stippling the widget).
34
35       XtSetSensitive maintains the invariant that if parent has either sensi‐
36       tive or ancestor_sensitive False, then all children have ancestor_sen‐
37       sitive False.
38
39       The XtIsSensitive function returns True or False to indicate whether or
40       not user input events are being dispatched.  If both core.sensitive and
41       core.ancestor_sensitive are True, XtIsSensitive returns True; other‐
42       wise, it returns False.
43

SEE ALSO

45       X Toolkit Intrinsics - C Language Interface
46       Xlib - C Language X Interface
47
48
49
50X Version 11                      libXt 1.2.0                XtSetSensitive(3)
Impressum