1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488
|
<!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><<< 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 >>></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">
GtkBin
|
+GtkButton
|
+GnomeColorPicker
|
+GnomeFontPicker
|
+GnomeHRef
|
+GtkToggleButton
|
+GtkOptionMenu
</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">
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
</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><<< 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 >>></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>
|