Adjustment

gtk.adjustment.Adjustment is a model for a numeric value.

The gtk.adjustment.Adjustment 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 gtk.spin_button.SpinButton, gtk.viewport.Viewport, gtk.scrollbar.Scrollbar and gtk.scale.Scale.

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

Constructors

this
this(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)

Creates a new gtk.adjustment.Adjustment.

Members

Functions

clampPage
void clampPage(double lower, double upper)

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

configure
void configure(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)

Sets all properties of the adjustment at once.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.

connectValueChanged
ulong connectValueChanged(T callback, Flag!"After" after)

Connect to ValueChanged signal.

getLower
double getLower()

Retrieves the minimum value of the adjustment.

getMinimumIncrement
double getMinimumIncrement()

Gets the smaller of step increment and page increment.

getPageIncrement
double getPageIncrement()

Retrieves the page increment of the adjustment.

getPageSize
double getPageSize()

Retrieves the page size of the adjustment.

getStepIncrement
double getStepIncrement()

Retrieves the step increment of the adjustment.

getUpper
double getUpper()

Retrieves the maximum value of the adjustment.

getValue
double getValue()

Gets the current value of the adjustment.

setLower
void setLower(double lower)

Sets the minimum value of the adjustment.

setPageIncrement
void setPageIncrement(double pageIncrement)

Sets the page increment of the adjustment.

setPageSize
void setPageSize(double pageSize)

Sets the page size of the adjustment.

setStepIncrement
void setStepIncrement(double stepIncrement)

Sets the step increment of the adjustment.

setUpper
void setUpper(double upper)

Sets the maximum value of the adjustment.

setValue
void setValue(double value)

Sets the gtk.adjustment.Adjustment value.