Adjustment
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>>)
Properties
Functions
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
Gets the smaller of step increment and page increment.