Egui::Id
Inherits Struct < Value < Object
Constants
FNV_OFFSET = 14695981039346656037_u64
FNV_PRIME = 1099511628211_u64
Constructors
from(source : String, salt : String = "") : Id
Sourcenew(value : UInt64)
SourceInstance methods
child(salt : UInt64) : Id
A child id: used by Ui to mint per-widget ids from the parent
id + an incrementing counter (egui: Id.with / ui.next_auto_id).
inspect(io : IO) : Nil
Appends this struct's name and instance variables names and values to the given IO.
struct Point
def initialize(@x : Int32, @y : Int32)
end
end
p1 = Point.new 1, 2
p1.to_s # "Point(@x=1, @y=2)"
p1.inspect # "Point(@x=1, @y=2)"
short_label
A random-looking 6-char [A-Za-z] name for display and debug (inspector): deterministic per id value, so the same widget shows the same name frame after frame. Collisions are possible in this encoding (52^6 < 2^64) and harmless — identity stays the full value; this is only a label.
value
Source