class

Godot::Range

Inherits Godot::Control < Godot::CanvasItem < Godot::Node < Godot::Object < Reference < Object

Base class for numeric control elements (sliders, progress bars, spinboxes).

Constructors

new(min : Number = 0.0, max : Number = 100.0, step : Float64 = 1.0)
Source
new(crystal_range : ::Range(Number, Number), step : Number = 1.0)

Type cohesion: Initialize from a Crystal Range

Source
new(pointer : Pointer(Void) = Pointer(Void).null)
Source

Instance methods

allow_greater

Property allow_greater getter

Source
allow_greater=(val)

Property allow_greater setter

Source
allow_greater?
Source
allow_lesser

Property allow_lesser getter

Source
allow_lesser=(val)

Property allow_lesser setter

Source
allow_lesser?
Source
exp_edit

Property exp_edit getter

Source
exp_edit=(val)

Property exp_edit setter

Source
exp_edit?
Source
get_as_ratio
Source
get_max
Source
get_min
Source
get_page
Source
get_step
Source
get_value
Source
in_range?(val : Number) : Bool
Source
includes?(val : Number) : Bool

Type cohesion: Check if a value falls within the Range bounds

Source
is_greater_allowed
Source
is_lesser_allowed
Source
is_ratio_exp
Source
is_using_rounded_values
Source
max_value
Source
max_value=(max_value : Float64)
Source
min_value
Source
min_value=(min_value : Float64)
Source
page
Source
page=(page : Float64)
Source
range=(crystal_range : ::Range(Number, Number))

Type cohesion: Set bounds using a Crystal Range (e.g. control.range = 0..100)

Source
ratio
Source
rounded

Property rounded getter

Source
rounded=(val)

Property rounded setter

Source
rounded?
Source
set_allow_greater(allow : Bool) : Void
Source
set_allow_lesser(allow : Bool) : Void
Source
set_as_ratio(value : Float64) : Void
Source
set_exp_ratio(enabled : Bool) : Void
Source
set_max(maximum : Float64) : Void
Source
set_min(minimum : Float64) : Void
Source
set_page(pagesize : Float64) : Void
Source
set_step(step : Float64) : Void
Source
set_use_rounded_values(enabled : Bool) : Void
Source
set_value(value : Float64) : Void
Source
set_value(val : Number) : Void
Source
set_value_no_signal(value : Float64) : Void
Source
share(with_val : Node) : Void
Source
step
Source
step=(step : Float64)
Source
to_range

Type cohesion: Read bounds as a Crystal Range

Source
unshare
Source
value
Source
value=(value : Float64)
Source
value=(val : Number)
Source