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
AdjustmentGidBuilder builder() static nothrowGet builder for [gtk.adjustment.Adjustment] Returns: New builder objectvoid 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. 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) @property nothrowSet `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() @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. Note that values will be restricted by `upper - page-size` if the page-size property is nonzero.void upper(double propval) @property nothrowSet `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.void value(double propval) @property nothrowSet `value` property. Params: propval = The value of the adjustment.void changed() nothrowEmits 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) nothrowUpdates 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) nothrowSets all properties of the adjustment at once.double getLower() nothrowRetrieves the minimum value of the adjustment. Returns: The current minimum value of the adjustmentdouble getMinimumIncrement() nothrowGets the smaller of step increment and page increment. Returns: the minimum increment of adjustmentdouble getPageIncrement() nothrowRetrieves the page increment of the adjustment. Returns: The current page increment of the adjustmentdouble getPageSize() nothrowRetrieves the page size of the adjustment. Returns: The current page size of the adjustmentdouble 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 adjustmentdouble getValue() nothrowGets the current value of the adjustment. See [gtk.adjustment.Adjustment.setValue]. Returns: The current value of the adjustmentvoid setValue(double value) nothrowSets the #GtkAdjustment value. The value is clamped to lie between #GtkAdjustment:lower and #GtkAdjustment:upper.void valueChanged() nothrowEmits 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) 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.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 chainingT pageIncrement(double propval) nothrowSet `pageIncrement` property. Params: propval = The page increment of the adjustment. Returns: Builder instance for fluent chainingT pageSize(double propval) nothrowSet `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) nothrowSet `stepIncrement` property. Params: propval = The step increment of the adjustment. Returns: Builder instance for fluent chainingT upper(double propval) nothrowSet `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) nothrowSet `value` property. Params: propval = The value of the adjustment. Returns: Builder instance for fluent chainingFluent builder for gtk.adjustment.Adjustment
Methods