XtVaGetSubvalues(3)


HOME

XtSetValues

NAME
SYNTAX
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/nntptest.1.html
nntptest(1) - interactive NNTP test program - Linux man page
nntptest is a utility that allows you to authenticate to a NNTP server and interactively issue commands to it. Once authenticated you may issue any NNTP command

manpages/default_store.3.html
default_store(3) - generic storage of global data. (ManPage)
The purpose of the default storage is three-fold: 1) To create a global storage space without creating a whole bunch of globally accessible variables or a whole

manpages/wish.1.html
wish(1) - Simple windowing shell (Commands - Linux man page)
Wish is a simple program consisting of the Tcl command language, the Tk toolkit, and a main program that reads commands from standard input or from a file. It c

manpages/term_attrs.3ncurses.html
term_attrs(3ncurses) - curses environment query routines....
The baudrate routine returns the output speed of the terminal. The number returned is in bits per second, for example 9600, and is an integer. The erasechar rou

manpages/XF86VidModeSetGammaRamp.3.html
XF86VidModeSetGammaRamp(3) - Extension library for the XFree
These functions provide an interface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mo

manpages/bzero.3.html
bzero(3) - write zero-valued bytes - Linux manual page......
The bzero() function sets the first n bytes of the area starting at s to zero (bytes containing \0). RETURN VALUE None. ATTRIBUTES Multithreading (see pthreads(

manpages/rstart.1.html
rstart(1) - a sample implementation of a Remote Start client
Rstart is a simple implementation of a Remote Start client as defined in A Flexible Remote Execution Protocol Based on rsh. It uses rsh as its underlying remote

manpages/fonts-conf.5.html
fonts-conf(5) - Font configuration files - Linux man page...
Fontconfig is a library designed to provide system-wide font configuration, customization and application access. FUNCTIONAL OVERVIEW Fontconfig contains two es

manpages/wgetnstr.3ncurses.html
wgetnstr(3ncurses) - accept character strings from curses te
The function getstr is equivalent to a series of calls to getch, until a newline or carriage return is received (the terminating character is not included in th

manpages/sighold.3.html
sighold(3) - System V signal API (Library - Linux man page)
These functions are provided in glibc as a compatibility interface for programs that make use of the historical System V signal API. This API is obsolete: new a

manpages/feclearexcept.3.html
feclearexcept(3) - floating-point rounding and exception han
These eleven functions were defined in C99, and describe the handling of floating-point rounding and exceptions (overflow, zero-divide, etc.). Exceptions The di

manpages/XRes.3.html
XRes(3) - X-Resource extension client library (Man Page)....
X-Resource is an extension that allows a client to query the X server about its usage of various resources. It should not be confused with the X resource databa





We can't live, work or learn in freedom unless the software we use is free.