*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: XtSetSubvalues | Section: 3 | Source: Digital UNIX | File: XtSetSubvalues.3Xt.gz
XtSetValues(3Xt) XtSetValues(3Xt) NAME XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSetSubvalues, XtGetVal- ues, XtVaGetValues, XtGetSubvalues, XtVaGetSubvalues - obtain and set widget resources SYNOPSIS void XtSetValues(w, args, num_args) Widget w; ArgList args; Cardinal num_args; void XtVaSetValues(w, ...) Widget w; void XtSetSubvalues(base, resources, num_resources, args, num_args) XtPointer base; XtResourceList resources; Cardinal num_resources; ArgList args; Cardinal num_args; void XtVaSetSubvalues(base, resources, num_resources, ...) XtPointer base; XtResourceList resources; Cardinal num_resources; void XtGetValues(w, args, num_args) Widget w; ArgList args; Cardinal num_args; void XtVaGetValues(w, ...) Widget w; void XtGetSubvalues(base, resources, num_resources, args, num_args) XtPointer base; XtResourceList resources; Cardinal num_resources; ArgList args; Cardinal num_args; void XtVaGetSubvalues(base, resources, num_resources, ...) XtPointer base; XtResourceList resources; Cardinal num_resources; ARGUMENTS Specifies the argument list of name/address pairs that contain the re- source name and either the address into which the resource value is to be stored or their new values. Specifies the base address of the sub- part data structure where the resources should be retrieved or written. Specifies the number of arguments in the argument list. Specifies the nonwidget resource list or values. Specifies the number of resources in the resource list. 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 ar- guments) 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, XtSet- Values also updates the widget's constraints. It starts with the con- straint 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, XtSet- Values 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 identi- fied 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 accord- ing to the size of the resource representation type used within the widget. If the widget's parent is a subclass of constraintWidgetClass, XtGet- Values then fetches the values for any constraint resources requested. It starts with the constraint resources specified for constraintWidget- Class and proceeds down to the subclass chain to the parent's con- straint 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 or- der after all the resource values have been fetched by XtGetValues. This permits a subclass to provide nonwidget resource data to XtGetVal- ues. 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 XtSetValues(3Xt)

Navigation Options