struct Range(B, E)

Overview

Crystal Standard Library Extension: Type cohesion for Crystal Range <-> Godot

Included Modules

Defined in:

libgodot/object.cr

Instance Method Summary

Instance Method Detail

def to_godot_bounds : Tuple(Float64, Float64) #

Converts to float tuple for engine interop


[View source]
def to_godot_hint_string(step : Number | Nil = nil) : String #

Converts Crystal range to a Godot PROPERTY_HINT_RANGE hint string (e.g. "0,100" or "0,100,0.5")


[View source]
def to_godot_range(step : Number = 1.0) : Godot::Range #

Converts Crystal range into a Godot::Range control node


[View source]