Adjustment

open class Adjustment(pointer: <Error class: unknown class><<Error class: unknown class>>)

GtkAdjustment is a model for a numeric value.

The GtkAdjustment has an associated lower and upper bound. It also contains step and page increments, and a page size.

Adjustments are used within several GTK widgets, including class@Gtk.SpinButton, class@Gtk.Viewport, class@Gtk.Scrollbar and class@Gtk.Scale.

The GtkAdjustment object does not update the value itself. Instead it is left up to the owner of the GtkAdjustment to control the value.

Constructors

Link copied to clipboard
constructor(value: Double, lower: Double, upper: Double, stepIncrement: Double, pageIncrement: Double, pageSize: Double)

Creates a new GtkAdjustment.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkAdjustmentPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open var lower: Double

The minimum value of the adjustment.

Link copied to clipboard

The page increment of the adjustment.

Link copied to clipboard
open var pageSize: Double

The page size of the adjustment.

Link copied to clipboard

The step increment of the adjustment.

Link copied to clipboard
open var upper: Double

The maximum value of the adjustment.

Link copied to clipboard
open var value: Double

The value of the adjustment.

Functions

Link copied to clipboard
open fun clampPage(lower: Double, upper: Double)

Updates the value property to ensure that the range between @lower and @upper is in the current page.

Link copied to clipboard
open fun configure(value: Double, lower: Double, upper: Double, stepIncrement: Double, pageIncrement: Double, pageSize: Double)

Sets all properties of the adjustment at once.

Link copied to clipboard
fun connectChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when one or more of the GtkAdjustment properties have been changed.

Link copied to clipboard
fun connectValueChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the value has been changed.

Link copied to clipboard
open fun getLower(): Double

Retrieves the minimum value of the adjustment.

Link copied to clipboard

Gets the smaller of step increment and page increment.

Link copied to clipboard

Retrieves the page increment of the adjustment.

Link copied to clipboard
open fun getPageSize(): Double

Retrieves the page size of the adjustment.

Link copied to clipboard

Retrieves the step increment of the adjustment.

Link copied to clipboard
open fun getUpper(): Double

Retrieves the maximum value of the adjustment.

Link copied to clipboard
open fun getValue(): Double

Gets the current value of the adjustment.

Link copied to clipboard
open fun setLower(lower: Double)

Sets the minimum value of the adjustment.

Link copied to clipboard
open fun setPageIncrement(pageIncrement: Double)

Sets the page increment of the adjustment.

Link copied to clipboard
open fun setPageSize(pageSize: Double)

Sets the page size of the adjustment.

Link copied to clipboard
open fun setStepIncrement(stepIncrement: Double)

Sets the step increment of the adjustment.

Link copied to clipboard
open fun setUpper(upper: Double)

Sets the maximum value of the adjustment.

Link copied to clipboard
open fun setValue(value: Double)

Sets the GtkAdjustment value.