GtkRange
A base class for widgets that visualize an adjustment.
Object Hierarchy
Direct Subclasses
Description
A base class for widgets that visualize an adjustment. It provides the base functionality for GtkScrollbar and GtkScale.
Methods
get_adjustment() Â Returns the adjustment. get_inverted() Â If the range is inverted. get_update_policy() Â Returns the setting when updates signals are sent. get_value() Â Returns the current adjustment value. set_adjustment() Â Sets the adjustment. set_increments() Â Sets the step and page sizes for the range. set_inverted() Â Sets the inverted setting. set_range() Â Sets the minimum and maximum values. set_update_policy() Â Sets the update policy. set_value() Â Sets the current value.
Properties
Use get_property and set_property methods to access these.
adjustment: Â "model" for the range object. inverted: Â Invert direction slider. update-policy: Â How the range should be updated.
Style Properties
Can be set with rc files/strings only.
arrow-displacement-x: Â How far to move the x direction when the button is depressed. arrow-displacement-y: Â How far to move the y direction when the button is depressed. slider-width: Â Width of scrollbar or scale thumb. stepper-size: Â Length of step buttons at ends. stepper-spacing: Â Spacing between step buttons and thumb. trough-border: Â Spacing between thumb/steppers and outer trough bevel.
Signals
"adjust-bounds" Â The range's minimum/maximum values have changed. "change-value" Â Check value before it is set. "move-slider" Â Virtual function that moves the slider. "value-changed" Â Emitted when the range value changes.