Range
Object Hierarchy:
Gtk.Range
Gtk.Range
Gtk.Range
Gtk.Widget
Gtk.Widget
Gtk.Widget->Gtk.Range
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Gtk.Range
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Gtk.Range
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Gtk.Range
Gtk.ConstraintTarget->Gtk.Widget
Gtk.Orientable
Gtk.Orientable
Gtk.Orientable->Gtk.Range
Description:
[
CCode ( type_id =
"gtk_range_get_type ()" ) ]
public class Range :
Widget ,
Accessible ,
Buildable ,
ConstraintTarget ,
Orientable
`GtkRange` is the common base class for widgets which visualize an adjustment.
Widgets that are derived from `GtkRange` include [[email protected] ] and [[email protected] ].
Apart from signals for monitoring the parameters of the adjustment, `GtkRange` provides properties and methods for setting a “fill
level” on range widgets. See [[email protected] _fill_level].
Content:
Properties:
public Adjustment adjustment { get ; set construct ; }
The adjustment that is controlled by the range.
public double fill_level { get ; set ; }
The fill level (e.
public bool inverted { get ; set ; }
If true , the direction in which the
slider moves is inverted.
public bool restrict_to_fill_level { get ; set ; }
Controls whether slider movement is restricted to an upper boundary
set by the fill level.
public int round_digits { get ; set ; }
The number of digits to round the value to when it changes.
public bool show_fill_level { get ; set ; }
Controls whether fill level indicator graphics are displayed on the
trough.
Creation methods:
Methods:
public unowned Adjustment get_adjustment ()
Get the adjustment which is the “model” object for `GtkRange`.
public double get_fill_level ()
Gets the current position of the fill level indicator.
public bool get_flippable ()
Gets whether the `GtkRange` respects text direction.
public bool get_inverted ()
Gets whether the range is inverted.
public virtual Border get_range_border ()
public Rectangle get_range_rect ()
This function returns the area that contains the range’s trough, in
coordinates relative to this 's origin.
public bool get_restrict_to_fill_level ()
Gets whether the range is restricted to the fill level.
public int get_round_digits ()
Gets the number of digits to round the value to when it changes.
public bool get_show_fill_level ()
Gets whether the range displays the fill level graphically.
public void get_slider_range (out int slider_start, out int slider_end)
This function returns sliders range along the long dimension, in
widget->window coordinates.
public bool get_slider_size_fixed ()
This function is useful mainly for `GtkRange` subclasses.
public double get_value ()
Gets the current value of the range.
public void set_adjustment (Adjustment adjustment)
Sets the adjustment to be used as the “model” object for the
`GtkRange`
public void set_fill_level (double fill_level)
Set the new position of the fill level indicator.
public void set_flippable (bool flippable)
Sets whether the `GtkRange` respects text direction.
public void set_increments (double step, double page)
Sets the step and page sizes for the range.
public void set_inverted (bool setting)
Sets whether to invert the range.
public void set_range (double min, double max)
Sets the allowable values in the `GtkRange`.
public void set_restrict_to_fill_level (bool restrict_to_fill_level)
Sets whether the slider is restricted to the fill level.
public void set_round_digits (int round_digits)
Sets the number of digits to round the value to when it changes.
public void set_show_fill_level (bool show_fill_level)
Sets whether a graphical fill level is show on the trough.
public void 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.
public void set_value (double value)
Sets the current value of the range.
Signals:
public virtual signal void adjust_bounds (double new_value)
Emitted before clamping a value, to give the application a chance to
adjust the bounds.
public virtual signal bool change_value (ScrollType scroll, double new_value)
Emitted when a scroll action is performed on a range.
public virtual signal void move_slider (ScrollType scroll)
Virtual function that moves the slider.
public virtual signal void value_changed ()
Emitted when the range value changes.
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable
All known members inherited from interface Gtk.Orientable