gtk.range
Module for [Range] class
Types 3
#GtkRange is the common base class for widgets which visualize an adjustment, e.g #GtkScale or #GtkScrollbar.
Apart from signals for monitoring the parameters of the adjustment, #GtkRange provides properties and methods for influencing the sensitivity of the “steppers”. It also provides properties and methods for setting a “fill level” on range widgets. See gtk.range.Range.setFillLevel.
Methods
RangeGidBuilder builder() static nothrowGet builder for [gtk.range.Range] Returns: New builder objectdouble fillLevel() @property nothrowGet `fillLevel` property. Returns: The fill level (e.g. prebuffering of a network stream). See [gtk.range.Range.setFillLevel].void fillLevel(double propval) @property nothrowSet `fillLevel` property. Params: propval = The fill level (e.g. prebuffering of a network stream). See [gtk.range.Range.setFillLevel].bool restrictToFillLevel() @property nothrowGet `restrictToFillLevel` property. Returns: The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level. See [gtk.range.Range.setR...void restrictToFillLevel(bool propval) @property nothrowSet `restrictToFillLevel` property. Params: propval = The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level. See [gtk.range.R...int roundDigits() @property nothrowGet `roundDigits` property. Returns: The number of digits to round the value to when it changes, or -1. See #GtkRange::change-value.void roundDigits(int propval) @property nothrowSet `roundDigits` property. Params: propval = The number of digits to round the value to when it changes, or -1. See #GtkRange::change-value.bool showFillLevel() @property nothrowGet `showFillLevel` property. Returns: The show-fill-level property controls whether fill level indicator graphics are displayed on the trough. See [gtk.range.Range.setShowFillLevel].void showFillLevel(bool propval) @property nothrowSet `showFillLevel` property. Params: propval = The show-fill-level property controls whether fill level indicator graphics are displayed on the trough. See [gtk.range.Range.setShowFillLevel].gtk.adjustment.Adjustment getAdjustment() nothrowGet the #GtkAdjustment which is the “model” object for #GtkRange. See [gtk.range.Range.setAdjustment] for details. The return value does not have a reference added, so should not be unreference...double getFillLevel() nothrowGets the current position of the fill level indicator. Returns: The current fill levelbool getFlippable() nothrowGets the value set by [gtk.range.Range.setFlippable]. Returns: true if the range is flippablebool getInverted() nothrowGets the value set by [gtk.range.Range.setInverted]. Returns: true if the range is invertedgtk.types.SensitivityType getLowerStepperSensitivity() nothrowGets the sensitivity policy for the stepper that points to the 'lower' end of the GtkRange’s adjustment. Returns: The lower stepper’s sensitivity policy.void getRangeRect(out gdk.rectangle.Rectangle rangeRect) nothrowThis function returns the area that contains the range’s trough and its steppers, in widget->window coordinates.bool getRestrictToFillLevel() nothrowGets whether the range is restricted to the fill level. Returns: true if range is restricted to the fill level.int getRoundDigits() nothrowGets the number of digits to round the value to when it changes. See #GtkRange::change-value. Returns: the number of digits to round tobool getShowFillLevel() nothrowGets whether the range displays the fill level graphically. Returns: true if range shows the fill level.void getSliderRange(out int sliderStart, out int sliderEnd) nothrowThis function returns sliders range along the long dimension, in widget->window coordinates.gtk.types.SensitivityType getUpperStepperSensitivity() nothrowGets the sensitivity policy for the stepper that points to the 'upper' end of the GtkRange’s adjustment. Returns: The upper stepper’s sensitivity policy.void setAdjustment(gtk.adjustment.Adjustment adjustment) nothrowSets the adjustment to be used as the “model” object for this range widget. The adjustment indicates the current range value, the minimum and maximum range values, the step/page increments used...void setFlippable(bool flippable) nothrowIf a range is flippable, it will switch its direction if it is horizontal and its direction is [gtk.types.TextDirection.Rtl].void setIncrements(double step, double page) nothrowSets the step and page sizes for the range. The step size is used when the user clicks the #GtkScrollbar arrows or moves #GtkScale via arrow keys. The page size is used for example when moving via ...void setInverted(bool setting) nothrowRanges normally move from lower to higher values as the slider moves from top to bottom or left to right. Inverted ranges have higher values at the top or on the right rather than on the bottom or ...void setLowerStepperSensitivity(gtk.types.SensitivityType sensitivity) nothrowSets the sensitivity policy for the stepper that points to the 'lower' end of the GtkRange’s adjustment.void setRange(double min, double max) nothrowSets the allowable values in the #GtkRange, and clamps the range value to be between min and max. (If the range has a non-zero page size, it is clamped between min and max - page-size.)void setRestrictToFillLevel(bool restrictToFillLevel) nothrowSets whether the slider is restricted to the fill level. See [gtk.range.Range.setFillLevel] for a general description of the fill level concept.void setRoundDigits(int roundDigits) nothrowSets the number of digits to round the value to when it changes. See #GtkRange::change-value.void setShowFillLevel(bool showFillLevel) nothrowSets whether a graphical fill level is show on the trough. See [gtk.range.Range.setFillLevel] for a general description of the fill level concept.void setSliderSizeFixed(bool sizeFixed) nothrowSets whether the range’s slider has a fixed size, or a size that depends on its adjustment’s page size.void setUpperStepperSensitivity(gtk.types.SensitivityType sensitivity) nothrowSets the sensitivity policy for the stepper that points to the 'upper' end of the GtkRange’s adjustment.void setValue(double value) nothrowSets the current value of the range; if the value is outside the minimum or maximum range values, it will be clamped to fit inside them. The range emits the #GtkRange::value-changed signal if the v...gulong connectAdjustBounds(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] == double)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.range.Range)))
&& Parameters!T.length < 3) nothrowConnect to `AdjustBounds` signal.gulong connectChangeValue(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.ScrollType)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.range.Range)))
&& Parameters!T.length < 4) nothrowConnect to `ChangeValue` signal.gulong connectMoveSlider(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.types.ScrollType)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.range.Range)))
&& Parameters!T.length < 3) nothrowConnect to `MoveSlider` 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.range.Range)))
&& Parameters!T.length < 2) nothrowConnect to `ValueChanged` signal.classRangeGidBuilderImpl(T) : gtk.widget.WidgetGidBuilderImpl!T, gtk.orientable.OrientableGidBuilderImpl!T
Fluent builder implementation template for gtk.range.Range
Methods
T adjustment(gtk.adjustment.Adjustment propval) nothrowT fillLevel(double propval) nothrowSet `fillLevel` property. Params: propval = The fill level (e.g. prebuffering of a network stream). See [gtk.range.Range.setFillLevel]. Returns: Builder instance for fluent chainingT inverted(bool propval) nothrowT lowerStepperSensitivity(gtk.types.SensitivityType propval) nothrowT restrictToFillLevel(bool propval) nothrowSet `restrictToFillLevel` property. Params: propval = The restrict-to-fill-level property controls whether slider movement is restricted to an upper boundary set by the fill level. See [gtk.range.R...T roundDigits(int propval) nothrowSet `roundDigits` property. Params: propval = The number of digits to round the value to when it changes, or -1. See #GtkRange::change-value. Returns: Builder instance for fluent chainingT showFillLevel(bool propval) nothrowSet `showFillLevel` property. Params: propval = The show-fill-level property controls whether fill level indicator graphics are displayed on the trough. See [gtk.range.Range.setShowFillLevel]. Retu...T upperStepperSensitivity(gtk.types.SensitivityType propval) nothrowFluent builder for gtk.range.Range