📄 motifhierarchy.html
字号:
<html><head><!-- /vobs/wpwr/docs/tornado-api/guitcl-unix/motifHierarchy.html - generated by refgen from mhier.cc --> <title> motifHierarchy </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>Tornado API Reference : GUI Tcl Library (UNIX)</i></a></p></blockquote><h1>motifHierarchy</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>motifHierarchy</strong> - Tcl interface and managament of Motif HierarcyView objects </p></blockquote><h4>TCL PROCEDURES</h4><blockquote><p><p><b><a href="./motifHierarchy.html#hierarchyCreate">hierarchyCreate</a></b> - create a hierarchy window<br><b><a href="./motifHierarchy.html#hierarchyPost">hierarchyPost</a></b> - post a hierarchy<br><b><a href="./motifHierarchy.html#hierarchyDestroy">hierarchyDestroy</a></b> - destroy a hierarchy<br><b><a href="./motifHierarchy.html#hierarchyExists">hierarchyExists</a></b> - test for the existence of a hierarchy<br><b><a href="./motifHierarchy.html#hierarchyList">hierarchyList</a></b> - return a list of all existing hierarchies<br><b><a href="./motifHierarchy.html#hierarchyIsDisplayed">hierarchyIsDisplayed</a></b> - check if a hierarchy window is displayed<br><b><a href="./motifHierarchy.html#hierarchySetStructure">hierarchySetStructure</a></b> - set the structure of a hierarchy<br><b><a href="./motifHierarchy.html#hierarchySetValues">hierarchySetValues</a></b> - set the values of terminal nodes in a hierarchy<br><b><a href="./motifHierarchy.html#hierarchyHighlight">hierarchyHighlight</a></b> - highlight a given node in a hierarchy<br><b><a href="./motifHierarchy.html#hierarchyUnhighlight">hierarchyUnhighlight</a></b> - highlight a given node in a hierarchy<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library allows to manipulate motif HierarchyView objects for Tcl UNIX GUI<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b><hr><a name="hierarchyCreate"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchyCreate</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchyCreate</strong> - create a hierarchy window</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchyCreate [-destroy <i>proc</i>] [-change] [-special] <i>name</i> [<i>callback</i>]</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>A new hierarchy window is created with the specified <i>name</i>. Before itcan be seen, a hierarchy must be configured with hierarchySetStructure(and possibly hierarchySetValues) and posted with hierarchyPost.<p>The <b>-change</b> flag requests that the hierarchy highlight values that have changed from one evaluation to the next. The <b>-special</b> flaglimits the applicability of the <i>callback</i>: clicking on any hierarchy item invokes the <i>callback</i> unless the <b>-special</b> flag is set;setting <b>-special</b> means that only items marked as traversable (by the string "*:" in the structure item name) invoke the callback when clicked.<p>If <b>-destroy</b> is given, <i>proc</i> is used as the name of a Tcl procedure that is invoked if the hierarchy window is destroyed by the user. The procedure is invoked with one argument: the name of the hierarchywindow.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b>, hierarchySetStructure, hierarchySetValues, hierarchyPost, hierarchyDestroy<hr><a name="hierarchyPost"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchyPost</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchyPost</strong> - post a hierarchy</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchyPost <i>name</i></pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>The named hierarchy is posted, making it visible on the display. It is notan error to attempt to post a nonexistent hierarchy.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b>, hierarchyCreate<hr><a name="hierarchyDestroy"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchyDestroy</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchyDestroy</strong> - destroy a hierarchy</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchyDestroy <i>name</i></pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>The named hierarchy is completely destroyed; it is removed from the screen and its definition forgotten.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b>, hierarchyCreate<hr><a name="hierarchyExists"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchyExists</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchyExists</strong> - test for the existence of a hierarchy</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchyExists <i>name</i></pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function tests for the existence of a specified hierarchy.<p></blockquote><h4>RETURNS</h4><blockquote><p><b>1</b> if the named hierarchy exists, <b>0</b> otherwise.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b>, hierarchyList, hierarchyCreate<hr><a name="hierarchyList"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchyList</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchyList</strong> - return a list of all existing hierarchies</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchyList</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function returns a list of the names of all existing hierarchies.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b>, hierarchyCreate, hierarchyPost, hierarchyExists<hr><a name="hierarchyIsDisplayed"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchyIsDisplayed</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchyIsDisplayed</strong> - check if a hierarchy window is displayed</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchyIsDisplayed <i>name</i></pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function checks to see if the specified window is displayed.<p></blockquote><h4>RETURNS</h4><blockquote><p><b>1</b> if the hierarchy is currently visible (posted and noticonified), <b>0</b> otherwise.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./motifHierarchy.html#top">motifHierarchy</a></b>, hierarchyPost, hierarchyCreate, hierarchyExists<hr><a name="hierarchySetStructure"></a><p align=right><a href="rtnIndex.html"><i>GUI Tcl Library (UNIX) : Tcl Procedures</i></a></p></blockquote><h1>hierarchySetStructure</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>hierarchySetStructure</strong> - set the structure of a hierarchy</p><p></blockquote><h4>LOCALE</h4><blockquote><p>UNIX GUI<p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>hierarchySetStructure <i>name</i> <i>structure</i></pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>A hierarchy is set to contain a list of names, each of which itself maycontain a vector of subordinate names. These named entries in a hierarchy are called "nodes". A node is called "terminal" if it doesnot have subordinate nodes. Any terminal node may also be given an associated value by the command hierarchySetValues. The structureof a hierarchy is a nested list in Tcl syntax. Each item represents a node. If an item is itself a list of exactly two elements, the first element represents the name of the node, and the second element is taken as a list of subnodes. For example, the "structure string"<p><pre> A {B {b1 b2}} C D {E {{e1 {e11 e12 e13}} e2}} F</pre>represents this hierarchy:<p><pre> A - B b1 b2 C D - E - e1 e11 e12 e13 e2 F
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -