📄 gtkrange.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"><title>GtkRange</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="GTK+ Reference Manual"><link rel="up" href="AbstractObjects.html" title="Abstract Base Classes"><link rel="prev" href="GtkPaned.html" title="GtkPaned"><link rel="next" href="GtkScale.html" title="GtkScale"><meta name="generator" content="GTK-Doc V1.9 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="gtk.html" title="Part I. GTK+ Overview"><link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference"><link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects"><link rel="chapter" href="ch01.html" title="Object Hierarchy"><link rel="chapter" href="ch02.html" title="Widget Gallery"><link rel="chapter" href="WindowWidgets.html" title="Windows"><link rel="chapter" href="DisplayWidgets.html" title="Display Widgets"><link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles"><link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry"><link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor"><link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets"><link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar"><link rel="chapter" href="Actions.html" title="Action-based menus and toolbars"><link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)"><link rel="chapter" href="LayoutContainers.html" title="Layout Containers"><link rel="chapter" href="Ornaments.html" title="Ornaments"><link rel="chapter" href="ScrollingWidgets.html" title="Scrolling"><link rel="chapter" href="Printing.html" title="Printing"><link rel="chapter" href="MiscObjects.html" title="Miscellaneous"><link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes"><link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding"><link rel="chapter" href="SpecialObjects.html" title="Special-purpose features"><link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents"><link rel="chapter" href="Builder.html" title="Interface builder"><link rel="chapter" href="DeprecatedObjects.html" title="Deprecated"><link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+"><link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist"><link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser"><link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction"><link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and GtkComboBoxEntry"><link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView"><link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog"><link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton"><link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant"><link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser"><link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton"><link rel="chapter" href="gtk-migrating-GtkBuilder.html" title="Migrating from libglade to GtkBuilder"><link rel="chapter" href="gtk-migrating-tooltips.html" title="Migrating from GtkTooltips to GtkTooltip"><link rel="part" href="pt05.html" title="Part V. GTK+ Tools"><link rel="glossary" href="glossary.html" title="Glossary"><link rel="index" href="ix01.html" title="Index"><link rel="index" href="ix02.html" title="Index of deprecated symbols"><link rel="index" href="ix03.html" title="Index of new symbols in 2.2"><link rel="index" href="ix04.html" title="Index of new symbols in 2.4"><link rel="index" href="ix05.html" title="Index of new symbols in 2.6"><link rel="index" href="ix06.html" title="Index of new symbols in 2.8"><link rel="index" href="ix07.html" title="Index of new symbols in 2.10"><link rel="index" href="ix08.html" title="Index of new symbols in 2.12"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GtkPaned.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="AbstractObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GTK+ Reference Manual</th><td><a accesskey="n" href="GtkScale.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr><tr><td colspan="5" class="shortcuts"><nobr><a href="#id4293068" class="shortcut">Top</a>  |  <a href="#id4294145" class="shortcut">Description</a>  |  <a href="#id4293668" class="shortcut">Object Hierarchy</a>  |  <a href="#id4293729" class="shortcut">Implemented Interfaces</a>  |  <a href="#id4293759" class="shortcut">Properties</a>  |  <a href="#id4293915" class="shortcut">Style Properties</a>  |  <a href="#id4294085" class="shortcut">Signals</a></nobr></td></tr></table><div class="refentry" lang="en"><a name="GtkRange"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><a name="id4293068"></a><span class="refentrytitle">GtkRange</span></h2><p>GtkRange — Base class for widgets which visualize an adjustment</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">#include <gtk/gtk.h> <a class="link" href="GtkRange.html#GtkRange-struct">GtkRange</a>;<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> <a class="link" href="GtkRange.html#gtk-range-get-fill-level">gtk_range_get_fill_level</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="GtkRange.html#gtk-range-get-restrict-to-fill-level">gtk_range_get_restrict_to_fill_level</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="GtkRange.html#gtk-range-get-show-fill-level">gtk_range_get_show_fill_level</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);void <a class="link" href="GtkRange.html#gtk-range-set-fill-level">gtk_range_set_fill_level</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> fill_level);void <a class="link" href="GtkRange.html#gtk-range-set-restrict-to-fill-level">gtk_range_set_restrict_to_fill_level</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> restrict_to_fill_level);void <a class="link" href="GtkRange.html#gtk-range-set-show-fill-level">gtk_range_set_show_fill_level</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> show_fill_level);<a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>* <a class="link" href="GtkRange.html#gtk-range-get-adjustment">gtk_range_get_adjustment</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);void <a class="link" href="GtkRange.html#gtk-range-set-update-policy">gtk_range_set_update_policy</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <a class="link" href="gtk-Standard-Enumerations.html#GtkUpdateType">GtkUpdateType</a> policy);void <a class="link" href="GtkRange.html#gtk-range-set-adjustment">gtk_range_set_adjustment</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *adjustment);<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> <a class="link" href="GtkRange.html#gtk-range-get-inverted">gtk_range_get_inverted</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);void <a class="link" href="GtkRange.html#gtk-range-set-inverted">gtk_range_set_inverted</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> setting);<a class="link" href="gtk-Standard-Enumerations.html#GtkUpdateType">GtkUpdateType</a> <a class="link" href="GtkRange.html#gtk-range-get-update-policy">gtk_range_get_update_policy</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> <a class="link" href="GtkRange.html#gtk-range-get-value">gtk_range_get_value</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);void <a class="link" href="GtkRange.html#gtk-range-set-increments">gtk_range_set_increments</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> step, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> page);void <a class="link" href="GtkRange.html#gtk-range-set-range">gtk_range_set_range</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> min, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> max);void <a class="link" href="GtkRange.html#gtk-range-set-value">gtk_range_set_value</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> value);enum <a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a>;void <a class="link" href="GtkRange.html#gtk-range-set-lower-stepper-sensitivity">gtk_range_set_lower_stepper_sensitivity</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a> sensitivity);<a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a> <a class="link" href="GtkRange.html#gtk-range-get-lower-stepper-sensitivity">gtk_range_get_lower_stepper_sensitivity</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);void <a class="link" href="GtkRange.html#gtk-range-set-upper-stepper-sensitivity">gtk_range_set_upper_stepper_sensitivity</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range, <a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a> sensitivity);<a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a> <a class="link" href="GtkRange.html#gtk-range-get-upper-stepper-sensitivity">gtk_range_get_upper_stepper_sensitivity</a> (<a class="link" href="GtkRange.html" title="GtkRange">GtkRange</a> *range);</pre></div><div class="refsect1" lang="en"><a name="id4293668"></a><h2>Object Hierarchy</h2><pre class="synopsis"> <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> +----<ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> +----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a> +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> +----GtkRange +----<a class="link" href="GtkScale.html" title="GtkScale">GtkScale</a> +----<a class="link" href="GtkScrollbar.html" title="GtkScrollbar">GtkScrollbar</a></pre></div><div class="refsect1" lang="en"><a name="id4293729"></a><h2>Implemented Interfaces</h2><p>GtkRange implements AtkImplementorIface and <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p></div><div class="refsect1" lang="en"><a name="id4293759"></a><h2>Properties</h2><pre class="synopsis"> "<a class="link" href="GtkRange.html#GtkRange--adjustment">adjustment</a>" <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> : Read / Write / Construct "<a class="link" href="GtkRange.html#GtkRange--fill-level">fill-level</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a> : Read / Write "<a class="link" href="GtkRange.html#GtkRange--inverted">inverted</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write "<a class="link" href="GtkRange.html#GtkRange--lower-stepper-sensitivity">lower-stepper-sensitivity</a>" <a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a> : Read / Write "<a class="link" href="GtkRange.html#GtkRange--restrict-to-fill-level">restrict-to-fill-level</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write "<a class="link" href="GtkRange.html#GtkRange--show-fill-level">show-fill-level</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write "<a class="link" href="GtkRange.html#GtkRange--update-policy">update-policy</a>" <a class="link" href="gtk-Standard-Enumerations.html#GtkUpdateType">GtkUpdateType</a> : Read / Write "<a class="link" href="GtkRange.html#GtkRange--upper-stepper-sensitivity">upper-stepper-sensitivity</a>" <a class="link" href="GtkRange.html#GtkSensitivityType">GtkSensitivityType</a> : Read / Write</pre></div><div class="refsect1" lang="en"><a name="id4293915"></a><h2>Style Properties</h2><pre class="synopsis"> "<a class="link" href="GtkRange.html#GtkRange--activate-slider">activate-slider</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read "<a class="link" href="GtkRange.html#GtkRange--arrow-displacement-x">arrow-displacement-x</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read "<a class="link" href="GtkRange.html#GtkRange--arrow-displacement-y">arrow-displacement-y</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read "<a class="link" href="GtkRange.html#GtkRange--slider-width">slider-width</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read "<a class="link" href="GtkRange.html#GtkRange--stepper-size">stepper-size</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read "<a class="link" href="GtkRange.html#GtkRange--stepper-spacing">stepper-spacing</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read "<a class="link" href="GtkRange.html#GtkRange--trough-border">trough-border</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read "<a class="link" href="GtkRange.html#GtkRange--trough-side-details">trough-side-details</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read "<a class="link" href="GtkRange.html#GtkRange--trough-under-steppers">trough-under-steppers</a>" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read</pre></div><div class="refsect1" lang="en"><a name="id4294085"></a><h2>Signals</h2><pre class="synopsis"> "<a class="link" href="GtkRange.html#GtkRange-adjust-bounds">adjust-bounds</a>" : Run Last "<a class="link" href="GtkRange.html#GtkRange-change-value">change-value</a>" : Run Last "<a class="link" href="GtkRange.html#GtkRange-move-slider">move-slider</a>" : Run Last / Action "<a class="link" href="GtkRange.html#GtkRange-value-changed">value-changed</a>" : Run Last</pre></div><div class="refsect1" lang="en"><a name="id4294145"></a><h2>Description</h2><p><a class="link" href="GtkRange.html" title="GtkRange"><span class="type">GtkRange</span></a> is the common base class for widgets which visualize anadjustment, e.g scales or scrollbars. </p><p>Apart from signals for monitoring the parameters of the adjustment, GtkRange provides properties and methods for influencing the sensitivityof the "steppers". It also provides properties and methods for setting a "fill level" on range widgets. See <a class="link" href="GtkRange.html#gtk-range-set-fill-level"><code class="function">gtk_range_set_fill_level()</code></a>.</p></div><div class="refsect1" lang="en"><a name="id4294187"></a><h2>Details</h2><div class="refsect2" lang="en">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -