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
Adjustment self()Returns `this`, for use in `with` statements.AdjustmentGidBuilder builder()Get builder for [gtk.adjustment.Adjustment] Returns: New builder objectvoid lower(double propval) @propertySet `lower` property. Params: propval = The minimum value of the adjustment.double pageIncrement() @propertyGet `pageIncrement` property. Returns: The page increment of the adjustment.void pageIncrement(double propval) @propertySet `pageIncrement` property. Params: propval = The page increment of the adjustment.void pageSize(double propval) @propertySet `pageSize` property. Params: propval = The page size of the adjustment.double stepIncrement() @propertyGet `stepIncrement` property. Returns: The step increment of the adjustment.void stepIncrement(double propval) @propertySet `stepIncrement` property. Params: propval = The step increment of the adjustment.void upper(double propval) @propertySet `upper` property. Params: propval = The maximum value of the adjustment.void value(double propval) @propertySet `value` property. Params: propval = The value of the adjustment.void clampPage(double lower, double upper)Updates 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)Sets all properties of the adjustment at once.double getLower()Retrieves the minimum value of the adjustment. Returns: The current minimum value of the adjustmentdouble getMinimumIncrement()Gets the smaller of step increment and page increment. Returns: the minimum increment of adjustmentdouble getPageIncrement()Retrieves the page increment of the adjustment. Returns: The current page increment of the adjustmentdouble getPageSize()Retrieves the page size of the adjustment. Returns: The current page size of the adjustmentdouble getStepIncrement()Retrieves the step increment of the adjustment. Returns: The current step increment of the adjustment.double getUpper()Retrieves the maximum value of the adjustment. Returns: The current maximum value of the adjustmentdouble getValue()Gets the current value of the adjustment. Returns: The current value of the adjustmentvoid setLower(double lower)Sets the minimum value of the adjustment.void setPageIncrement(double pageIncrement)Sets the page increment of the adjustment.void setPageSize(double pageSize)Sets the page size of the adjustment.void setStepIncrement(double stepIncrement)Sets the step increment of the adjustment.void setUpper(double upper)Sets the maximum value of the adjustment.void setValue(double value)Sets 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)Connect 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)Connect to `ValueChanged` signal.Methods
T lower(double propval)Set `lower` property. Params: propval = The minimum value of the adjustment. Returns: Builder instance for fluent chainingT pageIncrement(double propval)Set `pageIncrement` property. Params: propval = The page increment of the adjustment. Returns: Builder instance for fluent chainingT pageSize(double propval)Set `pageSize` property. Params: propval = The page size of the adjustment.T stepIncrement(double propval)Set `stepIncrement` property. Params: propval = The step increment of the adjustment. Returns: Builder instance for fluent chainingT upper(double propval)Set `upper` property. Params: propval = The maximum value of the adjustment.T value(double propval)Set `value` property. Params: propval = The value of the adjustment. Returns: Builder instance for fluent chainingFluent builder for [gtk.adjustment.Adjustment]
Methods