# listres - list resources in widgets - man(1) - [phpMan]

[_LISTRES_(1)](https://www.chedong.com/phpMan.php/man/LISTRES/1/markdown)                             General Commands Manual                            [_LISTRES_(1)](https://www.chedong.com/phpMan.php/man/LISTRES/1/markdown)

## NAME
       listres - list resources in widgets

## SYNOPSIS
       **listres **[-option ...]

## DESCRIPTION
       The  _listres_  program  generates  a list of a widget's resource database.  The class in which
       each resource is first defined, the instance and class name, and the type of each resource is
       listed.  If no specific widgets or the _-all_ switch are given, a  two-column  list  of  widget
       names and their class hierarchies is printed.

## OPTIONS
       _Listres_  accepts all of the standard toolkit command line options along with those listed be‐
       low:

### -all    
               objects.

### -nosuper
               This option indicates that resources that are inherited from a superclass should  not
               be listed.  This is useful for determining which resources are new to a subclass.

### -variable
               This  option  indicates  that  widgets should be identified by the names of the class
               record variables rather than the class name given in the variable.   This  is  useful
               for distinguishing subclasses that have the same class name as their superclasses.

### -top _
               This  option specifies the name of the widget to be treated as the top of the hierar‐
               chy.  Case is not significant, and the name may match either the class variable  name
               or the class name.  The default is ``core''.

### -format _
               This  option  specifies  the  _printf_-style  format string to be used to print out the
               name, instance, class, and type of each resource.

## X DEFAULTS
       To be written.

## SEE ALSO
       [X(7)](https://www.chedong.com/phpMan.php/man/X/7/markdown), [xrdb(1)](https://www.chedong.com/phpMan.php/man/xrdb/1/markdown), appropriate widget documents

## BUGS
       On operating systems that do not support dynamic linking of run-time routines,  this  program
       must  have  all  of its known widgets compiled in.  The sources provide several tools for au‐
       tomating this process for various widget sets.

## AUTHOR
       Jim Fulton, MIT X Consortium

X Version 11                                listres 1.0.5                                 [_LISTRES_(1)](https://www.chedong.com/phpMan.php/man/LISTRES/1/markdown)
