Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XmuWItlzNds(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XmuWnCountOwnedResource(6)

XmuWnFetchResources(6)

XmuWnNameToNode(6)

 

NAME

XmuWnInitializeNodes − initialize an array of widget nodes. 

SYNOPSIS

#include <X11/Xmu/WidgetNode.h>

void XmuWnInitializeNodes(node_array, num_nodes)
    XmuWidgeNode ∗node_array;
    int num_nodes;

Inputs

node_array
Specifies an array of widget nodes in alphabetical order.

num_nodesSpecifies the number of nodes in the array. 

AVAILABILITY

Release 5 and later. 

DESCRIPTION

XmuWnInitializeNodes() initializes an array of XmuWidgetNode.  It must be called before any of the other Xmu widget node functions.  The node_array argument is typically a statically initialized array of XmuWidgetNode (shown below) in which only the first two fields of each node are specified.  XmuWnInitializeNodes() initializes the superclass and subclass links in each XmuWidgetNode structure, and sets the resource fields to NULL.  These resource list fields are filled in by the function XmuWnFetchResources().  Note that the array of widget nodes must be in alphabetical order by the value of the label field, which needn’t be the same as the widget class name. 

USAGE

The XmuWn functions were developed for the specific needs of the viewres client, and may not be of general utility. 

STRUCTURES

typedef struct _XmuWidgetNode {
    char ∗label;                                      /∗ mixed case name ∗/
    WidgetClass ∗widget_class_ptr;               /∗ addr of widget class ∗/
    struct _XmuWidgetNode ∗superclass;     /∗ superclass of widget_class ∗/
    struct _XmuWidgetNode ∗children, ∗siblings;        /∗ subclass links ∗/
    char ∗lowered_label;                   /∗ lowercase version of label ∗/
    char ∗lowered_classname;          /∗ lowercase version of class_name ∗/
    Bool have_resources;                  /∗ resources have been fetched ∗/
    XtResourceList resources;             /∗ extracted resource database ∗/
    struct _XmuWidgetNode ∗∗resourcewn;     /∗ where resources come from ∗/
    Cardinal nresources;                          /∗ number of resources ∗/
    XtResourceList constraints;        /∗ extracted constraint resources ∗/
    struct _XmuWidgetNode ∗∗constraintwn; /∗ where constraints come from ∗/
    Cardinal nconstraints;             /∗ number of constraint resources ∗/
    XtPointer data;                                        /∗ extra data ∗/ } XmuWidgetNode;

SEE ALSO

XmuWnCountOwnedResource(6), XmuWnFetchResources(6), XmuWnNameToNode(6). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026