gtk.adjustment

Module for [Adjustment] class

Types 3

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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Adjustment self() nothrowReturns `this`, for use in `with` statements.
AdjustmentGidBuilder builder() static nothrowGet builder for [gtk.adjustment.Adjustment] Returns: New builder object
double lower() @property nothrowGet `lower` property. Returns: The minimum value of the adjustment.
void lower(double propval) @property nothrowSet `lower` property. Params: propval = The minimum value of the adjustment.
double pageIncrement() @property nothrowGet `pageIncrement` property. Returns: The page increment of the adjustment.
void pageIncrement(double propval) @property nothrowSet `pageIncrement` property. Params: propval = The page increment of the adjustment.
double pageSize() @property nothrowGet `pageSize` property. Returns: The page size of the adjustment.
void pageSize(double propval) @property nothrowSet `pageSize` property. Params: propval = The page size of the adjustment.
double stepIncrement() @property nothrowGet `stepIncrement` property. Returns: The step increment of the adjustment.
void stepIncrement(double propval) @property nothrowSet `stepIncrement` property. Params: propval = The step increment of the adjustment.
double upper() @property nothrowGet `upper` property. Returns: The maximum value of the adjustment.
void upper(double propval) @property nothrowSet `upper` property. Params: propval = The maximum value of the adjustment.
double value() @property nothrowGet `value` property. Returns: The value of the adjustment.
void value(double propval) @property nothrowSet `value` property. Params: propval = The value of the adjustment.
void clampPage(double lower, double upper) nothrowUpdates the value property to ensure that the range between lower and upper is in the current page.
void configure(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize) nothrowSets all properties of the adjustment at once.
double getLower() nothrowRetrieves the minimum value of the adjustment. Returns: The current minimum value of the adjustment
double getMinimumIncrement() nothrowGets the smaller of step increment and page increment. Returns: the minimum increment of adjustment
double getPageIncrement() nothrowRetrieves the page increment of the adjustment. Returns: The current page increment of the adjustment
double getPageSize() nothrowRetrieves the page size of the adjustment. Returns: The current page size of the adjustment
double getStepIncrement() nothrowRetrieves the step increment of the adjustment. Returns: The current step increment of the adjustment.
double getUpper() nothrowRetrieves the maximum value of the adjustment. Returns: The current maximum value of the adjustment
double getValue() nothrowGets the current value of the adjustment. Returns: The current value of the adjustment
void setLower(double lower) nothrowSets the minimum value of the adjustment.
void setPageIncrement(double pageIncrement) nothrowSets the page increment of the adjustment.
void setPageSize(double pageSize) nothrowSets the page size of the adjustment.
void setStepIncrement(double stepIncrement) nothrowSets the step increment of the adjustment.
void setUpper(double upper) nothrowSets the maximum value of the adjustment.
void setValue(double value) nothrowSets the [gtk.adjustment.Adjustment] value.
gulong connectChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.adjustment.Adjustment))) && Parameters!T.length < 2) nothrowConnect to `Changed` signal.
gulong connectValueChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.adjustment.Adjustment))) && Parameters!T.length < 2) nothrowConnect to `ValueChanged` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)Creates a new [gtk.adjustment.Adjustment].

Fluent builder implementation template for gtk.adjustment.Adjustment

Methods
T lower(double propval) nothrowSet `lower` property. Params: propval = The minimum value of the adjustment. Returns: Builder instance for fluent chaining
T pageIncrement(double propval) nothrowSet `pageIncrement` property. Params: propval = The page increment of the adjustment. Returns: Builder instance for fluent chaining
T pageSize(double propval) nothrowSet `pageSize` property. Params: propval = The page size of the adjustment.
T stepIncrement(double propval) nothrowSet `stepIncrement` property. Params: propval = The step increment of the adjustment. Returns: Builder instance for fluent chaining
T upper(double propval) nothrowSet `upper` property. Params: propval = The maximum value of the adjustment.
T value(double propval) nothrowSet `value` property. Params: propval = The value of the adjustment. Returns: Builder instance for fluent chaining

Fluent builder for gtk.adjustment.Adjustment

Methods
Adjustment build() nothrowCreate object from builder. Returns: New object