VScale

The #GtkVScale widget is used to allow the user to select a value using a vertical slider. To create one, use gtk.hscale.HScale.newWithRange.

The position to show the current value, and the number of decimal places shown can be set using the parent #GtkScale class’s functions.

GtkVScale has been deprecated, use #GtkScale instead.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.adjustment.Adjustment adjustment)

Creates a new #GtkVScale.

Members

Functions

self
VScale self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
VScaleGidBuilder builder()

Get builder for gtk.vscale.VScale

newWithRange
gtk.vscale.VScale newWithRange(double min, double max, double step)

Creates a new vertical scale widget that lets the user input a number between min and max (including min and max) with the increment step. step must be nonzero; it’s the distance the slider moves when using the arrow keys to adjust the scale value.

Inherited Members

From Scale

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Scale self()

Returns this, for use in with statements.

builder
ScaleGidBuilder builder()

Get builder for gtk.scale.Scale

digits
int digits [@property getter]
digits
int digits [@property setter]
drawValue
bool drawValue [@property getter]
drawValue
bool drawValue [@property setter]
hasOrigin
bool hasOrigin [@property getter]
hasOrigin
bool hasOrigin [@property setter]
valuePos
gtk.types.PositionType valuePos [@property getter]
valuePos
gtk.types.PositionType valuePos [@property setter]
newWithRange
gtk.scale.Scale newWithRange(gtk.types.Orientation orientation, double min, double max, double step)

Creates a new scale widget with the given orientation that lets the user input a number between min and max (including min and max) with the increment step. step must be nonzero; it’s the distance the slider moves when using the arrow keys to adjust the scale value.

addMark
void addMark(double value, gtk.types.PositionType position, string markup)

Adds a mark at value.

clearMarks
void clearMarks()

Removes any marks that have been added with gtk.scale.Scale.addMark.

getDigits
int getDigits()

Gets the number of decimal places that are displayed in the value.

getDrawValue
bool getDrawValue()

Returns whether the current value is displayed as a string next to the slider.

getHasOrigin
bool getHasOrigin()

Returns whether the scale has an origin.

getLayout
pango.layout.Layout getLayout()

Gets the #PangoLayout used to display the scale. The returned object is owned by the scale so does not need to be freed by the caller.

getLayoutOffsets
void getLayoutOffsets(int x, int y)

Obtains the coordinates where the scale will draw the #PangoLayout representing the text in the scale. Remember when using the #PangoLayout function you need to convert to and from pixels using PANGO_PIXELS() or #PANGO_SCALE.

getValuePos
gtk.types.PositionType getValuePos()

Gets the position in which the current value is displayed.

setDigits
void setDigits(int digits)

Sets the number of decimal places that are displayed in the value. Also causes the value of the adjustment to be rounded to this number of digits, so the retrieved value matches the displayed one, if #GtkScale:draw-value is true when the value changes. If you want to enforce rounding the value when #GtkScale:draw-value is false, you can set #GtkRange:round-digits instead.

setDrawValue
void setDrawValue(bool drawValue)

Specifies whether the current value is displayed as a string next to the slider.

setHasOrigin
void setHasOrigin(bool hasOrigin)

If #GtkScale:has-origin is set to true (the default), the scale will highlight the part of the trough between the origin (bottom or left side) and the current value.

setValuePos
void setValuePos(gtk.types.PositionType pos)

Sets the position in which the current value is displayed.

connectFormatValue
gulong connectFormatValue(T callback, Flag!"After" after)

Connect to FormatValue signal.