{
    "mode": "man",
    "parameter": "VIEWRES",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/VIEWRES/1/json",
    "generated": "2026-06-03T05:23:47Z",
    "synopsis": "viewres [-option ...]",
    "sections": {
        "NAME": {
            "content": "viewres - graphical class browser for Xt\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "viewres [-option ...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The  viewres  program displays a tree showing the widget class hierarchy of the Athena Widget\nSet.  Each node in the tree can be expanded to show  the  resources  that  the  corresponding\nclass  adds  (i.e. does not inherit from its parent) when a widget is created.  This applica‐\ntion allows the user to visually examine the structure and inherited resources for the Athena\nWidget Set.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Viewres accepts all of the standard toolkit command line options as well as the following:\n",
            "subsections": [
                {
                    "name": "-top",
                    "content": "This  option  specifies  the  name of the highest widget in the hierarchy to display.\nThis is typically used to limit the display to a subset of the tree.  The default  is\nObject.\n"
                },
                {
                    "name": "-variable",
                    "content": "This  option  indicates  that the widget variable names (as declared in header files)\nshould be displayed in the nodes rather than the widget class name.   This  is  some‐\ntimes useful to distinguish widget classes that share the same name (such as Text).\n"
                },
                {
                    "name": "-vertical",
                    "content": "This  option indicates that the tree should be displayed top to bottom rather left to\nright.\n"
                }
            ]
        },
        "VIEW MENU": {
            "content": "The way in which the tree is displayed may be changed through the entries in the View menu:\n",
            "subsections": [
                {
                    "name": "Show Variable Names",
                    "content": "This entry causes the node labels to be set to the variable names used to declare the\ncorresponding  widget class.  This operation may also be performed with the SetLabel‐‐\nType(variable) translation.\n"
                },
                {
                    "name": "Show Class Names",
                    "content": "This entry causes the node labels to be set to the class names used  when  specifying\nresources.   This operation may also be performed with the SetLabelType(class) trans‐\nlation.\n"
                },
                {
                    "name": "Layout Horizontal",
                    "content": "This entry causes the tree to be laid out from left to  right.   This  operation  may\nalso be performed with the SetOrientation(West) translation.\n"
                },
                {
                    "name": "Layout Vertical",
                    "content": "This  entry  causes  the  tree to be laid out from top to bottom.  This operation may\nalso be performed with the SetOrientation(North) translation.\n"
                },
                {
                    "name": "Show Resource Boxes",
                    "content": "This entry expands the selected nodes (see next section) to show the new  widget  and\nconstraint  resources.   This  operation may also be performed with the Resources(on)\ntranslation.\n"
                },
                {
                    "name": "Hide Resource Boxes",
                    "content": "This entry removes the resource displays from the selected nodes (usually to conserve\nspace).  This operation may also be performed with the Resources(off) translation.\n"
                }
            ]
        },
        "SELECT MENU": {
            "content": "Resources for a single widget class can be displayed by clicking Button2 on the corresponding\nnode, or by adding the node to the selection list with Button1 and using  the  Show  Resource\nBoxes  entry in the View menu.  Since Button1 actually toggles the selection state of a node,\nclicking on a selected node will cause it to be removed from the selected list.\n\nCollections of nodes may also be selected through the various entries in the Select menu:\n",
            "subsections": [
                {
                    "name": "Unselect All",
                    "content": "This entry removes all nodes from the selection list.  This  operation  may  also  be\nperformed with the Select(nothing) translation.\n"
                },
                {
                    "name": "Select All",
                    "content": "This  entry  adds  all  nodes to the selection list.  This operation may also be per‐\nformed with the Select(all) translation.\n"
                },
                {
                    "name": "Invert All",
                    "content": "This entry adds unselected nodes to, and removes selected nodes from,  the  selection\nlist.  This operation may also be performed with the Select(invert) translation.\n"
                },
                {
                    "name": "Select Parent",
                    "content": "This  entry  selects the immediate parents of all selected nodes.  This operation may\nalso be performed with the Select(parent) translation.\n"
                },
                {
                    "name": "Select Ancestors",
                    "content": "This entry recursively selects all parents of all selected nodes.  This operation may\nalso be performed with the Select(ancestors) translation.\n"
                },
                {
                    "name": "Select Children",
                    "content": "This  entry selects the immediate children of all selected nodes.  This operation may\nalso be performed with the Select(children) translation.\n"
                },
                {
                    "name": "Select Descendants",
                    "content": "This entry recursively selects all children of all selected  nodes.   This  operation\nmay also be performed with the Select(descendants) translation.\n"
                },
                {
                    "name": "Select Has Resources",
                    "content": "This  entry selects all nodes that add new resources (regular or constraint) to their\ncorresponding widget classes.  This operation may also  be  performed  with  the  Se‐\nlect(resources) translation.\n"
                },
                {
                    "name": "Select Shown Resource Boxes",
                    "content": "This  entry selects all nodes whose resource boxes are currently expanded (usually so\nthat they can be closed with Hide Resource Boxes).  This operation may also  be  per‐\nformed with the Select(shown) translation.\n"
                }
            ]
        },
        "ACTIONS": {
            "content": "The following application actions are provided:\n",
            "subsections": [
                {
                    "name": "Quit()",
                    "content": "This action causes viewres to exit.\n\nSetLabelType(type)\nThis  action  sets the node labels to display the widget variable or class names, ac‐\ncording to the argument type.\n\nSetOrientation(direction)\nThis action sets the root of the tree to be one of the following areas of the window:\nWest, North, East, or South.\n\nSelect(what)\nThis action selects the indicated nodes, as described in the VIEW MENU section: noth‐\ning (unselects all nodes), invert,  parent,  ancestors,  children,  descendants,  re‐\nsources, shown.\n\nResources(op)\nThis  action turns on, off, or toggles the resource boxes for the selected nodes.  If\ninvoked from within one of the nodes (through the keyboard  or  pointer),  only  that\nnode is used.\n"
                }
            ]
        },
        "WIDGET HIERARCHY": {
            "content": "Resources may be specified for the following widgets:\n\nViewres viewres\nPaned pane\nBox buttonbox\nCommand quit\nMenuButton view\nSimpleMenu viewMenu\nSmeBSB layoutHorizontal\nSmeBSB layoutVertical\nSmeLine line1\nSmeBSB namesVariable\nSmeBSB namesClass\nSmeLine line2\nSmeBSB viewResources\nSmeBSB viewNoResources\nMenuButton select\nSimpleMenu selectMenu\nSmeBSB unselect\nSmeBSB selectAll\nSmeBSB selectInvert\nSmeLine line1\nSmeBSB selectParent\nSmeBSB selectAncestors\nSmeBSB selectChildren\nSmeBSB selectDescendants\nSmeLine line2\nSmeBSB selectHasResources\nSmeBSB selectShownResources\nForm treeform\nPorthole porthole\nTree tree\nBox variable-name\nToggle variable-name\nList variable-name\nPanner panner\n\nwhere variable-name is the widget variable name of each node.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "X(7), xrdb(1), listres(1), editres(1), appres(1), appropriate widget documents\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright 1994 X Consortium\nSee X(7) for a full statement of rights and permissions.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Jim Fulton, MIT X Consortium\n\n\n\nX Version 11                                viewres 1.0.6                                 VIEWRES(1)",
            "subsections": []
        }
    },
    "summary": "viewres - graphical class browser for Xt",
    "flags": [
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option specifies the name of the highest widget in the hierarchy to display. This is typically used to limit the display to a subset of the tree. The default is Object."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option indicates that the widget variable names (as declared in header files) should be displayed in the nodes rather than the widget class name. This is some‐ times useful to distinguish widget classes that share the same name (such as Text)."
        },
        {
            "flag": "",
            "long": null,
            "arg": null,
            "description": "This option indicates that the tree should be displayed top to bottom rather left to right."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "X",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/X/7/json"
        },
        {
            "name": "xrdb",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/xrdb/1/json"
        },
        {
            "name": "listres",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/listres/1/json"
        },
        {
            "name": "editres",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/editres/1/json"
        },
        {
            "name": "appres",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/appres/1/json"
        }
    ]
}