XtSetValues
NAMESYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO
NAME
XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSetSubvalues, XtGetValues, XtVaGetValues, XtGetSubvalues, XtVaGetSubvalues − obtain and set widget resources
SYNTAX
void XtSetValues(Widget w, ArgList args, Cardinal num_args); | |
void XtVaSetValues(Widget w, ...); | |
void XtSetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, ArgList args, Cardinal num_args); | |
void XtVaSetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, ...); | |
void XtGetValues(Widget w, ArgList args, Cardinal num_args); | |
void XtVaGetValues(Widget w, ...); | |
void XtGetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, ArgList args, Cardinal num_args); | |
void XtVaGetSubvalues(XtPointer base, XtResourceList resources, Cardinal num_resources, ...); |
ARGUMENTS
args |
Specifies the argument list of name/address pairs that contain the resource name and either the address into which the resource value is to be stored or their new values. | ||
base |
Specifies the base address of the subpart data structure where the resources should be retrieved or written. | ||
num_args |
Specifies the number of arguments in the argument list. | ||
resources |
Specifies the nonwidget resource list or values. |
num_resources
Specifies the number of resources in the resource list.
w |
Specifies the widget. | ||
... |
Specifies the variable argument list of name/address pairs that contain the resource name and either the address into which the resource value is to be stored or their new values. |
DESCRIPTION
The XtSetValues function starts with the resources specified for the Core widget fields and proceeds down the subclass chain to the widget. At each stage, it writes the new value (if specified by one of the arguments) or the existing value (if no new value is specified) to a new widget data record. XtSetValues then calls the set_values procedures for the widget in superclass-to-subclass order. If the widget has any non-NULL set_values_hook fields, these are called immediately after the corresponding set_values procedure. This procedure permits subclasses to set nonwidget data for XtSetValues.
If the widget’s parent is a subclass of constraintWidgetClass, XtSetValues also updates the widget’s constraints. It starts with the constraint resources specified for constraintWidgetClass and proceeds down the subclass chain to the parent’s class. At each stage, it writes the new value or the existing value to a new constraint record. It then calls the constraint set_values procedures from constraintWidgetClass down to the parent’s class. The constraint set_values procedures are called with widget arguments, as for all set_values procedures, not just the constraint record arguments, so that they can make adjustments to the desired values based on full information about the widget.
XtSetValues determines if a geometry request is needed by comparing the current widget to the new widget. If any geometry changes are required, it makes the request, and the geometry manager returns XtGeometryYes, XtGeometryAlmost, or XtGeometryNo. If XtGeometryYes, XtSetValues calls the widget’s resize procedure. If XtGeometryNo, XtSetValues resets the geometry fields to their original values. If XtGeometryAlmost, XtSetValues calls the set_values_almost procedure, which determines what should be done and writes new values for the geometry fields into the new widget. XtSetValues then repeats this process, deciding once more whether the geometry manager should be called.
Finally, if any of the set_values procedures returned True, XtSetValues causes the widget’s expose procedure to be invoked by calling the Xlib XClearArea function on the widget’s window.
The XtSetSubvalues function stores resources into the structure identified by base.
The XtGetValues function starts with the resources specified for the core widget fields and proceeds down the subclass chain to the widget. The value field of a passed argument list should contain the address into which to store the corresponding resource value. It is the caller’s responsibility to allocate and deallocate this storage according to the size of the resource representation type used within the widget.
If the widget’s parent is a subclass of constraintWidgetClass, XtGetValues then fetches the values for any constraint resources requested. It starts with the constraint resources specified for constraintWidgetClass and proceeds down to the subclass chain to the parent’s constraint resources. If the argument list contains a resource name that is not found in any of the resource lists searched, the value at the corresponding address is not modified. Finally, if the get_values_hook procedures are non-NULL, they are called in superclass-to-subclass order after all the resource values have been fetched by XtGetValues. This permits a subclass to provide nonwidget resource data to XtGetValues.
The XtGetSubvalues function obtains resource values from the structure identified by base.
SEE ALSO
X Toolkit
Intrinsics − C Language Interface
Xlib − C Language X Interface
More Linux Commands
manpages/hunzip.1.html
hunzip(1) - decompress and decrypt hzip files to the standar
Hunzip is the decompression and decryption program of hzip format. OPTIONS -h Display short help description. EXAMPLE hunzip file.hz >file NOTES Redirection of
manpages/ppmfade.1.html
ppmfade(1) - generate a transition between two image files u
This program is part of Netpbm(1) ppmfadegenerates a transition between either two input images or between one input image and black. You can use the 30 interme
manpages/glReadPixels.3gl.html
glReadPixels(3gl) - read a block of pixels from the frame bu
glReadPixels returns pixel data from the frame buffer, starting with the pixel whose lower left corner is at location (x, y), into client memory starting at loc
manpages/j1f.3.html
j1f(3) - Bessel functions of the first kind - Linux man page
The j0() and j1() functions return Bessel functions of x of the first kind of orders 0 and 1, respectively. The jn() function returns the Bessel function of x o
manpages/XtTranslateCoords.3.html
XtTranslateCoords(3) - translate widget coordinates.........
While XtTranslateCoords is similar to the Xlib XTranslateCoordinates function, it does not generate a server request because all the required information alread
manpages/automake.1.html
automake(1) - manual page for automake 1.11.1 (Man Page)....
Generate Makefile.in for configure from Makefile.am. Operation modes: --help print this help, then exit --version print version number, then exit -v, --verbose
manpages/tigetnum_sp.3ncurses.html
tigetnum_sp(3ncurses) - curses screen-pointer extension.....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th
manpages/groff_hdtbl.7.html
groff_hdtbl(7) - groff `hdtbl' macros for generation of tabl
The hdtbl macros consist of four base and three optional macros, controlled by about twenty arguments. The syntax is simple and similar to the HTML table model
manpages/y1.3.html
y1(3) - Bessel functions of the second kind - Linux man page
The y0() and y1() functions return Bessel functions of x of the second kind of orders 0 and 1, respectively. The yn() function returns the Bessel function of x
manpages/TAP::Parser::Result::Pragma.3pm.html
TAP::Parser::Result::Pragma(3pm) - TAP pragma token.........
This is a subclass of TAP::Parser::Result. A token of this class will be returned if a pragma is encountered. TAP version 13 pragma +strict, -foo Pragmas are on
manpages/winnwstr.3ncurses.html
winnwstr(3ncurses) - get a string of wchar_t characters from
These routines return a string of wchar_t characters in wstr, extracted starting at the current cursor position in the named window. Attributes are stripped fro
manpages/pnmtotiff.1.html
pnmtotiff(1) - replaced by pamtotiff - Linux manual page....
This program is part of Netpbm(1) In Netpbm 10.30 (October 2005), pnmtotiff was extended and renamed to pamtotiff(1) pamtotiff is backward compatible with pnmto
