gtk.adjustment

Module for [Adjustment] class

Types 3

The #GtkAdjustment object represents a value which has an associated lower and upper bound, together with step and page increments, and a page size. It is used within several GTK+ widgets, including #GtkSpinButton, #GtkViewport, and #GtkRange (which is a base class for #GtkScrollbar and #GtkScale).

The #GtkAdjustment object does not update the value itself. Instead it is left up to the owner of the #GtkAdjustment to control the value.

Methods
GType _gType() @property
Adjustment self()Returns `this`, for use in `with` statements.
AdjustmentGidBuilder builder()Get builder for [gtk.adjustment.Adjustment] Returns: New builder object
double lower() @propertyGet `lower` property. Returns: The minimum value of the adjustment.
void 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.
double pageSize() @propertyGet `pageSize` property. Returns: The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g. in a #Gt...
void pageSize(double propval) @propertySet `pageSize` property. Params: propval = The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g....
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.
double upper() @propertyGet `upper` property. Returns: The maximum value of the adjustment. Note that values will be restricted by `upper - page-size` if the page-size property is nonzero.
void upper(double propval) @propertySet `upper` property. Params: propval = The maximum value of the adjustment. Note that values will be restricted by `upper - page-size` if the page-size property is nonzero.
double value() @propertyGet `value` property. Returns: The value of the adjustment.
void value(double propval) @propertySet `value` property. Params: propval = The value of the adjustment.
void changed()Emits a #GtkAdjustment::changed signal from the #GtkAdjustment. This is typically called by the owner of the #GtkAdjustment after it has changed any of the #GtkAdjustment properties other than the ...
void clampPage(double lower, double upper)Updates the #GtkAdjustment:value property to ensure that the range between lower and upper is in the current page (i.e. between #GtkAdjustment:value and #GtkAdjustment:value + #GtkAdjustment:page-s...
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 adjustment
double getMinimumIncrement()Gets the smaller of step increment and page increment. Returns: the minimum increment of adjustment
double getPageIncrement()Retrieves the page increment of the adjustment. Returns: The current page increment of the adjustment
double getPageSize()Retrieves the page size of the adjustment. Returns: The current page size of the adjustment
double 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 adjustment
double getValue()Gets the current value of the adjustment. See [gtk.adjustment.Adjustment.setValue]. Returns: The current value of the adjustment
void 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 #GtkAdjustment value. The value is clamped to lie between #GtkAdjustment:lower and #GtkAdjustment:upper.
void valueChanged()Emits a #GtkAdjustment::value-changed signal from the #GtkAdjustment. This is typically called by the owner of the #GtkAdjustment after it has changed the #GtkAdjustment:value property.
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.
Constructors
this(void * ptr, Flag!"Take" take)
this(double value, double lower, double upper, double stepIncrement, double pageIncrement, double pageSize)Creates a new #GtkAdjustment.
Methods
T lower(double propval)Set `lower` property. Params: propval = The minimum value of the adjustment. Returns: Builder instance for fluent chaining
T pageIncrement(double propval)Set `pageIncrement` property. Params: propval = The page increment of the adjustment. Returns: Builder instance for fluent chaining
T pageSize(double propval)Set `pageSize` property. Params: propval = The page size of the adjustment. Note that the page-size is irrelevant and should be set to zero if the adjustment is used for a simple scalar value, e.g....
T stepIncrement(double propval)Set `stepIncrement` property. Params: propval = The step increment of the adjustment. Returns: Builder instance for fluent chaining
T upper(double propval)Set `upper` property. Params: propval = The maximum value of the adjustment. Note that values will be restricted by `upper - page-size` if the page-size property is nonzero. Returns: Builder instan...
T value(double propval)Set `value` property. Params: propval = The value of the adjustment. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.adjustment.Adjustment]

Methods