[813:7] extends: object
Generated low-level callback wrapper for GIR callback value-changed.
RangeValuechangedCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[883:14] static extends: object
Generated metadata helpers for Range class surfaces.
properties ()
Returns property metadata for
Range.
A list.signals ()
Returns signal metadata for
Range.
A list.[671:7] extends: object
Generated low-level callback wrapper for GIR callback change-value.
RangeChangevalueCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, scroll, value, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[742:7] extends: object
Generated low-level callback wrapper for GIR callback move-slider.
RangeMovesliderCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, step, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[601:7] extends: object
Generated low-level callback wrapper for GIR callback adjust-bounds.
RangeAdjustboundsCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (nativeSelf, value, nativeUserData)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[20:7] extends: object
Base class for widgets which visualize an adjustment. Widgets that are
derived from GtkRange include [class@Gtk.Scale] and [class@Gtk.Scrollbar].
Apart from signals for monitoring the parameters of the adjustment,
GtkRange provides properties and methods for setting a “fill level” on
range widgets. See [method@Gtk.Range.set_fill_level]. # Shortcuts and
Gestures The GtkRange slider is draggable. Holding the Shift key
while dragging, or initiating the drag with a long-press will enable the
fine-tuning mode.
Range (Handle = null)
Creates a new
Rangeby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asWidget ()
Wraps this handle as
Widget.
A Widget object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asAccessibleRange ()
Wraps this handle as
AccessibleRange.
A AccessibleRange object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.asOrientable ()
Wraps this handle as
Orientable.
A Orientable object.connectSignal (string Name, CallbackObj)
Connects one generated callback wrapper to a named signal.
Name is the signal name.CallbackObj is the generated callback wrapper to connect.The connected handler id.disconnectSignalHandler (int HandlerId)
Disconnects one retained signal handler id.
HandlerId is the signal handler id to disconnect.None.setOnAdjustbounds (callback Fn, UserData = null)
Emitted before clamping a value, to give the application a chance to adjust the bounds.
Fn is the Aussom callback.Fn is called with (Range Self, double Value).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnChangevalue (callback Fn, UserData = null)
Emitted when a scroll action is performed on a range. It allows an application to determine the type of scroll event that occurred and the resultant new value. The application can handle the event itself and return %TRUE to prevent further processing. Or, by returning %FALSE, it can pass the event to other handlers until the default GTK handler is reached. The value parameter is unrounded. An application that overrides the ::change-value signal is responsible for clamping the value to the desired number of decimal digits; the default GTK handler clamps the value based on [property@Gtk.Range:round-digits].
Fn is the Aussom callback.Fn is called with (Range Self, string Scroll, double Value).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnMoveslider (callback Fn, UserData = null)
Virtual function that moves the slider. Used for keybindings.
Fn is the Aussom callback.Fn is called with (Range Self, string Step).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.setOnValuechanged (callback Fn, UserData = null)
Emitted when the range value changes.
Fn is the Aussom callback.Fn is called with (Range Self).UserData is retained and passed through to the generated callback wrapper when provided.The connected handler id.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setAdjustment (object Value)
The adjustment that is controlled by the range.
Value is the new property value.None.setFilllevel (double Value)
The fill level (e.g. prebuffering of a network stream).
Value is the new property value.None.setInverted (bool Value)
If %TRUE, the direction in which the slider moves is inverted.
Value is the new property value.None.setRestricttofilllevel (bool Value)
Controls whether slider movement is restricted to an upper boundary set by the fill level.
Value is the new property value.None.setRounddigits (int Value)
The number of digits to round the value to when it changes. See [signal@Gtk.Range::change-value].
Value is the new property value.None.setShowfilllevel (bool Value)
Controls whether fill level indicator graphics are displayed on the trough.
Value is the new property value.None.get_adjustment ()
Get the adjustment which is the “model” object for
GtkRange.
get_fill_level ()
Gets the current position of the fill level indicator.
get_flippable ()
Gets whether the
GtkRangerespects text direction. See [method@Gtk.Range.set_flippable].
get_inverted ()
Gets whether the range is inverted. See [method@Gtk.Range.set_inverted].
get_restrict_to_fill_level ()
Gets whether the range is restricted to the fill level.
get_round_digits ()
Gets the number of digits to round the value to when it changes. See [signal@Gtk.Range::change-value].
get_show_fill_level ()
Gets whether the range displays the fill level graphically.
get_slider_size_fixed ()
This function is useful mainly for
GtkRangesubclasses. See [method@Gtk.Range.set_slider_size_fixed].
get_value ()
Gets the current value of the range.
set_adjustment (object adjustment)
Sets the adjustment to be used as the “model” object for the
GtkRangeThe adjustment indicates the current range value, the minimum and maximum range values, the step/page increments used for keybindings and scrolling, and the page size. The page size is normally 0 forGtkScaleand nonzero forGtkScrollbar, and indicates the size of the visible area of the widget being scrolled. The page size affects the size of the scrollbar slider.
adjustment is a GtkAdjustment.None.set_fill_level (double fill_level)
Set the new position of the fill level indicator. The “fill level” is probably best described by its most prominent use case, which is an indicator for the amount of pre-buffering in a streaming media player. In that use case, the value of the range would indicate the current play position, and the fill level would be the position up to which the file/stream has been downloaded. This amount of prebuffering can be displayed on the range’s trough and is themeable separately from the trough. To enable fill level display, use [method@Gtk.Range.set_show_fill_level]. The range defaults to not showing the fill level. Additionally, it’s possible to restrict the range’s slider position to values which are smaller than the fill level. This is controlled by [method@Gtk.Range.set_restrict_to_fill_level] and is by default enabled.
fill_level is the new position of the fill level indicator.None.set_flippable (bool flippable)
Sets whether the
GtkRangerespects text direction. If a range is flippable, it will switch its direction if it is horizontal and its direction is %GTK_TEXT_DIR_RTL. See [method@Gtk.Widget.get_direction].
flippable is %TRUE to make the range flippable.None.set_increments (double step, double page)
Sets the step and page sizes for the range. The step size is used when the user clicks the
GtkScrollbararrows or moves aGtkScalevia arrow keys. The page size is used for example when moving via Page Up or Page Down keys.
step is step size.page is page size.None.set_inverted (bool setting)
Sets whether to invert the range. Ranges 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 left.
setting is %TRUE to invert the range.None.set_range (double min, double max)
Sets the allowable values in the
GtkRange. The range value is clamped to be between @min and @max. (If the range has a non-zero page size, it is clamped between @min and @max - page-size.)
min is minimum range value.max is maximum range value.None.set_restrict_to_fill_level (bool restrict_to_fill_level)
Sets whether the slider is restricted to the fill level. See [method@Gtk.Range.set_fill_level] for a general description of the fill level concept.
restrict_to_fill_level is Whether the fill level restricts slider movement..None.set_round_digits (int round_digits)
Sets the number of digits to round the value to when it changes. See [signal@Gtk.Range::change-value].
round_digits is the precision in digits, or -1.None.set_show_fill_level (bool show_fill_level)
Sets whether a graphical fill level is show on the trough. See [method@Gtk.Range.set_fill_level] for a general description of the fill level concept.
show_fill_level is Whether a fill level indicator graphics is shown..None.set_slider_size_fixed (bool size_fixed)
Sets whether the range’s slider has a fixed size, or a size that depends on its adjustment’s page size. This function is useful mainly for
GtkRangesubclasses.
size_fixed is %TRUE to make the slider size constant.None.set_value (double value)
Sets 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 [signal@Gtk.Range::value-changed] signal if the value changes.
value is new value of the range.None.