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: <Error class: unknown class>, lower: <Error class: unknown class>, upper: <Error class: unknown class>, stepIncrement: <Error class: unknown class>, pageIncrement: <Error class: unknown class>, pageSize: <Error class: unknown class>)

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: <Error class: unknown class>

The minimum value of the adjustment.

Link copied to clipboard
open var pageIncrement: <Error class: unknown class>

The page increment of the adjustment.

Link copied to clipboard
open var pageSize: <Error class: unknown class>

The page size of the adjustment.

Link copied to clipboard
open var stepIncrement: <Error class: unknown class>

The step increment of the adjustment.

Link copied to clipboard
open var upper: <Error class: unknown class>

The maximum value of the adjustment.

Link copied to clipboard
open var value: <Error class: unknown class>

The value of the adjustment.

Functions

Link copied to clipboard
open fun clampPage(lower: <Error class: unknown class>, upper: <Error class: unknown class>)

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: <Error class: unknown class>, lower: <Error class: unknown class>, upper: <Error class: unknown class>, stepIncrement: <Error class: unknown class>, pageIncrement: <Error class: unknown class>, pageSize: <Error class: unknown class>)

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 getMinimumIncrement(): <Error class: unknown class>

Gets the smaller of step increment and page increment.