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
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.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.void upper(double propval) @property nothrowSet `upper` property. Params: propval = The maximum 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 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. Returns: The current value of the adjustmentgulong 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.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.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