⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hierarchy.html

📁 GTK+_ Gnome Application Development
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      GTK+/Gnome Object Hierarchy    </title>    <meta name="GENERATOR" content=    "Modular DocBook HTML Stylesheet Version 1.45">    <link rel="HOME" title="GTK+ / Gnome Application Development"    href="ggad.html">    <link rel="UP" title="Appendices" href="appendices.html">    <link rel="PREVIOUS" title="Appendices" href="appendices.html">    <link rel="NEXT" title="GtkObject" href="z202.html">  </head>  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink=   "#840084" alink="#0000FF">    <div class="NAVHEADER">      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <th colspan="4" align="center">            <font color="#000000" size="2">GTK+ / Gnome Application            Development</font>          </th>        </tr>        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="appendices.html"><font color="#0000ff" size=            "2"><b>&lt;&lt;&lt; Previous</b></font></a>          </td>          <td width="25%" colspan="2" bgcolor="#ffffff" align=           "center">            <font color="#0000ff" size="2"><b><a href="ggad.html">            <font color="#0000ff" size="2"><b>            Home</b></font></a></b></font>          </td>          <td width="25%" bgcolor="#ffffff" align="right">            <a href="z202.html"><font color="#0000ff" size="2"><b>            Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>      </table>    </div>    <div class="CHAPTER">      <h1>        <a name="HIERARCHY">GTK+/Gnome Object Hierarchy</a>      </h1>      <div class="TOC">        <dl>          <dt>            <b>Table of Contents</b>          </dt>          <dt>            <a href="hierarchy.html#Z201">Hierarchy Summary</a>          </dt>          <dt>            <a href="z202.html"><span class="STRUCTNAME">            GtkObject</span></a>          </dt>          <dt>            <a href="z207.html">Widgets</a>          </dt>          <dt>            <a href="z736.html">Canvas Items</a>          </dt>          <dt>            <a href="z781.html">Miscellaneous Objects</a>          </dt>        </dl>      </div>      <p>        This appendix is a quick tour of the GTK+ and Gnome object        hierarchy. It includes <span class="STRUCTNAME">        GtkObject</span> and all subclasses from both libraries, a        brief description of each, and the header files the objects        are found in. It also includes screen shots of widgets, to        help you find the correct widget for a given task. The <tt        class="APPLICATION">testgtk</tt> and <tt class=        "APPLICATION">test-gnome</tt> programs that come with the        GTK+ and Gnome libraries are also a good way to find        widgets; many of the screenshots in this appendix are from        those programs.      </p>      <p>        The specific header file containing each object is listed;        however, all GTK+ header files can be included with the <tt        class="FILENAME">gtk/gtk.h</tt> convenience header. All        GTK+ and Gnome headers can be included with the <tt class=         "FILENAME">gnome.h</tt> header.      </p>      <p>        Some objects are described as "abstract base        classes"---this means that only the subclasses of the        object can be instantiated, but all of the subclasses can        be manipulated through the base class's interface.      </p>      <p>        As a general rule, you should try to use <i class=        "EMPHASIS">the most specific object possible</i>. That is,        you could use <tt class="CLASSNAME">GtkWindow</tt> for your        main application window, but <tt class="CLASSNAME">        GnomeApp</tt> is a better choice; you could roll your own        about dialog from <tt class="CLASSNAME">GnomeDialog</tt>,        but <tt class="CLASSNAME">GnomeAbout</tt> is a better        choice. This maximizes UI consistency and minimizes your        effort.      </p>      <p>        Both GTK+ and Gnome come with "test" programs, called <tt        class="FILENAME">testgtk</tt> and <tt class="FILENAME">        test-gnome</tt>, respectively. These programs are used to        test the widgets and other features in each library.        They're also an excellent source of sample code, and a good        way to browse the available widgets and find the one you        need.      </p>      <div class="SECT1">        <h1 class="SECT1">          <a name="Z201">Hierarchy Summary</a>        </h1>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;GtkBin | +GtkButton   |    +GnomeColorPicker   |   +GnomeFontPicker   |   +GnomeHRef   |   +GtkToggleButton    |   +GtkOptionMenu&#13;</pre>            </td>          </tr>        </table>        <p>          This would be for GtkButton. The parent of the object (if          any) is shown, then the object itself (possibly          highlighted or in bold), then the <i class="EMPHASIS">          immediate</i> children of the object, if any. The second          element that might be nice: some of the objects are          "immature" or "unstable", which is a sort of mild warning          suggesting to programmers that they may not want to use          the object. It might be nice to have some sort of icon or          margin text used to mark those objects.        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13; GtkObject  |  +GtkWidget  | |  | +GtkContainer  | | |  | | +GtkBin  | | | |  | | | +GtkWindow  | | | | |  | | | | +GnomeDialog  | | | | | |  | | | | | +GnomeAbout  | | | | | |  | | | | | +GnomeMessageBox  | | | | | |  | | | | | +GnomePropertyBox  | | | | | |  | | | | | `GnomeScores  | | | | |  | | | | +GnomeApp  | | | | |  | | | | +GtkDialog  | | | | | |  | | | | | +GnomeFontSelector  | | | | | |  | | | | | `GtkInputDialog  | | | | |  | | | | +GtkColorSelectionDialog  | | | | |  | | | | +GtkFileSelection  | | | | |  | | | | +GtkFontSelectionDialog  | | | | |  | | | | `GtkPlug  | | | |  | | | +GtkButton  | | | | |  | | | | +GnomeColorPicker  | | | | |  | | | | +GnomeFontPicker  | | | | |  | | | | +GnomeHRef  | | | | |  | | | | +GtkToggleButton  | | | | | |  | | | | | `GtkCheckButton  | | | | |   |  | | | | |   `GtkRadioButton  | | | | |  | | | | `GtkOptionMenu  | | | |                        | | | +GnomeDockItem  | | | |  | | | +GtkAlignment  | | | |  | | | +GtkFrame  | | | | |  | | | | `GtkAspectFrame  | | | |  | | | +GtkItem  | | | | |  | | | | +GtkMenuItem  | | | | | |  | | | | | +GtkCheckMenuItem  | | | | | | |  | | | | | | `GtkRadioMenuItem  | | | | | |  | | | | | +GtkPixmapMenuItem  | | | | | |  | | | | | `GtkTearoffMenuItem  | | | | |  | | | | +GtkListItem  | | | | |  | | | | `GtkTreeItem  | | | |  | | | +GtkEventBox  | | | |  | | | +GtkHandleBox  | | | |  | | | +GtkScrolledWindow  | | | |  | | | `GtkViewport  | | |  | | +GtkBox  | | | |  | | | +GtkHBox  | | | | |  | | | | +GnomeAppBar  | | | | |  | | | | +GnomeDateEdit  | | | | |  | | | | +GtkCombo  | | | | | |  | | | | | `GnomeEntry  | | | | |  | | | | +GnomeFileEntry  | | | | |  | | | | +GnomeNumberEntry  | | | | |  | | | | +GnomeProcBar  | | | | |  | | | | `GtkStatusbar  | | | |  | | | +GtkVBox  | | | | |  | | | | +GnomeCalculator  | | | | |  | | | | +GnomeGuru  | | | | |  | | | | +GnomeIconEntry  | | | | |  | | | | +GnomeIconSelection  | | | | |  | | | | +GnomeLess  | | | | |  | | | | +GnomePaperSelector  | | | | |  | | | | +GnomePixmapEntry  | | | | |  | | | | +GnomeSpell  | | | | |  | | | | +GtkColorSelection  | | | | |  | | | | `GtkGammaCurve  | | | |  | | | `GtkButtonBox  | | |   |  | | |   +GtkHButtonBox  | | |   |  | | |   `GtkVButtonBox  | | |  | | +GtkLayout  | | | |  | | | `GnomeCanvas  | | |   |  | | |   `GnomeIconList  | | |  | | +GnomeDockBand  | | |  | | +GnomeDock  | | |  | | +GtkCList  | | | |  | | | `GtkCTree  | | |  | | +GtkFixed  | | |  | | +GtkNotebook  | | | |  | | | `GtkFontSelection  | | |  | | +GtkPaned  | | | |  | | | +GtkHPaned  | | | |  | | | `GtkVPaned  | | |  | | +GtkList  | | |  | | +GtkMenuShell  | | | |  | | | +GtkMenuBar  | | | |  | | | `GtkMenu  | | |  | | +GtkPacker  | | |  | | +GtkSocket  | | |  | | +GtkTable  | | | |  | | | `GtkTed  | | |  | | +GtkToolbar  | | |  | | `GtkTree  | |  | +GnomeAnimator  | |  | +GnomePixmap  | | |  | | `GnomeStock  | |  | +GtkMisc  | | |  | | +GtkLabel  | | | |  | | | +GtkAccelLabel  | | | |  | | | +GtkClock  | | | |  | | | `GtkTipsQuery  | | |  | | +GtkArrow  | | |  | | +GtkImage  | | |  | | `GtkPixmap  | |  | +GtkCalendar  | |  | +GtkDrawingArea  | | |  | | `GtkCurve  | |  | +GtkDial  | |  | +GtkEditable  | | |  | | +GtkEntry  | | | |  | | | `GtkSpinButton  | | |  | | `GtkText  | |  | +GtkRuler  | | |  | | +GtkHRuler  | | |  | | `GtkVRuler  | |  | +GtkRange  | | |  | | +GtkScale  | | | |  | | | +GtkHScale  | | | |  | | | `GtkVScale  | | |  | | `GtkScrollbar  | |   |  | |   +GtkHScrollbar  | |   |  | |   `GtkVScrollbar  | |  | +GtkSeparator  | | |  | | +GtkHSeparator  | | |  | | `GtkVSeparator  | |  | +GtkPreview  | |  | +GtkProgress  | | |  | | `GtkProgressBar  | |   | `ZvtTerm  |  +GnomeCanvasItem  | |  | +GnomeCanvasRE  | | |  | | +GnomeCanvasEllipse  | | |  | | `GnomeCanvasRect  | |  | +GnomeCanvasGroup  | |  | +GnomeCanvasImage  | |  | +GnomeCanvasLine  | |  | +GnomeCanvasPolygon  | |  | +GnomeCanvasText  | |  | +GnomeCanvasWidget  | |  | `GnomeIconTextItem  |  +GnomeClient  |  +GnomeDEntryEdit  |  +GnomeDockLayout  |  +GnomeMDIChild  | |  | `GnomeMDIGenericChild  |  +GnomeMDI  |  +GtkData  | |  | +GtkAdjustment  | |  | `GtkTooltips  |  `GtkItemFactory&#13;</pre>            </td>          </tr>        </table>      </div>    </div>    <div class="NAVFOOTER">      <br>      <br>      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="appendices.html"><font color="#0000ff" size=            "2"><b>&lt;&lt;&lt; Previous</b></font></a>          </td>          <td width="25%" colspan="2" bgcolor="#ffffff" align=           "center">            <font color="#0000ff" size="2"><b><a href="ggad.html">            <font color="#0000ff" size="2"><b>            Home</b></font></a></b></font>          </td>          <td width="25%" bgcolor="#ffffff" align="right">            <a href="z202.html"><font color="#0000ff" size="2"><b>            Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>        <tr>          <td colspan="2" align="left">            <font color="#000000" size="2"><b>Appendices</b></font>          </td>          <td colspan="2" align="right">            <font color="#000000" size="2"><b><span class=             "STRUCTNAME">GtkObject</span></b></font>          </td>        </tr>      </table>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -