File: class-gtkscrollbar.html

package info (click to toggle)
python-gtk2-doc 2.5.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,304 kB
  • ctags: 3,741
  • sloc: makefile: 38
file content (25 lines) | stat: -rw-r--r-- 6,061 bytes parent folder | download
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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>gtk.Scrollbar</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="PyGTK 2.0 Reference Manual"><link rel="up" href="gtk-class-reference.html" title="The gtk Class Reference"><link rel="previous" href="class-gtkscale.html" title="gtk.Scale"><link rel="next" href="class-gtkscrolledwindow.html" title="gtk.ScrolledWindow"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gtk.Scrollbar</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="class-gtkscale.html">Prev</a></td><th width="60%" align="center">The gtk Class Reference</th><td width="20%" align="right"><a accesskey="n" href="class-gtkscrolledwindow.html">Next</a></td></tr></table><hr></div><div class="refentry" lang="en"><a name="class-gtkscrollbar"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>gtk.Scrollbar</h2><p>gtk.Scrollbar &#8212; a base class for scrollbar widgets.</p></div><div class="refsect1" lang="en"><a name="id3495702"></a><h2>Synopsis</h2><table bgcolor="#D0E0F0" width="100%"><tr><td><pre class="classsynopsis">class <span class="ooclass"><span class="classname">gtk.Scrollbar</span></span>(<span class="ooclass"><span class="classname"><a href="class-gtkrange.html" title="gtk.Range">gtk.Range</a></span></span>):
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3495729"></a><h2>Ancestry</h2><table border="0" bgcolor="#E0E0E0" width="100%"><tr><td><pre class="synopsis">+-- <a href="class-gobject.html" title="gobject.GObject">gobject.GObject</a>
  +-- <a href="class-gtkobject.html" title="gtk.Object">gtk.Object</a>
    +-- <a href="class-gtkwidget.html" title="gtk.Widget">gtk.Widget</a>
      +-- <a href="class-gtkrange.html" title="gtk.Range">gtk.Range</a>
        +-- <a href="class-gtkscrollbar.html" title="gtk.Scrollbar">gtk.Scrollbar</a>
</pre></td></tr></table></div><div class="refsect1" lang="en"><a name="id3495771"></a><h2>Style Properties</h2><div class="blockquote"><table width="100%" border="0" bgcolor="#E0E0E0"><tr><td valign="top"><div class="informaltable"><table width="100%" border="0"><colgroup><col><col><col></colgroup><tbody><tr valign="top"><td valign="top">"fixed-slider-length"</td><td valign="top">Read</td><td valign="top">If <tt class="literal">TRUE</tt> don't change the slider
size, just lock it to the minimum length</td></tr><tr valign="top"><td valign="top">"has-backward-stepper"</td><td valign="top">Read</td><td valign="top">If <tt class="literal">TRUE</tt> display the standard
backward arrow button</td></tr><tr valign="top"><td valign="top">"has-forward-stepper"</td><td valign="top">Read</td><td valign="top">If <tt class="literal">TRUE</tt> display the standard forward
arrow button</td></tr><tr valign="top"><td valign="top">"has-secondary-backward-stepper"</td><td valign="top">Read</td><td valign="top">If <tt class="literal">TRUE</tt> display a second backward
arrow button on the opposite end of the scrollbar</td></tr><tr valign="top"><td valign="top">"has-secondary-forward-stepper"</td><td valign="top">Read</td><td valign="top">If <tt class="literal">TRUE</tt> display a secondary forward
arrow button on the opposite end of the scrollbar</td></tr><tr valign="top"><td valign="top">min-slider-length""</td><td valign="top">Read</td><td valign="top">The minimum length of scrollbar slider</td></tr></tbody></table></div></td></tr></table></div></div><div class="refsect1" lang="en"><a name="id3495952"></a><h2>Description</h2><p>The <a href="class-gtkscrollbar.html" title="gtk.Scrollbar"><tt class="classname">gtk.Scrollbar</tt></a>
widget is an abstract base class for <a href="class-gtkhscrollbar.html" title="gtk.HScrollbar"><tt class="classname">gtk.HScrollbar</tt></a>
and <a href="class-gtkvscrollbar.html" title="gtk.VScrollbar"><tt class="classname">gtk.VScrollbar</tt></a>.
The position of the thumb in a scrollbar is controlled by the scroll
adjustments. The <a href="class-gtkscrollbar.html" title="gtk.Scrollbar"><tt class="classname">gtk.Scrollbar</tt></a> uses the attributes in an adjustment (see <a href="class-gtkadjustment.html" title="gtk.Adjustment"><tt class="classname">gtk.Adjustment</tt></a>) as follows:</p><div class="itemizedlist"><ul type="disc"><li>the <tt class="literal">adjustment.lower</tt> attribute is the
minimum value of the scroll region</li><li>the <tt class="literal">adjustment.upper</tt> attribute is the
maximum value of the scroll region</li><li>the <tt class="literal">adjustment.value</tt> attribute
represents the position of the scrollbar, which must be between
<tt class="literal">adjustment.lower</tt> and <tt class="literal">adjustment.upper</tt>
- <tt class="literal">adjustment.page_size</tt></li><li>the <tt class="literal">adjustment.page_size</tt> attribute
represents the size of the visible scrollable area</li><li>the <tt class="literal">adjustment.step_increment</tt> attribute
is the distance to scroll when the small stepper arrows are clicked</li><li>the <tt class="literal">adjustment.page_increment</tt> attribute
is the distance to scroll when the <span><b class="keycap">Page Up</b></span> or <span><b class="keycap">Page
Down</b></span> keys are pressed</li></ul></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="class-gtkscale.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="gtk-class-reference.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="class-gtkscrolledwindow.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gtk.Scale</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">gtk.ScrolledWindow</td></tr></table></div></body></html>