1XtSetSensitive(3) XT FUNCTIONS XtSetSensitive(3)
2
3
4
6 XtSetSensitive, XtIsSensitive - set and check a widget's sensitivity
7 state
8
10 void XtSetSensitive(Widget w, Boolean sensitive);
11
12 Boolean XtIsSensitive(Widget w);
13
15 sensitive Specifies a Boolean value that indicates whether the widget
16 should receive keyboard and pointer events.
17
18 w Specifies the widget.
19
21 The XtSetSensitive function first calls XtSetValues on the current wid‐
22 get with an argument list specifying that the sensitive field should
23 change to the new value. It then recursively propagates the new value
24 down the managed children tree by calling XtSetValues on each child to
25 set the ancestor_sensitive to the new value if the new values for sen‐
26 sitive and the child's ancestor_sensitive are not the same.
27
28 XtSetSensitive calls XtSetValues to change sensitive and ancestor_sen‐
29 sitive. Therefore, when one of these changes, the widget's set_values
30 procedure should take whatever display actions are needed (for example,
31 greying out or stippling the widget).
32
33 XtSetSensitive maintains the invariant that if parent has either sensi‐
34 tive or ancestor_sensitive False, then all children have ancestor_sen‐
35 sitive False.
36
37 The XtIsSensitive function returns True or False to indicate whether or
38 not user input events are being dispatched. If both core.sensitive and
39 core.ancestor_sensitive are True, XtIsSensitive returns True; other‐
40 wise, it returns False.
41
43 X Toolkit Intrinsics - C Language Interface
44 Xlib - C Language X Interface
45
46
47
48X Version 11 libXt 1.1.5 XtSetSensitive(3)