Index of Section 3 Manual Pages
| Interix / SUA | Xaw.3 | Interix / SUA |
Xaw(3) Xaw(3)
NAME
Xaw - X Athena Widgets
DESCRIPTION
Xaw is a widget set based on the X Toolkit Intrinsics (Xt)
Library. This release by the X.org Foundation includes
additions and modifications originally made for The
XFree86 Project, Inc. This manual page describes these
changes as well as some of the common interfaces between
its version and the previous X Consortium release (Xaw6).
ACTIONS
All of the Xaw widgets now have the additional transla-
tions call-proc, declare, get-values and set-values. The
syntax for these actions is:
action-name (boolean-expression, arguments)
Action-name is one of call-proc, declare, get-values or
set-values.
Boolean-expression is composed with the operators | (or),
& (and), ^ (xor), and ~ (not). The operands can be a vari-
able name, which starts with a $; a resource name without
the bindings . or *; or a constant name, including mine
(event->xany.window == XtWindow(widget)), faked
(event->xany.send_event != 0), true (1) and false (0).
Arguments are self-explanatory; when starting with a $
they name a variable, otherwise, they indicate a resource
name.
call-proc (boolean-expression, procedure-name)
This action allows the evaluation of a boolean
expression in the first parameter before calling a
action procedure. The procedure is only called if
the expression evaluates as true. Example:
call-proc("$inside & $pressed", notify)
declare (boolean-expression, variable, value, ...)
This action is used to create new variables or
change their values. Any number of variable-value
tuples may be specified. Example:
declare(1, $pressed, 1)
get-values (boolean-expression, variable, value, ...)
This action reads a widget resource value into a
variable. Any number of variable-value tuples may
be specified. Example:
get-values(1, $fg, foreground, $bg, background)
set-values (boolean-expression, variable, value, ...)
This action sets a widget resource to the given
value, which may be a variable. Any number of
variable-value tuples may be specified. Example:
set-values(1, foreground, $bg, background, $fg)
Here is a sample translation to make a label widget behave
like a button: