Creates a new scrollbar with the given orientation.
Returns this, for use in with statements.
Get builder for gtk.scrollbar.Scrollbar
Returns this, for use in with statements.
Get builder for gtk.range.Range
Get fillLevel property.
Set fillLevel property.
Get restrictToFillLevel property.
Set restrictToFillLevel property.
Get roundDigits property.
Set roundDigits property.
Get showFillLevel property.
Set showFillLevel property.
Get the #GtkAdjustment which is the “model” object for #GtkRange. See gtk.range.Range.setAdjustment for details. The return value does not have a reference added, so should not be unreferenced.
Gets the current position of the fill level indicator.
Gets the value set by gtk.range.Range.setFlippable.
Gets the value set by gtk.range.Range.setInverted.
Gets the sensitivity policy for the stepper that points to the 'lower' end of the GtkRange’s adjustment.
This function is useful mainly for #GtkRange subclasses.
This function returns the area that contains the range’s trough and its steppers, in widget->window coordinates.
Gets whether the range is restricted to the fill level.
Gets the number of digits to round the value to when it changes. See #GtkRange::change-value.
Gets whether the range displays the fill level graphically.
This function returns sliders range along the long dimension, in widget->window coordinates.
This function is useful mainly for #GtkRange subclasses.
Gets the sensitivity policy for the stepper that points to the 'upper' end of the GtkRange’s adjustment.
Gets the current value of the range.
Sets the adjustment to be used as the “model” object for this range widget. The adjustment indicates the current range value, the minimum and maximum range values, the step/page increments used for keybindings and scrolling, and the page size. The page size is normally 0 for #GtkScale and nonzero for #GtkScrollbar, and indicates the size of the visible area of the widget being scrolled. The page size affects the size of the scrollbar slider.
Set the new position of the fill level indicator.
If a range is flippable, it will switch its direction if it is horizontal and its direction is gtk.types.TextDirection.Rtl.
Sets the step and page sizes for the range. The step size is used when the user clicks the #GtkScrollbar arrows or moves #GtkScale via arrow keys. The page size is used for example when moving via Page Up or Page Down keys.
Ranges normally move from lower to higher values as the slider moves from top to bottom or left to right. Inverted ranges have higher values at the top or on the right rather than on the bottom or left.
Sets the sensitivity policy for the stepper that points to the 'lower' end of the GtkRange’s adjustment.
Sets the minimum size of the range’s slider.
Sets the allowable values in the #GtkRange, and clamps the range value to be between min and max. (If the range has a non-zero page size, it is clamped between min and max - page-size.)
Sets whether the slider is restricted to the fill level. See gtk.range.Range.setFillLevel for a general description of the fill level concept.
Sets the number of digits to round the value to when it changes. See #GtkRange::change-value.
Sets whether a graphical fill level is show on the trough. See gtk.range.Range.setFillLevel for a general description of the fill level concept.
Sets whether the range’s slider has a fixed size, or a size that depends on its adjustment’s page size.
Sets the sensitivity policy for the stepper that points to the 'upper' end of the GtkRange’s adjustment.
Sets the current value of the range; if the value is outside the minimum or maximum range values, it will be clamped to fit inside them. The range emits the #GtkRange::value-changed signal if the value changes.
Connect to AdjustBounds signal.
Connect to ChangeValue signal.
Connect to MoveSlider signal.
Connect to ValueChanged signal.
The #GtkScrollbar widget is a horizontal or vertical scrollbar, depending on the value of the #GtkOrientable:orientation property.
Its position and movement are controlled by the adjustment that is passed to or created by gtk.scrollbar.Scrollbar.new_. See #GtkAdjustment for more details. The #GtkAdjustment:value field sets the position of the thumb and must be between #GtkAdjustment:lower and #GtkAdjustment:upper - #GtkAdjustment:page-size. The #GtkAdjustment:page-size represents the size of the visible scrollable area. The fields #GtkAdjustment:step-increment and #GtkAdjustment:page-increment fields are added to or subtracted from the #GtkAdjustment:value when the user asks to move by a step (using e.g. the cursor arrow keys or, if present, the stepper buttons) or by a page (using e.g. the Page Down/Up keys).
CSS nodes
scrollbar[.fine-tune] ╰── contents ├── [button.up] ├── [button.down] ├── trough │ ╰── slider ├── [button.up] ╰── [button.down]GtkScrollbar has a main CSS node with name scrollbar and a subnode for its contents, with subnodes named trough and slider.
The main node gets the style class .fine-tune added when the scrollbar is in 'fine-tuning' mode.
If steppers are enabled, they are represented by up to four additional subnodes with name button. These get the style classes .up and .down to indicate in which direction they are moving.
Other style classes that may be added to scrollbars inside #GtkScrolledWindow include the positional classes (.left, .right, .top, .bottom) and style classes related to overlay scrolling (.overlay-indicator, .dragging, .hovering).