MirOS Manual: XtGetSubvalues(3), XtGetValues(3), XtSetSubvalues(3), XtSetValues(3), XtVaGetSubvalues(3), XtVaGetValues(3), XtVaSetSubvalues(3), XtVaSetValues(3)


XtSetValues(3Xt)          XT FUNCTIONS           XtSetValues(3Xt)

NAME

     XtSetValues, XtVaSetValues, XtSetSubvalues, XtVaSet-
     Subvalues, XtGetValues, XtVaGetValues, XtGetSubvalues, XtVa-
     GetSubvalues - 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, Cardi-
          nal 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, Cardi-
          nal num_args);

     void XtVaGetSubvalues(XtPointer base, XtResourceList
          resources, Cardinal num_resources, ...);

ARGUMENTS

     and either the address into which the resource value is to
     be stored or their new values

     args      Specifies the argument list of name/address pairs
               that contain the resource name.

     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.

     ...       Specifes the variable argument list of
               name/address pairs that contain the resource name.

XFree86                   Version 4.5.0                         1

XtSetValues(3Xt)          XT FUNCTIONS           XtSetValues(3Xt)

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 constraintWidget-
     Class, 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 con-
     straint set_values procedures are called with widget argu-
     ments, as for all set_values procedures, not just the con-
     straint 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 struc-
     ture 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

XFree86                   Version 4.5.0                         2

XtSetValues(3Xt)          XT FUNCTIONS           XtSetValues(3Xt)

     corresponding resource value. It is the caller's responsi-
     bility 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 constraintWidget-
     Class, XtGetValues then fetches the values for any con-
     straint 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 per-
     mits a subclass to provide nonwidget resource data to XtGet-
     Values.

     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

XFree86                   Version 4.5.0                         3

Generated on 2017-04-03 16:26:17 by $MirOS: src/scripts/roff2htm,v 1.88 2017/01/29 00:51:06 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2017 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.