VIEWRES(1)
okay bestie, this is the VIEWRES(1) page from the General Commands Manual, and it's giving graphical class browser π¦
π NAME π
viewres is a graphical class browser for Xt β¨
π§ SYNOPSIS π§
viewres [-option ...]
πΈ DESCRIPTION πΈ
okay so the viewres program shows you a tree of the widget class hierarchy for the Athena Widget Set π³ Every node can be expanded to reveal the resources that its class adds (so, the ones it doesn't inherit from its parent) when a widget gets created. It's literally the best way to visually poke around the structure and inherited resources of the Athena Widget Set π
π OPTIONS π
Viewres takes all the standard toolkit command line options, plus these extras π
-top nameβ this sets the name of the highest widget in the hierarchy to show. It's usually how you narrow things down to just a slice of the tree π The default isObject.-variableβ this tells viewres to show the widget variable names (the ones declared in header files) on the nodes instead of the widget class name. It's super handy when classes share a name, likeTextπ-verticalβ this lays the tree out top to bottom instead of left to right π
π¦ VIEW MENU π¦
The View menu lets you switch up how the tree looks, bestie β¨
- Show Variable Names β the node labels switch to the variable names used to declare each widget class. You can also do this with the
SetLabelType(variable)translation. - Show Class Names β the node labels switch to the class names you use when specifying resources. You can also do this with the
SetLabelType(class)translation. - Layout Horizontal β the tree lays out from left to right. You can also do this with the
SetOrientation(West)translation. - Layout Vertical β the tree lays out from top to bottom. You can also do this with the
SetOrientation(North)translation. - Show Resource Boxes β expands the selected nodes (more on that in the next section) to show the new widget and constraint resources π₯ You can also do this with the
Resources(on)translation. - Hide Resource Boxes β removes the resource displays from the selected nodes, usually to save space π«Ά You can also do this with the
Resources(off)translation.
π SELECT MENU π
Want to see resources for one widget class? Click Button2 on its node, or add the node to the selection list with Button1 and then hit Show Resource Boxes in the View menu. Heads up: Button1 actually toggles the selection state, so clicking a node that's already selected will remove it from the selected list π
You can also select whole collections of nodes through the Select menu:
- Unselect All β removes every node from the selection list. You can also do this with the
Select(nothing)translation. - Select All β adds every node to the selection list. You can also do this with the
Select(all)translation. - Invert All β adds the unselected nodes and removes the selected ones π You can also do this with the
Select(invert)translation. - Select Parent β selects the immediate parents of all selected nodes. You can also do this with the
Select(parent)translation. - Select Ancestors β recursively selects all parents of all selected nodes. You can also do this with the
Select(ancestors)translation. - Select Children β selects the immediate children of all selected nodes. You can also do this with the
Select(children)translation. - Select Descendants β recursively selects all children of all selected nodes. You can also do this with the
Select(descendants)translation. - Select Has Resources β selects every node that adds new resources (regular or constraint) to its widget class. You can also do this with the
Select(resources)translation. - Select Shown Resource Boxes β selects every node whose resource boxes are currently expanded, which is handy if you want to close them with Hide Resource Boxes π You can also do this with the
Select(shown)translation.
β ACTIONS β
These are the application actions you can use β¨
Quit()β makes viewres exit πSetLabelType(type)β sets the node labels to show either the widget variable names or the class names, depending on thetypeargument.SetOrientation(direction)β sets the root of the tree to one of these areas of the window: West, North, East, or South π§Select(what)β selects the nodes you name, just like the VIEW MENU section describes:nothing(unselects all nodes),invert,parent,ancestors,children,descendants,resources, orshownπResources(op)β turns the resource boxes for the selected nodes on, off, or toggles them. If you invoke it from inside one of the nodes (with the keyboard or the pointer), only that node gets used π«Ά
π WIDGET HIERARCHY π
Resources can be specified for these widgets, bestie π§
Viewres viewres
Paned pane
Box buttonbox
Command quit
MenuButton view
SimpleMenu viewMenu
SmeBSB layoutHorizontal
SmeBSB layoutVertical
SmeLine line1
SmeBSB namesVariable
SmeBSB namesClass
SmeLine line2
SmeBSB viewResources
SmeBSB viewNoResources
MenuButton select
SimpleMenu selectMenu
SmeBSB unselect
SmeBSB selectAll
SmeBSB selectInvert
SmeLine line1
SmeBSB selectParent
SmeBSB selectAncestors
SmeBSB selectChildren
SmeBSB selectDescendants
SmeLine line2
SmeBSB selectHasResources
SmeBSB selectShownResources
Form treeform
Porthole porthole
Tree tree
Box variable-name
Toggle variable-name
List variable-name
Panner panner
where variable-name is the widget variable name of each node.
π SEE ALSO π
X(7), xrdb(1), listres(1), editres(1), appres(1), and the appropriate widget documents π
π AUTHOR π
Jim Fulton, MIT X Consortium π«Ά
that's a wrap, bestie! π This page is from X Version 11, viewres 1.0.7, and it's giving main character energy πβ¨
π¦ where this page comes from
- debian trixie: x11-utils 7.7+7
- opensuse-leap 16.0: viewres 1.0.7-bp160.1.12 Β· X11
- opensuse-leap 16.0: viewres 1.0.7-bp160.1.12 Β· X11
- opensuse-leap 16.0: viewres 1.0.7-bp160.1.12 Β· X11
- opensuse-leap 16.0: viewres 1.0.7-bp160.1.12 Β· X11
- ubuntu noble: x11-utils 7.7+6build2
- ubuntu questing: x11-utils 7.7+7
- ubuntu resolute: x11-utils 7.7+7build1
- ubuntu stonking: x11-utils 7.7+7build1
- Copyright (c) 1994 X Consortium
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms